TradingCalc MCP Server

TradingCalc MCP Server

tradingcalc-mcp•byskalinin909

A remote MCP server that returns deterministic trading, options, forex and risk calculations with signed, verifiable results.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Computes trading maths deterministically, so identical inputs always yield identical numbers rather than model estimates.
  • •Covers options pricing and Greeks, forex position sizing and margin, risk and statistics, prediction markets, on-chain checks, time value of money and futures calculations.
  • •Signs every tool result with ECDSA P-256 so responses can be verified offline using a published public key.
  • •Provides a system.verify tool that runs canonical test vectors and returns a pass/fail report.

BEST FOR

  • •Options and forex desks that need exact pricing, position sizing or margin checks in a single call.
  • •Quant research computing Sharpe, VaR, cointegration and drawdown statistics from a return series.
  • •AI agents and trading bots that need deterministic risk calculations such as liquidation price before a trade.

ABOUT TRADINGCALC-MCP

TradingCalc MCP Server is cataloged as an MCP server attributed to skalinin909. A remote MCP server that returns deterministic trading, options, forex and risk calculations with signed, verifiable results. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for TradingCalc MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do I need an account or API key to use TradingCalc MCP?

No account or API key is required; anonymous access allows 100 requests per day, and a free API key raises that to 200.

How can I verify that a returned result is authentic?

Each tools/call result carries an ECDSA P-256 signature, and the public key plus canonical string format can be fetched to verify the response offline.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 905ceea76f65 · 采集于 2026-11-13 11:00:48 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

TradingCalc MCP Server

npm License: MIT Verified vectors Remote MCP MCP Badge mcptry

An LLM guesses trading maths. This server computes it: the same inputs always return the same numbers, every result carries a signature you can check, and the core formulas are tested against public vectors (live count in the badge above).

 Your question               MCP tool call                    Result
+------------------+      +---------------------------+      +---------------------------+
| "Risk $200 on    |   ►  | workflow.run_forex_       |   ►  | 0.67 lots, plus an ECDSA  |
|  EUR/USD with a  |      | position_size_live        |      | P-256 signature you can   |
|  30 pip stop"    |      | (deterministic maths)     |      | verify offline            |
+------------------+      +---------------------------+      +---------------------------+

Ask Claude, Cursor or any MCP client trade questions and get exact numbers back, not guesses:

"What should a BTC call at a $90k strike, 30 days out, with 55% implied volatility be worth?" "How many lots of EUR/USD should I trade to risk $200 with a 30-pip stop?" "What's my 95% Value at Risk on this monthly return series?" "What's my PnL if I buy 0.5 BTC at $80k and sell at $95k with 5x leverage?"

What it covers (100 tools)

DomainExamples
OptionsBlack-Scholes price and Greeks (manual, or checked live against a Deribit BTC/ETH option), payoff and breakeven, straddle and strangle, vertical spreads, covered call, protective put and cash-secured put, implied volatility, barrier touch, American options, max pain, strategy picker
ForexPosition size from a risk amount, pip value, margin, swap cost, currency conversion, pair correlation, with live-rate variants for the account currency
Risk and statisticsVaR and CVaR, Sharpe with the Lo 2002 correction, Deflated Sharpe, Kelly frontier, GARCH(1,1), risk parity, Hurst exponent, cointegration, portfolio tearsheet, EVT tail risk
Prediction marketsOdds and vig, market-implied odds, edge sizing, spread and arbitrage checks across Kalshi, Polymarket, Limitless and Myriad
On-chainSolana token and wallet checks, swap price impact, pump.fun bonding curve, impermanent loss
Crypto spotProfit or loss on a coin bought and sold outright after both fees, DCA, average buy price, target sell price
Time value of moneyPresent and future value, NPV, IRR, CAGR, APY and APR, bond price and duration
Crypto futuresPnL, liquidation price, breakeven, funding cost, position size, risk/reward, linear and coin-margined contracts

Access via MCP (Claude Desktop, Cursor, VS Code and other clients) or a plain HTTP POST to the MCP endpoint. No signup. The server is remote, so nothing to install beyond a one-line client config; only the Claude Desktop bridge below needs Node.js 18 or newer.

Endpoints

SurfaceURLAuth
MCPhttps://tradingcalc.io/api/mcpBearer optional (free)
For agents / setuphttps://tradingcalc.io/for-agentsNone
Full API & MCP referencehttps://docs.tradingcalc.io/apiNone
Verification proofhttps://tradingcalc.io/verifyNone

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

Quick Start

One command or one config entry per client. Prerequisites: an MCP client; Node.js 18 or newer only for the Claude Desktop bridge and the skill installer. No account, no API key.

ClientInstall
Claude Codeclaude mcp add --transport http tradingcalc https://tradingcalc.io/api/mcp
Gemini CLIgemini extensions install https://github.com/SKalinin909/tradingcalc-mcp
Coding agents with skills (Claude Code, Cursor, Copilot)npx skills add SKalinin909/tradingcalc-mcp
Claude Desktop, Cursor, VS Codeconfig entry below
Cline"type": "streamableHttp" config entry, see "Cline" below
Any other clientplain HTTP POST, see "Direct HTTP" below

Claude Desktop

Add to 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"
  }
}

Cline

Add to cline_mcp_settings.json (MCP Servers, Configure). Set type explicitly: without it Cline reads the URL as the legacy SSE transport.

{
  "mcpServers": {
    "tradingcalc": {
      "type": "streamableHttp",
      "url": "https://tradingcalc.io/api/mcp"
    }
  }
}

