RiskState — Crypto Risk Engine logo

RiskState — Crypto Risk Engine

Read crypto risk policies, market structure, playbook status, and hypothetical trade permissions for BTC and ETH.

Install RiskState — Crypto Risk Engine

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "riskstate-crypto-risk-engine-2": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "@riskstate/mcp-server",
        "riskstate-mcp"
      ],
      "env": {
        "RISKSTATE_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env RISKSTATE_API_KEY=YOUR_VALUE_HERE --transport stdio riskstate-crypto-risk-engine-2 -- npx -y -p @riskstate/mcp-server riskstate-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y -p @riskstate/mcp-server riskstate-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

RiskState — Crypto Risk Engine connects MCP clients to a REST-backed risk engine for BTC/USD and ETH/USD. It provides policy limits, market structure, actionable playbooks, and read-only portfolio checks for spot, perpetual futures, and DeFi borrowing. Use the hosted Streamable HTTP endpoint without installation, or run the keyed npm package over stdio for complete responses. Reach for it before proposing or sizing trades when decisions need portfolio-aware limits and explicit blocked actions.

Use cases

  • Check permitted exposure before opening a BTC or ETH position
  • Evaluate a proposed portfolio against size and concentration limits
  • Inspect market structure before deciding whether to propose a trade
  • Poll playbook status without repeating setups in alert cooldown
  • Review DeFi-aware risk for Spark or Aave positions

Key features

  • Policy levels with position-size and leverage limits
  • Portfolio-aware hypothetical trade checks
  • BTC and ETH market-structure analysis
  • Locked playbook and alert-cooldown status
  • Support for spot, perpetual futures, and DeFi borrowing
  • stdio package and hosted Streamable HTTP access

Tools4

What RiskState — Crypto Risk Engine lets your agent do. Expand a tool for its parameters.

Verified live~816 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 61d

What it can do

From the 4 tools this server returned when we ran it.

Handles credentials · 1Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age222 days
Maintainers1

Observed 2026-11-01 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @riskstate/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads202Package downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed4Callable tools this server registers over MCP.

How RiskState — Crypto Risk Engine works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about RiskState — Crypto Risk Engine

RiskState — Crypto Risk Engine is an MCP server that connects AI clients to the RiskState crypto risk engine and exposes get_risk_policy, get_market_structure, get_playbook_status, and check_trade. It covers BTC and ETH, returning policy limits, market context, actionable setups, and read-only portfolio-aware trade assessments.

Install it with `npm install @riskstate/mcp-server`, then start `riskstate-mcp` through npx or a global npm install. Set `RISKSTATE_API_KEY` in the process environment. Claude Desktop and Claude Code configuration examples use the npx command.

Yes, it works with Claude Desktop over stdio. Add an MCP server entry that runs `npx -p @riskstate/mcp-server riskstate-mcp` and provide `RISKSTATE_API_KEY` in the environment. The package has been tested with Claude Desktop.

No, it cannot place trades or modify risk policy. All four tools are read-only. `check_trade` evaluates proposed positions and returns whether they fit the engine's limits, while policy and market tools supply information for an agent to use before execution.

Yes, it supports DeFi borrowing context for Spark and Aave V3. `get_risk_policy` accepts an optional wallet address and protocol, with Spark as the default protocol. The supported asset scope remains BTC/USD and ETH/USD.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRiskState — Crypto Risk Engine AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/riskstate-crypto-risk-engine-2?style=directory)](https://allmcps.com/mcp/riskstate-crypto-risk-engine-2)
HTML Embed
<a href="https://allmcps.com/mcp/riskstate-crypto-risk-engine-2"><img src="https://allmcps.com/api/badge/riskstate-crypto-risk-engine-2?style=directory" alt="RiskState — Crypto Risk Engine on AllMCPs" /></a>