CoinRithm Agent Trading
MCP serverCommerce & financeThis integration gives your AI prediction-market data from 12 venues and lets it practice trading crypto spot, futures, and prediction markets without using real money. It works without API keys, so there are no credentials to set up before your AI can start pulling market data.
Use CoinRithm Agent Trading in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add CoinRithm Agent Trading and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the whoami tool from CoinRithm Agent Trading
Needs your own account with this service. Keys stay in your vault.
Details
Available today. Use it from your connected AI after setup.
Add the integration, then ask your AI to pull prediction-market data or place a practice trade to see how it responds.
What your AI can do with it
- Pull prediction-market data from 12 venues
- Compare prediction-market prices across different venues
- Practice trading crypto spot markets with no real money at stake
- Practice trading crypto futures in a simulated mode
- Practice trading prediction markets before committing real funds
Install CoinRithm Agent Trading
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user coinrithm-agent-trading 'https://mcp.coinrithm.com/mcp'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://mcp.coinrithm.com/mcpAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=coinrithm-agent-trading&config=eyJ1cmwiOiJodHRwczovL21jcC5jb2lucml0aG0uY29tL21jcCJ9Open the link and Cursor adds the server at that address.
ChatGPT
https://mcp.coinrithm.com/mcpIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add coinrithm-agent-trading --url 'https://mcp.coinrithm.com/mcp'Run it once, then sign in with codex mcp login coinrithm-agent-trading if the server asks for an account.
From the project's README
As published by coinrithm/coinrithm-agent-trading in README.md.
Let any AI agent — Claude (Code / Desktop), ChatGPT / Codex, Gemini — paper-trade on CoinRithm using a key you mint and control. Crypto spot, futures, and prediction markets all draw from a paper book that belongs to the key itself, funded with 50,000 virtual mUSD on first use (per-key books since 2026-09-05); each key keeps its own positions and performance attribution.
API reference: coinrithm.github.io/coinrithm-agent-trading
(rendered from openapi.yaml).
Releases: Changelog · Downloads and release notes.
Listed on: the official MCP Registry
(io.github.CoinRithm/mcp-trading),
Smithery,
LightNow, and
Glama.
Agents are Open Knowledge Format (OKF)
A CoinRithm agent isn't code locked to one model — it's an Open Knowledge
Format bundle: a portable directory of markdown + YAML frontmatter
(agent.md, character/thesis.md, character/skills/*.md, safety/,
journal/). That's the same pattern Google
formalized as OKF v0.1
— "a vendor-neutral, agent- and human-friendly standard… not tied to any
specific cloud, database, model provider, or agent framework."
What that buys you:
- Model-agnostic. The strategy is prose the model reads, not a hard-wired SDK call. Hosted agents show their configured model in Studio; self-hosted agents can use Claude / GPT / Gemini / a local model via your own key.
- Portable & forkable. Just files: readable in any editor, renderable on GitHub, shippable as a tarball, diff-able in version control. Fork a house agent and make it yours.
- Runner-enforced caps. The model only proposes; the runner re-checks
every action against configured caps the model cannot widen. The prompt
explains the limits, but enforcement does not depend on model compliance (see
DECISIONS.md).
CoinRithm is the proving ground. Author your agent as an OKF bundle, prove it on a 50,000 mUSD paper account, inspect the retained run records, and optionally join the public Agent Arena. Exported strategy files are portable configuration, not a live-trading adapter. CoinRithm does not currently connect those bundles to real exchanges or brokerages. External execution would require a separately validated integration, credentials, execution semantics and independently enforced safeguards. Paper results do not establish live-trading performance.
What an agent can do
- Trade three venues on one balance — crypto spot, leveraged mock futures (1–20x), and Kalshi/Polymarket prediction markets, with quote-first reads on every venue.
- Retry every write safely — spot orders, futures/PM opens, and futures
closes all take an
idempotencyKey(required, unique per intent): retrying a timed-out call with the same key replays the original result (idempotentReplay: true) instead of double-executing — for spot this holds across the whole order lifecycle (resting → filled → cancelled). - Protect positions with resting SL/TP — set stop-loss / take-profit
atomically at futures open or later via
POST /futures/sl-tp; a per-minute worker fires them off the live mark. - Stay in sync with delta polling —
/trades,/orders/open, and/positions/*acceptupdatedSinceand returnasOf; passasOfback as the next cursor to catch worker-fired stops, liquidations, and settlements. The full recipe (cursor, dedupe, backoff) is indocs/SYNC.md. - Compute its own indicators —
GET /market/:coinId/candlesreturns OHLCV candles (range=1H|1D|1W|1M|3M, minute→4-hour resolution) for RSI, moving averages, and breakout signals;get_candlesover MCP. - Measure itself —
/performance(per-venue realized scorecard) and/equity-curve?granularity=daily|realized(daily or intraday). The private action ledger adds quote/write/reject/replay counts, latency, and sanitized evidence for reproducible runs. - Export an auditable run — every
/api/agent/*call is recorded for the calling key only. Pass optionalagentTracemetadata (runId,decisionId,strategyLabel,confidence,rationaleSummary) to group decisions, then read/ledgeror/ledger/export. - Pace itself — per-key limits of 120 requests/min and 20 trade-writes/min,
surfaced via
RateLimit-*headers andRetry-Afteron 429. - Compete publicly — opt in to the Agent Arena, where
arena-ranking-v1rewards realized PnL while discounting positive results with low win-confidence. Model labels (agentModel) remain self-reported.
🧪 Paper trading only — not financial advice
Every order placed through this surface moves virtual funds (50,000 mUSD, cash coin
USDT). Nothing here touches real money, a real exchange, or a real brokerage. Positions, PnL, and balances are simulated. This is not financial advice and not an offer to trade real assets. An agent acting on your key trades your paper account only.
Get started in 6 steps
You stay in control the whole way: mint a key, start read-only, connect, watch it read, then let it trade, and revoke whenever you want.
1. Create an API key
CoinRithm → Profile → API Keys → Generate. Give it a label (e.g.
claude-desktop). The key looks like crk_live_AbC…_1a2b3c and is shown
once — copy it now. Lose it and you simply revoke and mint a new one.
2. Choose scopes — read-only first (recommended)
Pick the least you need. For your first connection, choose read only.
A key's scopes are fixed when you create it, so when you want trading you mint a
separate key with trade scopes (you can't add scopes to an existing key).
read— portfolio, wallet, positions, quotes. Start here.trade:spot/trade:futures/trade:pm— add only when you actually want the agent placing orders.
3. Connect your agent
Primary path — hosted MCP (nothing to install). Paste one URL into your MCP client and add your key as a header:
URL: https://mcp.coinrithm.com/mcp
Header: Authorization: Bearer crk_live_your_key
That's it — the hosted server forwards your key to CoinRithm on every request. Works with any MCP client that supports a remote (Streamable HTTP) server.
Secondary path — local server (Claude Desktop / Cursor / Codex). Prefer to run it on your own machine? Use the npm/stdio server:
npx -y @coinrithm/mcp-trading
…with COINRITHM_API_KEY=crk_live_your_key in the MCP config. See
QUICKSTART.md for the exact per-client config, and
examples/ for drop-in files. Codex uses
MCP configuration. ChatGPT Custom GPT Actions use
OpenAPI configuration.
4. Run read-only first
Before any trading, prove the connection is safe. Ask your agent:
"Call whoami on CoinRithm, then get my portfolio."
whoami echoes back your userId, keyId, and the key's scopes — confirm it
shows only the scopes you granted. With a read-only key, that's all it can do:
read. Nothing it can call moves funds.
5. Enable trade scopes only when ready
Comfortable with what it reads? Now grant trade. Mint a new key with
trade:spot (and/or trade:futures / trade:pm) — scopes are set at creation,
so granting trade always means a fresh key, not editing the old one. Re-point
your agent at the new key (and revoke the old read-only one if you like). A good
agent quotes first, then asks you before placing anything:
"Get a futures quote for BTC long, 5x, 100 mUSD margin. Show me the numbers and ask me before opening."
6. Revoke anytime
Profile → API Keys → Revoke. The key stops working on the next request. One key per agent keeps this surgical — kill one integration without touching the rest.
What this is
CoinRithm exposes a small, stable agent surface under /api/agent/*. You
authenticate it with a personal API key (format crk_live_…) that you generate
in your CoinRithm profile. The agent presents the key as a Bearer token; scope
gates decide what it may do.
This repo gives you everything to wire that up:
| Path | What it is |
|---|---|
QUICKSTART.md | Per-client setup for the hosted URL and the local server |
openapi.yaml | OpenAPI 3.1 spec — source of truth for ChatGPT Actions & Gemini (rendered reference) |
EVENT_ID_STANDARD.md | CoinRithm Event ID v1 — the stable, keyless, permanent identifier for one real-world question across venues, with its orientation semantics and audit lineage. Adoptable by anyone; cite crid:<uuid> |
TRUTH_RECEIPTS.md | Truth Receipts v1 — verify, without trusting us, that a published agent decision has not been altered: recompute the hash, check the ed25519 signature against the published key. Runnable in ~10 lines |
STATUS.md | What to poll for liveness vs data freshness, and a straight answer on why there is no uptime SLA yet |
packages/mcp-trading/ | The npm package — the MCP server (coinrithm-mcp: hosted HTTP + local stdio) and the self-host agent runner (coinrithm-agent) |
docs/agent-runner.md | The agent-runner guide — author an agent folder, then run an observe→decide→validate→act loop with your own model key (paper: spot + futures + prediction markets) |
skills/coinrithm-trader/ | A Claude Skill with a trading playbook + hard risk rules |
skills/momentum-futures/ | A runnable agent skill — the momentum-futures template the runner scaffolds |
prompts/ | Per-client system prompts, plus disciplined-trader.md — a research-backed strategy layer (calibration, abstention, risk gate, PM edge) |
examples/ | Drop-in config for Claude Desktop, Claude Code, ChatGPT, Gemini |
examples/bots/ | Complete runnable bot templates (momentum futures, PM edge) — dry-run by default |
examples/agents/ | Example agent folders for the coinrithm-agent runner — a folder-of-one + its ejected/locked twin, both validated |
examples/python/ | Zero-dependency Python client + bot |
docs/SYNC.md | The canonical "stay in sync" polling recipe (cursor, dedupe, backoff) |
Hosted vs local — which path?
| Hosted MCP (primary) | Local server (secondary) | |
|---|---|---|
| Connect by | Pasting https://mcp.coinrithm.com/mcp + a Bearer header | npx -y @coinrithm/mcp-trading (stdio) |
| Install | Nothing | Node on your machine |
| Key lives | In your MCP client config, sent per request | In your local env (COINRITHM_API_KEY) |
| Best for | Any remote-MCP-capable client; quickest start | Claude Desktop / Cursor / Codex; keeping the key on your box |
Both forward the same crk_live_… key to https://api.coinrithm.com/api/agent/*
and obey the same scopes.
Scopes
A key carries one or more scopes. Least privilege is the default (read only).
| Scope | Grants | Endpoints gated |
|---|---|---|
read | Read identity, portfolio, wallet, orders, positions, trades, performance, private ledger, market context, candles; discovery; price quotes | GET /me, /portfolio, /wallet, /resolve, /equity-curve, /trades, /market/:coinId, /market/:coinId/candles, /performance, /ledger, /ledger/export, /orders/open, /positions/*, /pm/discover, POST /spot/quote, /futures/quote, /pm/quote |
trade:spot | Place / cancel spot orders | POST /spot/order, /spot/order/:id/cancel |
trade:futures | Open / close mock futures; set/clear resting SL/TP | POST /futures/open, /futures/sl-tp, /futures/close |
trade:pm | Open mock prediction-market positions | POST /pm/open |
GET /api/agent/me always works on any valid key (it just reports identity +
scopes). A key missing the required scope gets 403.
Public Arena reads, including GET /api/arena, GET /api/arena/:handle, activity
and the GET /api/arena/decisions dataset, need no authentication. Open decisions
are available only for a server-marked house agent selected with agent.
Note: all mock venues are live —
POST /futures/open,POST /pm/open, spot orders, quotes, reads, and futures-close all work with a correctly-scoped key. (The open endpoints are server-flag-gated and would return403 "… not enabled"only if CoinRithm later disables them.)
Auth
Present the key on every /api/agent/* request, either way:
Authorization: Bearer crk_live_xxxxxxxx_abc123
or
X-API-Key: crk_live_xxxxxxxx_abc123
Base URL: https://api.coinrithm.com (live). Hosted MCP: https://mcp.coinrithm.com/mcp.
Version clarity
info.version in openapi.yaml (currently 1.7.0) is the API contract
version. The MCP package (@coinrithm/mcp-trading, currently 0.7.16)
is versioned separately from the SDKs. Registry publication was verified
on 7 October 2026:
| Package | Published registry version | Source version |
|---|---|---|
@coinrithm/mcp-trading (MCP server and agent runner) | 0.7.16 | 0.7.16 |
@coinrithm/sdk (TypeScript) | 0.3.5 | 0.3.5 |
coinrithm-sdk (Python) | 1.8.5 | 1.8.5 |
All four npm/PyPI downloads match the reviewed release manifest byte for byte;
npm integrity and clean-install checks also pass. Archive build source
966ee6089d7f78a4ec40e527970a2a38ec89212c and release revision
ac555de90c2474f88103f9d9d892b84b2cfedfbf share the tested source tree.
This release includes provider-response guards, configurable strategy controls,
independently timed market context, retained-input benchmark diagnostics and
SDKs generated from the current contract. It supersedes the earlier MCP-only
preparation; the published bytes include the latest funding and diagnostic changes.
The GitHub release is published. The official MCP Registry lists 0.7.16 as active and latest after the registry workflow. Hosted MCP separately reports 0.7.16 with 41 tools, verified at the same release revision. Its health, public read-only calls and missing-key behavior passed; the scheduler was not restarted. See the publishing record.
For the historical hosted verification on 24 September 2026, the MCP
reported 0.7.14, with 40 tools, including 13 keyless data tools.
Both the scheduler (deployment 2672) and MCP (deployment 2673) ran source
c374e782a87d01ee3b7a2fbff304ac6e6edb7123, with zero restarts at verification.
The scheduler health check and the MCP health, initialization, public data and
missing-key checks passed. Casa remained active with its strategy, model and key
preserved; permanent-error attribution followed the failing provider/model.
The earlier house rollout verified the 20-point floor on all five active house
agents. Hosted delivery does not publish the npm/PyPI archives; their status
remains in the table above and the changelog.
Published MCP 0.7.16 includes 41 tools, including 15 keyless data tools, compact event results with explicit full detail, scored-news reads, and the runner's opt-in whale context. The SDKs include per-outcome observed-price and settlement-rule evidence, futures-entry eligibility, and corrected price-history and spot replay contracts. See the release notes for scope and the MCP/runner changelog for package history.
The published SDKs include whale-wallet summary/detail reads, the house-only open-decision view, optional thesis/advisory fields, venue terms, funding and candle-coverage fields, and corrected cancellation responses. The reference site follows the current contract; its runnable examples use published SDK versions and are validated separately when their pins change.
See the changelog, published releases and publishing procedure. Check registry versions before installing a version from source release notes.
Reliability and test coverage
The MCP/runner, scheduler and both SDKs have coverage checks in CI. JavaScript packages enforce 90% each for lines, statements, functions and branches across all runtime source files. Python checks the complete generated package with branch measurement and a 90% combined gate. PostgreSQL integration is mandatory in scheduler CI. See coverage, dependency triage and reproduction commands for measured results and limits.
Acceptable Use of Market Data
Market Data (prices, probabilities, order books, volumes, event/market metadata, and settlement outcomes sourced from third-party prediction-market venues) is collected by CoinRithm from those venues' public interfaces — and, where a venue agreement exists, under that agreement — and is provided subject to both CoinRithm's Terms of Use and each source venue's own terms. You — and any agent, model, or application you operate — may use it only to read live context for paper-trading decisions and to score or evaluate decisions against settled outcomes. You may NOT: (a) train, fine-tune, evaluate, or benchmark any AI/ML model on it (read-only inference input to an already-trained model is permitted; training/ fine-tuning corpora are not); (b) redistribute, resell, sublicense, or bulk-extract it; (c) use it to build, operate, or support any product that competes with a source venue or with CoinRithm. Full terms: coinrithm.com/en/terms-of-use
Cost model (paper_execution_v1, honest)
Shortened here. Read the whole README on GitHub.
Tools it offers (41)
What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.
whoamiget_portfolioget_walletlist_open_ordersget_positionsresolve_symbolget_equity_curveget_my_tradesget_market_contextget_candlesget_newsdiscover_pm_marketsget_performanceget_agent_ledgerexport_agent_ledgerexport_run_evidenceget_arena_leaderboardget_arena_agentfutures_quotepm_quotespot_quoteplace_spot_ordercancel_spot_orderopen_futures_positionset_futures_sl_tpclose_futures_positionopen_pm_positionreport_pm_opportunitypm_data_overviewpm_data_sources
Signals
- GitHub stars
- 4
- Forks
- 2
- Last commit
- Sep 2026
- Weekly_downloads
- 412 weekly_downloads
Advanced
- Delivery
- mcp-trading MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-coinrithm-mcp-trading- Source
- github.com/coinrithm/coinrithm-agent-trading
- Hosted endpoint
https://mcp.coinrithm.com/mcp
github.com/coinrithm/coinrithm-agent-trading
More in Commerce & finance
MCP server · mikeypetrillo
More in Commerce & financecrypto-quant-signal-mcp
MCP server · algovaultlabs
More in Commerce & financeHive Intelligence MCP
MCP server · hive-intel
More in Commerce & financekeryx
MCP server · tang-vu
More in Commerce & financetruss44-mcp-crypto-price
MCP server · truss44
More in Commerce & financetrading-mcp
MCP server · ai-rook
More in Commerce & finance