Skip to main content
ClaudeWave

Deterministic crypto futures calculations for AI agents. PnL, liquidation, break-even, position sizing and more via MCP.

MCP ServersRegistry oficial1 estrellas0 forksJavaScriptMITActualizado today
ClaudeWave Trust Score
90/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Last scanned: 9/19/2026
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/SKalinin909/tradingcalc-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "tradingcalc-mcp": {
      "command": "node",
      "args": ["/path/to/tradingcalc-mcp/dist/index.js"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/SKalinin909/tradingcalc-mcp and follow its README for install instructions.
Casos de uso

Resumen de MCP Servers

# TradingCalc MCP Server

[![MCP Badge](https://lobehub.com/badge/mcp/skalinin909-tradingcalc-mcp)](https://lobehub.com/mcp/skalinin909-tradingcalc-mcp)

Ask Claude or Cursor trade questions and get exact numbers back, not AI guesses.

> "What's my PnL if I buy 0.5 BTC at $80k and sell at $95k with 5x leverage?"
> "Size my position: $10k account, 1% risk, long BTC at $83k, stop at $81k."
> "Is this carry trade worth it? 0.01% funding long, 0.05% short, $50k, 30 days."

31 deterministic tools across trade planning, risk & margin, funding/carry, market-structure (Market Profile) analysis, chain-agnostic on-chain tools — Solana (token safety, swap price impact, bonding curve) plus Solana + 5 EVM chains for market cap comparison and wallet flag check — and prediction-market odds from Kalshi's public crypto-price category. Formulas verified against 35 canonical test vectors: same inputs always produce the same outputs. Free, no signup.

Access via **MCP** (Claude Desktop / Cursor / VS Code) or a plain HTTP POST to the MCP endpoint. Free, no signup.

## Endpoints

| Surface | URL | Auth |
|---|---|---|
| MCP | `https://tradingcalc.io/api/mcp` | Bearer optional (free) |
| For agents / setup | `https://tradingcalc.io/for-agents` | None |
| Full API & MCP reference | `https://docs.tradingcalc.io/api` | None |
| Verification proof | `https://tradingcalc.io/verify` | None |

MCP transport: **Streamable HTTP** (MCP spec 2024-11-05)

## Quick Start

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "tradingcalc": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://tradingcalc.io/api/mcp"]
    }
  }
}
```

### Cursor / VS Code

```json
{
  "tradingcalc": {
    "url": "https://tradingcalc.io/api/mcp"
  }
}
```

### Direct HTTP

```bash
curl -X POST https://tradingcalc.io/api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "workflow.run_liquidation_safety",
      "arguments": {
        "side": "long",
        "entryPrice": 95000,
        "leverage": 10
      }
    }
  }'
```

## Example prompts

After connecting, just ask naturally: the AI picks the right tool automatically:

**Trade P&L**
> "I bought 0.5 BTC at $80,000 and want to sell at $95,000 with 5x leverage. What's my net profit after fees?"

**Position sizing**
> "I have a $10,000 account and want to risk 1% going long BTC at $83,000 with a stop at $81,000. How many coins should I buy?"

**Liquidation check**
> "Long ETH at $3,200 with 10x leverage, where do I get liquidated?"

**Full pre-trade check**
> "Analyze this setup: long BTC at $83,000, stop $81,000, target $90,000, $10k account, 1% risk, 5x leverage. Is it worth taking?"

**Funding cost**
> "I'm holding 0.5 BTC long on Bybit at $83,000 with 0.01% funding rate. How much will funding cost me over 3 days?"

**Carry trade**
> "Is this carry trade worth it? Long on Bybit at 0.01% funding, short on Binance at 0.05%, $50k notional, 30 days."

**DCA average entry**
> "I bought BTC at $78k (0.2 BTC), $80k (0.3 BTC), and $82k (0.1 BTC). What's my average entry and breakeven?"

**Scale-out plan**
> "I'm long 1 BTC from $80k. I want to close 30% at $88k, 40% at $92k, 30% at $96k. What's my total P&L?"

**Token safety check**
> "Is this Solana token a rug pull risk? Mint: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"

**Swap price impact**
> "How much slippage will I eat swapping 50,000,000 BONK to USDC?"

**Bonding curve**
> "How many tokens do I get buying with 1 SOL on a pump.fun curve that's already raised 20 SOL?"

**Market cap comparison**
> "If I put $1,000 into BONK and it reaches JUP's market cap, what's it worth?"

**Wallet flag check**
> "Is this wallet address flagged for anything? [address]" (Solana or EVM)

**Odds converter**
> "What odds does a 35% probability work out to?"

**Market-implied odds**
> "What does the market think BTC will be worth by year end?"

**Prediction market edge**
> "I think this event is 60% likely but the market prices it at 40%. Should I bet, and how much with a $10k bankroll?"

---

## Tools (31)

Tool naming follows the `workflow.run_*` / `primitive.*` / `system.*` namespace convention.
Old flat names (`pnl`, `liquidation`, etc.) are accepted for backward compatibility. All tools are
free via MCP, no signup; 20 calls/day anonymously, 200/day with a free API key.

| Category | Tools |
|---|---|
| Trade Planning | PnL, break-even, exit target, scenario, DCA entry, scale-out (6) |
| Risk & Margin | Liquidation safety, position sizing, max leverage, risk/reward (4) |
| Funding & Carry | Funding cost, funding arbitrage, compound funding, funding break-even, carry trade (5) |
| Market Structure (Market Profile) | Open analysis, session structure, value migration, breakout acceptance (4) |
| Primitives | Average entry, hedge ratio (2) |
| Integrated Decision | Pre-trade check — sizing + liquidation + breakeven + funding + go/no-go in one call (1) |
| On-chain (Solana + 5 EVM chains, per tool) | Token risk check, swap price impact, bonding curve, market cap comparison, wallet flag check (5) |
| Prediction Markets (Kalshi crypto-price) | Odds converter, market-implied odds, prediction-market edge (3) |
| System | `system.verify` — run 35 canonical test vectors, get a pass/fail report (1) |

Full tool-by-tool reference (every input/output schema, request/response examples, per-tool
descriptions): **[docs.tradingcalc.io/api](https://docs.tradingcalc.io/api)**

Formulas normalized across 16 exchanges: **Binance, OKX, Bybit, Aster, Hyperliquid, MEXC, KuCoin, Gate, Deribit, Kraken, HTX, WOO, Phemex, Blofin, Backpack, dYdX**.

## Rate Limits

| Access | Req/day | Price |
|---|---|---|
| Anonymous | 20 | Free |
| Free API key | 200 | Free |

The Service is free. Need a higher-limit key → email [hi@tradingcalc.io](mailto:hi@tradingcalc.io).

Pass key as: `Authorization: Bearer <your-api-key>`

## Self-Verification

Agents can verify all 35 canonical test vectors before trusting results:

```json
{
  "jsonrpc": "2.0", "id": 1,
  "method": "tools/call",
  "params": { "name": "system.verify", "arguments": {} }
}
```

Response: `{ "status": "pass", "passed": 35, "failed": 0, "total": 35 }`

Live proof: [tradingcalc.io/verify](https://tradingcalc.io/verify)

## Use Cases

- **Trading bots**: check liquidation price before every trade
- **AI agents**: deterministic risk calculations without hallucination risk
- **Multi-agent systems**: drop-in risk management agent in analyst + risk + execution pipelines
- **Dashboards**: embed calculations programmatically

## Why deterministic?

LLMs asked directly give plausible but potentially wrong numbers. TradingCalc MCP returns exact calculations: same inputs always produce the same outputs. No hallucination risk for financial data.

## Risk Agent Wrapper

`examples/risk-agent-wrapper.ts`: a drop-in TypeScript wrapper for risk-gated trade execution.
Integrates with any agent framework (ElizaOS, CrewAI, AutoGen, Hummingbot, Freqtrade).

```typescript
import { RiskAgent, preTradeGate } from './examples/risk-agent-wrapper';

