mcpField
R
Rubin Exchange

Rubin Exchange

Remote
code.rubin.tradeFinance0Updated 17w ago

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

  1. 01Live market data and order books
  2. 02Balances, positions, orders, fills, and PnL
  3. 03Place and cancel market or limit orders
  4. 04Manage stop-loss and take-profit orders
  5. 05Cancel orders individually, in batches, or all at once

Use cases

  1. 01Review current markets and account positions
  2. 02Place or manage spot and perpetual trades
  3. 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.

Endpointhttps://mcp.mainnet.rubin.trade/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

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.

All endpoints
Streamable HTTPhttps://mcp.mainnet.rubin.trade/mcpAuth required

Tools

33

This tool takes no parameters.

Details

From the project README

Rubin 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.

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

License

MIT

Comments

Markdown supported

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.