About Rubin Exchange
Rubin Exchange is a hosted MCP server for AI agents and assistants trading spot and perpetual futures on Rubin, a self-custody decentralized exchange. It provides market and account data alongside order-management tools, with trading authorized by a user-minted scoped token.
Key features
- 01Live market data and order books
- 02Balances, positions, orders, fills, and PnL
- 03Place and cancel market or limit orders
- 04Manage stop-loss and take-profit orders
- 05Cancel orders individually, in batches, or all at once
Use cases
- 01Review current markets and account positions
- 02Place or manage spot and perpetual trades
- 03Check balances, fills, and trading PnL
MCP support
Exposes trading, market-data, and account tools through a hosted, remote MCP server using streamable HTTP. MCP clients authenticate with a scoped bearer token minted on Rubin.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.mainnet.rubin.trade/mcpclaude mcp add --transport http trade-rubin-exchange https://mcp.mainnet.rubin.trade/mcp{"mcpServers":{"trade-rubin-exchange":{"type":"http","url":"https://mcp.mainnet.rubin.trade/mcp"}}}Open in Cursor{"servers":{"trade-rubin-exchange":{"type":"http","url":"https://mcp.mainnet.rubin.trade/mcp"}}}Open in VS Code{"mcpServers":{"trade-rubin-exchange":{"type":"http","url":"https://mcp.mainnet.rubin.trade/mcp"}}}{"mcpServers":{"trade-rubin-exchange":{"serverUrl":"https://mcp.mainnet.rubin.trade/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://mcp.mainnet.rubin.trade/mcpAuth requiredTools
33This tool takes no parameters.
Details
From the project READMERubin MCP server (mainnet)
Trade crypto perpetual futures and spot on Rubin — a self-custody decentralized exchange — directly from AI agents and assistants via the Model Context Protocol (MCP).
Rubin 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.
- Exchange / app: https://rubin.trade
- MCP & AI-trading docs: https://code.rubin.trade/ai
- Endpoint (mainnet):
https://mcp.mainnet.rubin.trade/mcp· transportstreamable-http - Official MCP Registry:
trade.rubin/exchange
Tools
- Market data — list markets, order book, candles, market stats, block height
- Account — balances, equity, positions, open orders, fills, PnL
- Trading — place / cancel limit & market orders, stop-loss, take-profit, cancel-all, batch-cancel
Authentication
Send an Authorization: Bearer <token> header. Mint a free MCP token on the Rubin exchange:
https://rubin.trade → Trading Keys → MCP Token
Connect
Claude Code / CLI
claude mcp add --transport http rubin https://mcp.mainnet.rubin.trade/mcp \
--header "Authorization: Bearer <YOUR_MCP_TOKEN>"
Generic mcp.json (Claude Desktop / Cursor / others)
{
"mcpServers": {
"rubin": {
"type": "streamable-http",
"url": "https://mcp.mainnet.rubin.trade/mcp",
"headers": { "Authorization": "Bearer <YOUR_MCP_TOKEN>" }
}
}
}
VS Code (GitHub Copilot) — .vscode/mcp.json
{
"servers": {
"rubin": {
"type": "http",
"url": "https://mcp.mainnet.rubin.trade/mcp",
"headers": { "Authorization": "Bearer <YOUR_MCP_TOKEN>" }
}
}
}
See code.rubin.trade/ai for ready-made snippets for every client.
Manifest
server.json — the MCP Registry manifest for this server.
Links
- Exchange: https://rubin.trade
- Builder & MCP docs: https://code.rubin.trade
- Market data API (indexer): https://indexer.mainnet.rubin.trade
License
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.