AI Agents & MCP
Rubin runs an official MCP server, so AI agents can read markets and account data and trade through a scoped on-chain trading key.
| Network | MCP endpoint (Streamable HTTP) |
|---|---|
| mainnet | https://mcp.mainnet.rubin.trade/mcp |
| testnet | https://mcp.testnet.rubin.trade/mcp |
Everything about agents now lives in its own section:
- Overview — endpoints, access modes, tools and prompts
- Connect — setup for claude.ai, Claude Desktop, ChatGPT, Claude Code, Cursor, VS Code, Codex, Gemini and the Anthropic API
- OAuth & Trading Keys — the authorization flow; the trading key is generated on the server and never crosses the network
- Permissions — what a trading key can do and how to revoke it