RiskState MCP Server is RiskState's MCP server, positioned as decision-making and risk infrastructure for crypto capital, specifically designed to determine risk permissions for BTC/USD and ETH/USD before trade execution, covering spot, perpetual contracts (perps), and DeFi lending scenarios.
Purpose
The core question the system answers is "how much risk can I take on right now." It calculates based on more than 30 real-time signals and returns the policy level, max exposure, leverage limits, and blocked actions. The service is aimed at trading agents and is used to obtain deterministic, auditable risk governance conclusions before opening positions.
Two ways to use it
-
Remote connector: No installation and no API Key required. RiskState runs a hosted MCP server (Streamable HTTP), providing a free public tier. It can be added as a custom connector in Claude or ChatGPT, and then you can directly ask about BTC's risk state. It exposes three read-only tools: get_risk_state, get_market_structure, get_playbook_status, covering three engines, and is registered in the official MCP registry as ai.riskstate/mcp. The response content is a free public summary, at the same tier as the public visualizer; policy_hash, composite sub-scores, positions, and macro details require a key.
-
Local package (stdio, with key, full response): Suitable for scenarios where you want the full audited payload in a local agent, or want to lock a version in your own toolchain. It requires RISKSTATE_API_KEY and returns all content within the scope authorized by the key.
Four read-only tools
- get_risk_policy: Returns information such as the policy level, max exposure, leverage limits, and blocked actions.
- check_trade: Evaluates a hypothetical position portfolio—send the positions under consideration as well as the positions already held (because limits are portfolio-aware). It returns per position whether it is allowed, the size cap expressed as a percentage and in dollars, and the reason_codes when it is not allowed. ThisThese reason_codes are blocking in nature; advisories are informational only and do not affect the allowed field. It does not place any orders.
- get_playbook_status: reports a setup as executable only when its conditions match, it has not been vetoed by any engine, and it is not in an alert cooldown period. Setups that match but have already issued an alert are counted separately, so an agent polling this tool will not repeatedly act on the same signal.
- The other tool is get_risk_state (one of the three tools exposed by the remote connector).
Why there are no write tools
The system has no update_policy, no set_limit, no exception management, and will not provide them in the future either. The premise of RiskState is that a governed system cannot move its own limits. Every decision is hashed (policy_hash) so that it can later be audited against the inputs that produced it; if a tool allowed the caller to rewrite policy, that hash would lose its meaning and the audit trail would become decorative. Therefore the lifecycle here is deliberately one-way: the engine computes, the agent reads and complies. check_trade is the closest interface to dynamic per-trade operation, but it is still read-only—it answers "would this trade be allowed" and never "allow this trade." The API aggregates 9+ live data sources on the server side.
What this wrapper does and does not do
This is a lightweight wrapper that translates MCP tool calls into REST API requests and returns the responses. All computation (scoring, policy engine, data ingestion) is done server-side.
This wrapper adds: MCP protocol compliance (stdio transport for Claude Desktop/Code), input validation via Zod schema, appending a human-readable policy summary before the response, and concrete error information for agent recovery (authentication, rate limiting, timeout).
This wrapper does not: cache responses (the API has a 60-second server-side cache); perform any scoring or computation locally; guarantee response schema stability (follows API versioning).
How to use
Add the configuration in ~/.config/Claude/claude_desktop_config.json, and set the API Key in the environment. Global installation is also optional.
How agents should use it
Before every trade, call get_risk_policy: if policy_level starts with BLOCK, do not establish a new position; use max_size_pct to limit position size; check blocked_actions before execution; re-query after ttl_seconds (60-second cache). For positions whose size has already been determined, check_trade combines steps 2 and 3 into a single call: send the position you intend to establish along with the positions already held, and read allowed and reason_codes. It is recommended over re-deriving the limits yourself, because the limits are portfolio-aware, and a position that appears acceptable on its own may still breach concentration limits once aggregated. get_market_structure and get_playbook_status are contextual information, not permissions—neither of them authorizes a trade; only the risk policy authorizes. Use them to judge whether a trade is worth proposing, then use get_risk_policy / check_trade to learn the permitted size.
Scope and limitations
v1 scope is limited to BTC/USD and ETH/USD (USD-denominated evaluation); more assets are planned. Market types: spot, perpetual futures, and DeFi lending; responses are the same but interpretation varies by market. DeFi position data currently supports only Spark and Aave V3. Rate limit: 60 requests per minute per API Key. Latency: about 1-3 seconds per request (aggregating 9+ upstream data sources). Tested: Claude Desktop, Claude Code; in theory compatible with any MCP-capable client. Landing page: riskstate.ai; API docs: riskstate.ai/docs/api; SKILL.md: agentskills.io. For the security policy, see the Security policy in the repository.