No API key and no npx step. Setup notes for agents are in llms-install.md.

Agent Skill

For coding agents that support the skills.sh ecosystem (Claude Code, Cursor, GitHub Copilot, and others) - installs a SKILL.md that teaches the agent when to reach for these tools instead of estimating trade math itself:

npx skills add SKalinin909/tradingcalc-mcp

Direct HTTP

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:

Options payoff

"What does my BTC call payoff at $90,000? Strike $85,000, premium 0.02 BTC, long 1 contract."

Black-Scholes / IV check

"Is Deribit's BTC-27FEB27-90000-C fairly priced right now?"

Covered call yield

"I hold BTC bought at $80,000. What annualized yield do I get selling a $85,000-strike call for 0.02 BTC, 30 days out?"

Forex pip value

"What's a pip worth on 2 lots of EUR/USD, in my USD account?"

Forex position size

"How many lots should I trade to risk $200 on EUR/USD with a 30-pip stop?"

Forex margin level

"My equity is $5,000 and used margin is $1,800. How close am I to a margin call?"

Value at Risk

"What's my 95% Value at Risk and expected shortfall on this monthly return series? [paste returns]"

Sharpe ratio

"What's the Sharpe ratio of these monthly returns, corrected for autocorrelation?"

Cointegration

"Are these two price series cointegrated? Is there a pairs trade?"

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?"

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)

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?"


Tools (100)

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; 100 calls/day anonymously, 200/day with a free API key.

CategoryTools
Options (Deribit BTC/ETH, coin-settled; US-style equity legs)Options payoff & breakeven, Black-Scholes price/Greeks (manual + live), higher-order Greeks (vanna, vomma, charm, veta, speed, zomma, color), straddle/strangle, vertical spread & iron condor, covered call/protective put, cash-secured put, implied volatility solver, barrier touch, American option, options position, strategy picker, max pain (14)
Forex (quote-currency + live account-currency conversion)Pip value, margin level, breakeven, PnL, risk/reward, scenario, average entry, position size, margin required, currency converter, swap/rollover cost, correlation, Fibonacci levels: manual + live-FX-rate variants (18)
Risk/StatsVaR/CVaR (+ Modified VaR), Sharpe ratio (Lo 2002 + PSR), Hurst exponent, cointegration, portfolio tearsheet, GARCH(1,1), risk parity, Deflated Sharpe Ratio, Kelly growth-security frontier, return unsmoothing, EVT tail risk, Monte Carlo, event study, order-book impact (14)
Prediction Markets (Kalshi, Polymarket, Limitless, Myriad, ADI Predictstreet crypto categories)Odds converter, market-implied odds, prediction-market edge, window fair value, cross-venue spread reader, cross-venue arbitrage, ladder max leg (7)
On-chain (Solana + 5 EVM chains, per tool)Token risk check, swap price impact, bonding curve, market cap comparison, wallet flag check, impermanent loss (manual + live) (7)
Time value of moneyPresent value, future value, NPV, IRR, CAGR, APY/APR converter, bond price (7)
Trade PlanningPnL, break-even, exit target, scenario, DCA entry, scale-out, average down (7)
Risk & MarginLiquidation safety (manual + live), position sizing, max leverage, risk/reward (5)
Funding & CarryFunding cost, funding arbitrage, compound funding, funding break-even, carry trade (5)
Market Structure (Market Profile)Open analysis, session structure, value migration, breakout acceptance (4)
PrimitivesAverage entry, hedge ratio (2)
Crypto spotCrypto profit (spot trade after both fees), spot DCA, average buy price, target sell price (4)
Cross-exchangePrice consensus: how far one perpetual futures price sits from 7 reference exchanges (1)
Integrated DecisionPre-trade check (sizing + liquidation + breakeven + funding + go/no-go in one call), portfolio risk review (2)
Systemsystem.verify - run the canonical test vectors, get a pass/fail report; system.pubkey - get the public key to verify signed responses offline; system.batch - run several tool calls in one request (3)

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

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

Rate Limits

AccessReq/dayPrice
Anonymous100Free
Free API key200Free

The Service is free. Need a higher-limit key? Email s@tradingcalc.io.

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

Self-Verification

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

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

Response: { "status": "pass", "passed": N, "failed": 0, "total": N }, where N is the current number of canonical vectors (live count in the badge at the top).

Live proof: tradingcalc.io/verify

Signed Responses

system.verify proves the formulas are correct. It doesn't prove the specific response you got wasn't altered by a proxy, cache, or MITM in between. Every tools/call result carries a second content block signed with ECDSA P-256, plus X-TradingCalc-Signature/Kid/Signed-At headers. Call system.pubkey (or GET /api/mcp/pubkey) for the public key (PEM + JWK) and the canonical string format needed to verify offline, no callback required.

Once a day the verification state is also signed and its SHA-256 is written to Solana mainnet in a Memo transaction (tcalc1 {date} {hash}), each record carrying the hash of the day before. Read the records at GET https://tradingcalc.io/api/anchors; the latest record and how to verify it yourself are at tradingcalc.io/verification.

Use Cases

  • Options and forex desks: price an option, size a forex position, or check margin level in one exact call
  • Quant research: Sharpe, VaR, cointegration and drawdown statistics from a return series, cross-checked against reference libraries
  • 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).

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:

npm install tradingcalc-sdk
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

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for TradingCalc MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/tradingcalc-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics