# RiskState MCP server

> Provides real-time crypto risk permissions, market structure analysis, and trading playbook status for BTC and ETH.

- Repository: https://github.com/Riskstate/mcp
- Page: https://hostedmcp.org/servers/riskstate/mcp
- Transport: remote
- Stars: 1
- License: MIT
- Latest version: 1.0.1

## Install

### Claude Code

```sh
claude mcp add --transport http mcp https://api.riskstate.ai/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.riskstate.ai/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://api.riskstate.ai/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"http","url":"https://api.riskstate.ai/mcp"}'
```

### Codex

```sh
codex mcp add mcp --url https://api.riskstate.ai/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
url = "https://api.riskstate.ai/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http mcp https://api.riskstate.ai/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.riskstate.ai/mcp",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `RISKSTATE_API_KEY` | no | no |  |

## Tools (10)

- `get_risk_policy`
- `get_market_structure`
- `get_playbook_status`
- `check_trade`
- `policy_level`
- `max_size_pct`
- `leverage_max`
- `allowed_actions`
- `blocked_actions`
- `confidence_score`

## FAQ

### Can I use RiskState without an API key?

Yes, you can use the hosted remote connector via a free public tier which provides a summary of the risk state.

### Does this server allow me to execute trades?

No, the server is read-only and does not include any write tools for updating policies or placing orders.

### What assets are currently supported?

The current version is limited to BTC/USD and ETH/USD assessments.

### How does the check_trade tool work?

It evaluates a hypothetical position against your existing holdings to determine if it is allowed based on portfolio-aware caps.
