MCPClaude, Cursor, and any MCP client

Ask your assistant.
Get the real numbers.

NockTrade ships a Model Context Protocol server. Point your assistant at it and questions about markets, depth, funding and what an order would actually cost get answered from the live venue instead of from memory.

It is read-only and holds no keys. Your assistant can research markets and read a public account, but it cannot place an order, cancel one, or move funds — that is a property of the code, not a promise.

Setup

Two minutes, one config entry.

  1. 1Open Settings, then Developer, then Edit Config.
  2. 2Add the nocktrade entry to mcpServers and save.
  3. 3Quit Claude completely (from the tray or menu bar, not just the window) and reopen it.
claude_desktop_config.json
{
  "mcpServers": {
    "nocktrade": {
      "command": "npx",
      "args": ["-y", "nocktrade-mcp"]
    }
  }
}

Needs Node 20 or newer. Nothing to clone and nothing to install — npx fetches the server on demand and runs it locally on your machine.

Try asking

Things it can answer.

What would it cost me to long gold with $500 of margin at 10x on NockTrade?
Which real-world asset perps can I trade, and what is moving today?
How deep is the BTC book right now, and what is the spread in bps?
Read account 0x… and tell me what my positions are worth.
Answer to the first one XAU-USD @ 4051.99estimate_order_cost
Notional$5,000.00
Margin at 10x$500.00
Lighter fee$0.00
NockTrade fee (2.0 bps)$1.00
Est. liquidation price3744.04
Total debited$501.00

Not typed into this page — computed from the live book when it was last built, by the same code the terminal runs before it enables the submit button. The liquidation price is an estimate; the venue's risk engine owns the real one.

Tools

Seven of them. All read-only.

list_markets

Every perp on the venue, sorted by 24h volume, filterable by symbol.

get_market

Mark and index price, 24h range and change, open interest, max leverage, minimum size.

get_orderbook

Live depth on both sides, mid price, spread in basis points.

get_candles

OHLCV history from one minute to one day.

get_account

Collateral, open positions with live PnL and return on margin, asset balances.

get_funding

Funding rate history, hourly or daily.

estimate_order_cost

The whole cost of an order before anyone commits: margin, both fees, liquidation price.

What about placing orders?

Not from this server. Execution needs a key, and a key that lives anywhere an assistant can reach it is a key you have partly given away. If we ever ship a trading server it will run on your own machine with a key you generated yourself, behind limits an assistant cannot talk its way past: per-order and daily caps, a market allowlist, reduce-only by default, and your explicit confirmation for every order.

Until then, research in the chat and execute in the terminal, where you can see the whole cost before you press anything.

Back to nocktrade.xyz