{
  "markdown": "# Rubin MCP server (mainnet)\n\nTrade crypto **perpetual futures and spot** on [Rubin](https://rubin.trade) — a self-custody decentralized exchange — directly from AI agents and assistants via the **Model Context Protocol (MCP)**.\n\nRubin runs a **hosted, remote MCP server** (streamable-HTTP). Connect any MCP client (Claude, Cursor, VS Code, etc.) and let agents place and manage orders and read live market and account data. You keep custody of your funds — trading is authorized by a scoped token you mint yourself.\n\n- **Exchange / app:** https://rubin.trade\n- **MCP & AI-trading docs:** https://code.rubin.trade/ai\n- **Endpoint (mainnet):** `https://mcp.mainnet.rubin.trade/mcp` · transport `streamable-http`\n- **Official MCP Registry:** [`trade.rubin/exchange`](https://registry.modelcontextprotocol.io/v0/servers?search=trade.rubin)\n\n## Tools\n- **Market data** — list markets, order book, candles, market stats, block height\n- **Account** — balances, equity, positions, open orders, fills, PnL\n- **Trading** — place / cancel limit & market orders, stop-loss, take-profit, cancel-all, batch-cancel\n\n## Authentication\nSend an `Authorization: Bearer <token>` header. Mint a free **MCP token** on the Rubin exchange:\n\n> **https://rubin.trade → Trading Keys → MCP Token**\n\n## Connect\n\n**Claude Code / CLI**\n```bash\nclaude mcp add --transport http rubin https://mcp.mainnet.rubin.trade/mcp \\\n  --header \"Authorization: Bearer <YOUR_MCP_TOKEN>\"\n```\n\n**Generic `mcp.json` (Claude Desktop / Cursor / others)**\n```json\n{\n  \"mcpServers\": {\n    \"rubin\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://mcp.mainnet.rubin.trade/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer <YOUR_MCP_TOKEN>\" }\n    }\n  }\n}\n```\n\n**VS Code (GitHub Copilot) — `.vscode/mcp.json`**\n```json\n{\n  \"servers\": {\n    \"rubin\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.mainnet.rubin.trade/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer <YOUR_MCP_TOKEN>\" }\n    }\n  }\n}\n```\n\nSee [code.rubin.trade/ai](https://code.rubin.trade/ai) for ready-made snippets for every client.\n\n## Manifest\n[`server.json`](./server.json) — the MCP Registry manifest for this server.\n\n## Links\n- Exchange: https://rubin.trade\n- Builder & MCP docs: https://code.rubin.trade\n- Market data API (indexer): https://indexer.mainnet.rubin.trade\n\n## License\n[MIT](./LICENSE)\n",
  "bytes": 2328,
  "sha": "6401af50d4d48220e2306bfd5de618d3e394594ea3a48ca496e2d71f06b6ac1d",
  "repo_slug": "rubin-trade/rubin-mainnet-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_trade_rubin_exchange_2b90d85d/readme"
}