# RiskState — Crypto Risk Engine [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Riskstate/mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 202  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/riskstate-crypto-risk-engine-2

## Description
Live BTC/ETH risk state: risk policy, market structure and trading playbooks. Keyless free tier.

## Tools
Capabilities this server exposes over MCP:

- **get_risk_policy** — Get the current risk governance policy for a crypto asset. Returns policy level (BLOCK/CAUTIOUS/GREEN), max position size, leverage limits, allowed and blocked actions, and confidence score. Call this BEFORE every trade to determine how much risk is allowed.
- **get_market_structure** — Get the structural picture for a crypto asset from the Market Structure Engine: where price sits in its cycle and range, which structural events are forming or confirmed, the breakout/breakdown triggers, and the friction zones (price walls) in between. Answers 'are we near an inflection?' — it does NOT say how much you may risk; use get_risk_policy for that.
- **get_playbook_status** — List the locked trading playbooks and which setups are actionable right now, per asset. A setup is actionable only when its conditions match, no engine vetoed it, and it is not in alert cooldown — setups that match but already alerted are reported separately, so you do not act on the same signal twice. This endpoint is public and needs no API key.
- **check_trade** — Assess one or more PROPOSED positions against the engine's limits before placing them. Returns, per position, whether it is allowed, the policy level, the size cap in percent and dollars, and the reason codes when it is not — plus portfolio-level gross/net exposure and concentration. Read-only: it evaluates a hypothetical book and places no orders. Send the position(s) you are considering, including any you already hold, since the caps are portfolio-aware.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "riskstate-crypto-risk-engine": {
    "command": "npx",
    "args": ["-y","-p","@riskstate/mcp-server","riskstate-mcp"],
    "env": {
      "RISKSTATE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `RISKSTATE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What RiskState — Crypto Risk Engine does

RiskState — Crypto Risk Engine exposes pre-trade risk information for BTC/USD and ETH/USD through MCP. Its engine evaluates more than 30 real-time signals server-side and returns a policy that describes how much exposure is permitted, what leverage is allowed, and which actions are blocked. The supported market contexts are spot, perpetual futures, and DeFi borrowing.

The server is read-only. It does not place orders, change policy limits, create exceptions, or approve a trade for execution. `check_trade` evaluates a hypothetical portfolio, while the other tools provide policy, market, or setup context.

## How it works

The npm package translates MCP calls into REST requests to RiskState. Scoring, data ingestion, and policy computation happen remotely; no local market analysis or response caching is performed by the wrapper. The API aggregates data from 9 or more real-time sources, and responses may be cached server-side for 60 seconds.

Call `get_risk_policy` before each trade to obtain the policy level, maximum position size, leverage ceiling, permitted actions, blocked actions, and confidence score. For a proposed position, send both the intended position and existing holdings to `check_trade`, because exposure and concentration limits apply to the combined portfolio.

`get_market_structure` describes cycle and range position, structural events, breakout or breakdown triggers, and intervening price friction zones. `get_playbook_status` identifies setups that currently match their conditions and have not been vetoed or placed in alert cooldown. Neither tool grants trading permission; use the policy or trade check for that decision.

## Setup and configuration

Install the package with:

```bash
npm install @riskstate/mcp-server
```

Set `RISKSTATE_API_KEY` with a key from riskstate.ai. `RISKSTATE_API_URL` can override the default API base URL, `https://api.riskstate.ai`. The package starts an MCP server over stdio and can be launched with `npx -p @riskstate/mcp-server riskstate-mcp` or installed globally with npm.

Claude Desktop can invoke the npx command from its MCP configuration, with the API key supplied in the server environment. Claude Code can add the same command with `claude mcp add` and receive the key from the shell environment.

A hosted alternative is available at `https://api.riskstate.ai/mcp` using Streamable HTTP. Its public tier requires no installation or API key, but returns the public summary rather than the complete keyed payload.

## Tools and capabilities

- `get_risk_policy` accepts BTC or ETH and can include a DeFi wallet address, Spark or Aave protocol, and detailed scoring information.
- `get_market_structure` reports structural market context and possible inflection areas.
- `get_playbook_status` reports actionable and already-alerted playbook setups without requiring a key.
- `check_trade` tests one or more proposed positions and returns per-position permissions, size limits, dollar caps, reason codes, and portfolio exposure metrics.
- Policy responses can include cycle, market, macro, and directional classifications, confidence, an audit hash, and a 60-second TTL.

## Limitations and notes

The supported asset scope is BTC/USD and ETH/USD, with USD-denominated assessments. DeFi position data is limited to Spark and Aave V3. API access is limited to 60 requests per minute per key, and typical request latency is about one to three seconds. Response schemas follow API versioning and are not guaranteed to remain stable.

The public remote connector exposes three read-only tools and a summary-level response. The local package exposes four tools and requires an API key for the keyed endpoints. Risk policy is the authority for permitted exposure; market structure and playbook status provide context only.

_Full upstream README: https://allmcps.com/mcp/riskstate-crypto-risk-engine-2/readme_

