# CoinRithm/coinrithm-agent-trading [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/CoinRithm/coinrithm-agent-trading  
**GitHub Stars:** 4  
**npm Downloads (last month):** 1245  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/coinrithm-coinrithm-agent-trading

## Description
Paper-trade crypto spot, futures & prediction markets on CoinRithm with a user-minted API key (simulated funds, 21 tools, public Agent Arena).

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

```json
"mcpServers": {
  "coinrithm-agent-trading": {
    "command": "npx",
    "args": ["-y","@coinrithm/mcp-trading"],
    "env": {
      "COINRITHM_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `COINRITHM_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 CoinRithm/coinrithm-agent-trading does

CoinRithm/coinrithm-agent-trading exposes CoinRithm paper-trading operations through the Model Context Protocol. An agent can work with three simulated venues using one paper balance: crypto spot, leveraged mock futures from 1x to 20x, and Kalshi/Polymarket prediction markets. Each API key has its own simulated account, positions, and performance attribution, funded with 50,000 virtual mUSD on first use.

The package contains 21 MCP tools and is intended for experimentation, evaluation, and auditable agent runs. All orders use virtual funds; the server does not connect an exported strategy or paper account to live exchanges or brokerages.

## How it works

Create an API key in CoinRithm Settings, then assign only the scopes the agent needs. Read access covers portfolio, wallet, positions, and quotes. Trading requires separate scopes for spot, futures, and prediction-market actions. Scopes are fixed at creation time, so adding trading access requires minting another key.

The hosted option uses `https://mcp.coinrithm.com/mcp` with the key sent as a Bearer authorization header. For local use, run the npm package with `npx -y @coinrithm/mcp-trading`; the local process reads the key from its environment. A read-only connection can be tested with `whoami` and a portfolio request before trading scopes are enabled.

Write operations require an idempotency key. Repeating a timed-out request with the same key replays the original result rather than creating a duplicate intent. Delta polling uses `updatedSince` and an `asOf` cursor on trades, open orders, and positions so clients can detect worker-fired stops, liquidations, and settlements.

## Setup and configuration

Set `COINRITHM_API_KEY` to a key generated in CoinRithm. The hosted MCP endpoint accepts the same key as an authorization header instead of requiring a local process. Revoke a key from CoinRithm settings when it should no longer be usable.

The recommended setup sequence is to start with a read-only key, verify the identity and returned scopes, and then create a separate key with the required trade scopes. Claude Desktop, Cursor, and Codex can use the local stdio command; any MCP client that supports remote Streamable HTTP can use the hosted endpoint.

## Tools and capabilities

Available operations cover account identity, portfolio and wallet reads, quotes, orders, positions, market candles, performance, equity curves, and action-ledger access. Candle data supports ranges from one hour through three months and can be used by an agent to calculate indicators such as moving averages, RSI, or breakout signals.

Futures positions can receive resting stop-loss and take-profit orders when opened or afterward. A per-minute worker evaluates these protections against the live mark. Performance endpoints provide realized per-venue scorecards and daily or realized equity curves. The ledger can be read or exported, with optional trace fields for grouping decisions by run, strategy, confidence, or rationale.

Per-key limits are 120 requests per minute and 20 trade writes per minute. The service reports rate-limit headers and provides `Retry-After` when a request receives HTTP 429.

## Limitations and notes

This is paper trading only. Balances, positions, orders, settlements, and PnL are simulated, and the virtual cash coin is USDT. Results do not demonstrate live-trading performance and should not be treated as financial advice.

Prediction-market and futures actions require the corresponding key scopes. Public Agent Arena participation is opt-in, and its ranking uses realized PnL, open losses, and win-confidence adjustments; reported model labels are self-reported. Keys are shown once when generated, so a lost key must be revoked and replaced.

_Full upstream README: https://allmcps.com/mcp/coinrithm-coinrithm-agent-trading/readme_

