Search / io.github.Marginpad/sdk
sdk
R0· no sign-inFree crypto-futures paper trading and live market data for AI agents. 29 tools; no key for data.
v3.0.0 · active · repository · website · descriptor JSON · versions
Search / io.github.Marginpad/sdk
R0· no sign-inFree crypto-futures paper trading and live market data for AI agents. 29 tools; no key for data.
v3.0.0 · active · repository · website · descriptor JSON · versions
{
"mcpServers": {
"sdk": {
"type": "http",
"url": "https://marginpad.io/mcp",
"headers": {
"X-API-Key": "${X_API_KEY}"
}
}
}
}claude mcp add --transport http sdk https://marginpad.io/mcp --header "X-API-Key: ${X_API_KEY}"[mcp_servers.sdk]
url = "https://marginpad.io/mcp"
env_http_headers = { "X-API-Key" = "X_API_KEY" }
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sdk": {
"type": "remote",
"url": "https://marginpad.io/mcp",
"enabled": true,
"headers": {
"X-API-Key": "{env:X_API_KEY}"
}
}
}
}{
"mcpServers": {
"sdk": {
"type": "http",
"url": "https://marginpad.io/mcp",
"headers": {
"X-API-Key": "${X_API_KEY}"
}
}
},
"deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=sdk&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vbWFyZ2lucGFkLmlvL21jcCIsImhlYWRlcnMiOnsiWC1BUEktS2V5IjoiJHtYX0FQSV9LRVl9In19"
}{
"servers": {
"sdk": {
"type": "http",
"url": "https://marginpad.io/mcp",
"headers": {
"X-API-Key": "${X_API_KEY}"
}
}
}
}{
"mcpServers": {
"sdk": {
"httpUrl": "https://marginpad.io/mcp",
"headers": {
"X-API-Key": "${X_API_KEY}"
}
}
}
}extensions:
"sdk":
enabled: true
name: "sdk"
type: streamable_http
uri: "https://marginpad.io/mcp"
headers:
"X-API-Key": "${X_API_KEY}"
timeout: 300
Placeholders to fill from your own secret store: ${X_API_KEY}. The registry never accepts secret values.
protocol.modernnewest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28protocol.statelessonly applies to 2026-07-28 serversprotocol.transportstreamable HTTPprotocol.list_ttlonly applies to 2026-07-28 serversauth.prm, auth.as_metadata, auth.cimdno remote uses OAuthauth.secret_in_urlno templated URLtools.descriptionsevery tool has a descriptiontools.description_length1 tools have descriptions over 1,024 characters, which crowds the contexttools.schemasevery tool has an object input schematools.annotations29 of 29 tools declare readOnlyHint or destructiveHinttools.directory_hintsevery tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHinttools.token_costabout 4,331 tokens to load every tooltools.api_dumptools are not a one-to-one API dumpstability.changes30 tool changes in 30 daysstability.rug_pullno tool changed its meaning under the same namedeps.known_vulns, deps.mcp_sdk_version, deps.resolvableno npm or PyPI packagepaper_cancel_orderchangedtitle, annotationspaper_orderschangedtitle, annotationspaper_limit_orderchangedtitle, annotationspaper_replaychangedtitle, annotationspaper_equitychangedtitle, annotationspaper_resetchangedtitle, annotationspaper_accountschangedtitle, annotationspaper_reportchangedtitle, annotationspaper_realismchangedtitle, annotationspaper_simchangedtitle, annotationsShowing the latest 10. Full history: list_changes · trend: quality JSON.
Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.
+repository +namespace-matches-repo +website +reachable +uptime-100% +updated-10d-ago
Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.
| remote | auth | reachable | uptime 30d | p50 | protocol | last ok |
|---|---|---|---|---|---|---|
https://marginpad.io/mcp streamable-http | none | yes | 100% | 346 ms | 2025-11-25 | 2026-10-20 |
calc_liquidationread-only | Liquidation price for a position: entry, leverage, side. |
calc_position_sizeread-only | Risk-based position size from account balance, risk percent, entry and stop. |
get_economic_calendarread-only | Upcoming macro events that move crypto (FOMC, CPI, NFP). Always check this before answering questions about dates - never answer those from memory. |
get_fear_greedread-only | Crypto Fear and Greed index, current value and classification. |
get_fundingread-only | Current funding rates across exchanges - who pays whom to hold a perp position. |
get_klinesread-only | OHLC candles for a symbol. Use this to compute indicators or check a setup before trading. |
get_liquidationsread-only | Recent real liquidation events aggregated from eight exchanges. |
get_marketsread-only | Every tradable symbol with its asset class, maximum leverage and taker fee. Call this before sizing a trade. |
get_open_interestread-only | Open interest per symbol - how much leveraged money is committed. |
get_priceread-only | Live price and 24h change for a crypto perp, stock, index, forex pair or metal. No API key needed. |
get_screenerread-only | Scored trade setups across top USDT perps: 0-100 technical score, RSI, MACD, funding and open interest. |
paper_accountsread-only | Every book (sub-account) of this account with lifetime numbers and the keys bound to it. A book is a separate journal, balance and report; a key minted with a book name trades that book. Requires an API key. |
paper_balanceread-only | Your paper account: balance, equity, free margin, unrealized P&L. Requires an API key. |
paper_cancel_orderdestructive | Cancel a resting limit order. Requires an API key. |
paper_closedestructive | Close a simulated position, fully or partially. Requires an API key. |
paper_equityread-only | The equity curve of this key’s book: starting balance + realized P&L per bucket from the ledger, the live unrealized point at the end, and max drawdown. Requires an API key. |
paper_fees | Which exchange fee schedule your paper fills are charged at: lists the venues we model (Bybit, Binance, OKX, Bitget, MEXC, Gate, KuCoin, Kraken, Hyperliquid) with their taker rate and the referral discount a MarginPad sign-up gets, and your current default. Pass set to change the default (a venue key, or "marginpad" for the default rate). Requires an API key. |
paper_limit_order | Place a resting order that fills only when the market reaches your price, and fills AT that price. type "limit" = a pullback entry (long below the market, short above); type "stop" = a breakout entry (long above the market, short below). To open right now use paper_open instead. Simulated money only. Requires an API key. |
paper_modify_order | Change a resting limit or stop order in place: its price, stop-loss, take-profit, margin, leverage or trailing stop. Requires an API key. |
paper_open | Open a simulated position at the live price. Simulated money only - no real funds are ever at risk. Requires an API key. |
paper_ordersread-only | Your resting limit orders, plus the last 20 that filled, expired or were cancelled. Requires an API key. |
paper_positionsread-only | Your paper positions with live mark price and P&L net of fees; status "open" for just the open ones. Requires an API key. |
paper_realism | How honestly your paper fills are simulated. By default a market order fills at the live price with no slippage and maintenance margin is a flat 0.5%, which is easier than a real exchange and increasingly so as a position grows. Pass slippage and/or margin_tiers to turn either on, and margin_venue to build on a named venue’s published maintenance-margin rate (Binance 0.40%, Bybit 0.50%, MEXC 0.10%, Kraken 0.60%, Hyperliquid 1.25%, Coinbase 1.33%). Reading returns your setting, every venue rate and the whole size-tier ladder, so a liquidation price never has to be reverse-engineered. Positions keep the margin they were filled with. Requires an API key. |
paper_replay | Backtest with the real routes: replay one past UTC day on MarginPad’s 1-minute candles. With symbol+day it STARTS a replay (speed = market seconds per real second, 1-600, default 60): from then on paper_open / paper_positions / paper_close act on a separate replay journal priced at the candle under the cursor, with stops, targets and liquidations checked on every candle. With no arguments it reads the status (cursor, price, progress, candles up to the cursor). With act "stop" it closes everything at the cursor and returns the summary. Requires an API key. |
paper_reportread-only | The 30-day trading report for this account, measured from its own closed trades: totals and a skill score (free), win rate and return by coin, leverage band, side, hour and day plus written findings (API Pro and above). Requires an API key. |
paper_resetdestructive | Restart this key’s book at $10,000: closed trades are archived (never deleted), resting orders cancelled, the report and equity curve start from now. Refused while positions are open - close them first. Requires an API key. |
paper_sim | The whole paper-trading simulation, configurable. By default this engine is deliberately easy: a market order fills whole at the live price, maintenance margin is a flat 0.5%, the balance is a scorecard that never refuses an open, and there is no latency, no size impact and no partial fill. That is right for learning and optimistic for proving out a bot. This sets any of it: the book size your results are measured against and whether it is a real budget (margin_enforced), what crossing the book costs on entry and exit (slippage, slippage_bps, impact_bps_per_100k), how long your order is in flight (latency_ms), whether orders fill part-way (partial_fills, min_fill_pct), how often the venue refuses (reject_rate_pct), your own fee (taker_bps), funding (funding, funding_mult) and where liquidation sits (margin_venue, margin_tiers, mmr_pct). Easiest route: pass a preset - frictionless, realistic, binance, bybit, okx, hyperliquid, thin_book or brutal. Reading returns every field with its range, its default and what it changes, the presets, and what a fill would look like right now. Out-of-range values are refused, never clamped. Positions keep the simulation they were filled under. Requires an API key. |
paper_sltp | Move the stop-loss, take-profit or trailing stop on an open simulated position. Requires an API key. |
paper_tradesread-only | Closed-trade ledger with paging - the full record for measuring a strategy. Requires an API key. |
Schemas: list_tools.
{
"name": "io.github.Marginpad/sdk",
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
"remotes": [
{
"url": "https://marginpad.io/mcp",
"type": "streamable-http",
"headers": [
{
"name": "X-API-Key",
"isSecret": true,
"description": "MarginPad Bot API key (mpb_...). Optional: without it the market-data tools work, the paper-trading tools need it."
}
]
}
],
"version": "3.0.0",
"repository": {
"url": "https://github.com/marginpad/sdk",
"source": "github"
},
"websiteUrl": "https://marginpad.io/trading-api/#mcp",
"description": "Free crypto-futures paper trading and live market data for AI agents. 29 tools; no key for data."
}