const agent = new RiskAgent({ apiKey: 'tc_your_key', minLiqDistancePct: 3.0 });

const result = await agent.evaluate({
  symbol: 'BTCUSDT', exchange: 'bybit',
  side: 'long', entry_price: 83000, stop_loss: 81000,
  account_balance: 10000, risk_pct: 1, leverage: 5,
  funding_rate: 0.0001, hold_hours: 24,
});

if (result.approved) {
  // execute trade: result.recommended_size, result.liquidation_price
} else {
  console.log('Rejected:', result.rejection_reason);
}

// Binary gate for execution bots
const ok = await agent.isSafe({ symbol: 'ETHUSDT', side: 'short', ... });

// Standalone function (minimal integration)
const { approved, size, liqPrice } = await preTradeGate({ ... }, 'tc_your_key');
```

## TypeScript SDK

For code-first integrations, use `tradingcalc-sdk` instead of raw JSON-RPC:

```bash
npm install tradingcalc-sdk
```

```typescript
import { TradingCalcClient } from 'tradingcalc-sdk';

const tc = new TradingCalcClient({ apiKey: 'tc_your_key' });

// Workflows: orchestrated decisions
const check = await tc.workflows.preTradeCheck({ side: 'long', entry_price: 83000, leverage: 5, funding_rate: 0.0001, account_balance: 5000 });

// Primitives: single formula
const avg = await tc.primitives.averageEntry({ symbol: 'BTCUSDT', input: { fills: [{ price: 83000, quantity: 0.1 }] } });

// System
const report = await tc.system.verify();
```

`tc.call()` is available for raw MCP access. Full docs: [npmjs.com/package/tradingcalc-sdk](https://www.npmjs.com/package/tradingcalc-sdk)

## Links

- For agents: [tradingcalc.io/for-agents](https://tradingcalc.io/for-agents)
- Full docs (API & MCP reference, methodology, architecture, changelog): [docs.tradingcalc.io](https://docs.tradingcalc.io)
- Verification proof: [tradingcalc.io/verify](https://tradingcalc.io/verify)
- Web calculators: [tradingcalc.io](https://tradingcalc.io)
gemini-cli-extension

Lo que la gente pregunta sobre tradingcalc-mcp

¿Qué es SKalinin909/tradingcalc-mcp?

+

SKalinin909/tradingcalc-mcp es mcp servers para el ecosistema de Claude AI. Deterministic crypto futures calculations for AI agents. PnL, liquidation, break-even, position sizing and more via MCP. Tiene 1 estrellas en GitHub y su última actualización registrada es del 2026-09-18.

¿Cómo se instala tradingcalc-mcp?

+

Puedes instalar tradingcalc-mcp clonando el repositorio (https://github.com/SKalinin909/tradingcalc-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar SKalinin909/tradingcalc-mcp?

+

Nuestro agente de seguridad ha analizado SKalinin909/tradingcalc-mcp y le ha asignado un Trust Score de 90/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene SKalinin909/tradingcalc-mcp?

+

SKalinin909/tradingcalc-mcp es mantenido por SKalinin909. La última actividad registrada en GitHub es del 2026-09-18, con 0 issues abiertos.

¿Hay alternativas a tradingcalc-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega tradingcalc-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: SKalinin909/tradingcalc-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/skalinin909-tradingcalc-mcp)](https://claudewave.com/repo/skalinin909-tradingcalc-mcp)
<a href="https://claudewave.com/repo/skalinin909-tradingcalc-mcp"><img src="https://claudewave.com/api/badge/skalinin909-tradingcalc-mcp" alt="Featured on ClaudeWave: SKalinin909/tradingcalc-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a tradingcalc-mcp