MCP · Streamable HTTP · 12 tools
Deterministic futures risk & funding toolkit
for AI agents
TradingCalc is a calculation layer — not AI, not estimates. Same inputs always produce the same outputs. Every formula is traceable to exchange documentation and regression-tested.
https://tradingcalc.io/api/mcp
Why deterministic matters
LLM asked directly
Gives a plausible number. May be wrong. Cannot be audited. Changes between calls.
TradingCalc MCP call
Exact number from a verified formula. Same inputs, same output. Fully traceable.
We are not AI. We are the calculation layer that AI calls.
Access methods
MCP (Claude Desktop / Cursor / VS Code)
// Claude Desktop — ~/.claude/claude_desktop_config.json
{
"mcpServers": {
"tradingcalc": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://tradingcalc.io/api/mcp"]
}
}
}
// Cursor / VS Code
{
"tradingcalc": {
"url": "https://tradingcalc.io/api/mcp"
}
}REST API (direct JSON-RPC)
curl -X POST https://tradingcalc.io/api/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "liquidation",
"arguments": {
"side": "long",
"entryPrice": 95000,
"leverage": 10,
"marginType": "isolated"
}
}
}'Anonymous
20 calls / day
Free API key
200 calls / day
Pro
10 000 calls / day
12 tools across 3 suites
Trade Planning
pnlNet PnL, ROE, fees and gross P&L for a futures tradebreakevenBreak-even price accounting for entry and exit feestarget_exitExit price required to hit a target PnL or ROEposition_sizerPosition size from account balance and max risk %average_entryAverage entry price after DCA into a positionscenarioMulti-scenario P&L table across price targetsRisk & Margin
liquidationLiquidation price for long/short with cross or isolated marginmax_leverageMaximum safe leverage given account size and volatilityhedge_ratioShort perp size to fully hedge a spot position, including funding costFunding & Carry
funding_costCumulative funding cost over a holding periodfunding_arbAnnualized funding arbitrage yield between two exchangescompound_fundingCompound funding cost with position size decayExample workflows
Pre-trade risk check
- 1.Call `liquidation` → get liquidation price
- 2.Call `max_leverage` → get safe leverage cap
- 3.Call `position_sizer` → get correct position size
- 4.Call `breakeven` → get minimum exit price
Funding carry analysis
- 1.Call `funding_cost` on exchange A → cost over holding period
- 2.Call `funding_arb` comparing exchange A vs B → annualized yield
- 3.Call `compound_funding` → decay-adjusted total cost
Scenario planning
- 1.Call `scenario` with price targets → P&L table
- 2.Call `target_exit` → exact price to hit target ROE
- 3.Call `hedge_ratio` → cost of hedging the position
Self-verification
Agents can call verify_calculators before using results. Returns pass/fail for all 22 canonical test vectors.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": { "name": "verify_calculators", "arguments": {} }
}
// Response
{
"status": "pass",
"passed": 22,
"failed": 0,
"total": 22,
"timestamp": "2026-03-30T..."
}Live proof: tradingcalc.io/verify
Built for
AI agents & assistants
Trading bots
Risk management systems
Multi-agent pipelines
Dashboards & analytics
Algo trading strategies
Frequently asked questions
Is TradingCalc an AI?
No. It’s a deterministic calculation layer. Same inputs always produce the same outputs.
What does “deterministic” mean?
No randomness. No estimation. Same inputs, same outputs, every time.
Does it work in Claude Desktop / Cursor / VS Code?
Yes. Quickstarts for all three are above.
Can I use it without an API key?
Yes. 20 calls/day anonymously, no signup required.
How do I verify results are correct?
Call verify_calculators via MCP, or visit /verify for the live proof page.
Which exchanges are supported?
Binance, Bybit, OKX, Hyperliquid, Aster, KuCoin, MEXC.
Can I use it in an automated trading bot?
Yes. That’s a primary use case. MCP and REST both work.
What is a composite tool?
A single call that combines multiple primitives. Example: pre_trade_check runs position sizing, liquidation, breakeven, and target exit in one call. Coming soon.
Is there a free plan?
Yes. Evaluate tier: 20 calls/day, no signup. Free API key: 200 calls/day.
Is there a programmatic payment option for agents?
Pay-per-call via x402 is planned for composite endpoints. Currently: API key billing.
Pricing
Priced by workflow, not by calculator.Evaluate
20 calls / day
Free
no signup
Builder
200 calls / day
Free
API key
Pro Agent
25,000 calls / mo
$29
per month
Strategy
100,000 calls / mo
$79
per month
Start in 30 seconds
No signup required. Add to Claude Desktop or Cursor using the config above, or call the endpoint directly.