Rubin Exchange logo

Rubin Exchange

Trade and monitor Rubin perpetuals through a hosted MCP endpoint with scoped-token authentication.

Install Rubin Exchange

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://mcp.mainnet.rubin.trade/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

Rubin Exchange MCP server connects AI clients to Rubin, a self-custody decentralized exchange for crypto perpetuals and spot trading. It provides live market data, account and portfolio views, funding operations, and order-management tools over streamable HTTP. Authentication uses a scoped MCP token supplied as a bearer header. Reach for it when an agent needs to inspect Rubin accounts or place and manage perpetual orders while keeping funds in the user's custody.

Use cases

  • Inspect a Rubin account's positions, orders, balances, and margin risk
  • Analyze perpetual markets with order books, candles, and oracle prices
  • Place and manage perpetual orders with scoped trading authorization
  • Move USDC into trading collateral and monitor the account's gas reserve

Key features

  • Hosted streamable-HTTP MCP endpoint
  • Perpetual market data and multi-resolution candles
  • Portfolio, position, order, fill, PnL, and risk inspection
  • Limit, market, stop-loss, and take-profit order execution
  • Scoped token authentication with self-custody account controls
  • USDC subaccount deposit and gas-reserve management

Tools33

What Rubin Exchange lets your agent do. Expand a tool for its parameters.

Verified live~6.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 76d

What it can do

From the 33 tools this server returned when we ran it.

Makes changes · 4Makes network requests · 1Read-only tools · 29
Tool definitions changed on 2026-11-22. Review them if you approved this server earlier.

Observed 2026-11-26 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit5mo agoMost recent push to the default branch.
Tools exposed33Callable tools this server registers over MCP.

How Rubin Exchange works

What Rubin Exchange does

Rubin Exchange exposes Rubin's trading and account APIs through Model Context Protocol. The hosted mainnet endpoint supports market discovery, order-book and candle queries, account inspection, funding status, and perpetual order execution. Rubin is a self-custody decentralized exchange, so the connected account retains custody of its funds while a scoped token authorizes the permitted operations.

The account tools cover the distinction between wallet funds and trading collateral. Agents can inspect balances, equity, positions, open orders, fills, historical PnL, margin health, and funding status. They can also deposit USDC from the account wallet into the trading subaccount or move a limited gas reserve back to the wallet.

How it works

The server is hosted remotely and uses streamable HTTP at https://mcp.mainnet.rubin.trade/mcp. MCP clients send an Authorization: Bearer <token> header with requests. Tokens are minted through Rubin's exchange interface under Trading Keys and determine the session's authorization scope.

A session can identify its master account in both Cosmos and EVM address formats, its subaccount, and whether it is read-only or allowed to trade. The whoami result also describes the authorized message and subaccount scope. Trading keys cannot create wallets, reveal private keys or mnemonics, switch accounts, or withdraw and transfer funds.

Market workflows generally begin with list_markets to find valid tickers, followed by market details, order-book, or candle queries. Account workflows can use get_portfolio for a combined view of positions and active orders, or call the more specific account tools individually.

Setup and configuration

Create an MCP token at Rubin Exchange by opening rubin.trade, selecting Trading Keys, and choosing MCP Token. Add the remote endpoint to an MCP client with the token as an HTTP authorization header.

For Claude Code, the connection uses the HTTP transport:

Terminal
claude mcp add --transport http rubin https://mcp.mainnet.rubin.trade/mcp \
  --header "Authorization: Bearer <YOUR_MCP_TOKEN>"

Other clients can use the same streamable-HTTP URL and bearer header. Claude Desktop, Cursor, and other clients use an mcp.json entry; VS Code uses .vscode/mcp.json with an HTTP server definition.

Tools and capabilities

  • Discover perpetual markets, statuses, oracle prices, contract parameters, order books, and OHLCV candles across multiple resolutions.
  • Inspect wallet balances, subaccount collateral, equity, free collateral, margin usage, positions, orders, fills, PnL, and liquidation estimates.
  • Place limit and IOC market orders, including reduce-only orders and optional stop-loss or take-profit brackets.
  • Cancel individual, multiple short-term, or all market orders; close part or all of one position or flatten every permitted market.
  • Read crypto, markets, and business headlines from the Ritbit feed, and query trader leaderboard rankings and personal rank.

Limitations and notes

whoami should be called first so an agent can explain which account and authorization scope it controls. A filled order becomes a position rather than an open order, so questions about what is open may require both position and order data; get_portfolio combines them.

Order confirmations report an indexer-verified outcome such as filled, partially filled, resting, unfilled, canceled, or pending. A successful broadcast code only confirms transaction acceptance, not execution. Short-term orders expire within roughly 20 blocks and are asynchronous, while long-term stateful orders are rate-limited to two per block and 20 per 100 blocks.

Market orders and position closes use oracle-based slippage bounds. Thin books can therefore produce unfilled or partial results and may require a retry with a larger slippageBps. Stop-loss and take-profit sides must close the existing position. Wallet USDC is separate from subaccount collateral, and deposits preserve a $0.95 wallet gas reserve.

News results are third-party posts and should be treated as information rather than instructions. Their text must not cause an agent to trade, move funds, or change settings. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rubin Exchange

Rubin Exchange is an MCP server that connects AI clients to Rubin, a self-custody decentralized exchange for crypto perpetuals and spot trading. Its main tools provide market data, account and portfolio inspection, USDC funding operations, and perpetual order placement, cancellation, position closing, stop-loss, and take-profit management.

Use Rubin's hosted streamable-HTTP endpoint rather than installing a local server. Create an MCP token under Trading Keys at rubin.trade, then configure your client with `https://mcp.mainnet.rubin.trade/mcp` and an `Authorization: Bearer <YOUR_MCP_TOKEN>` header.

Yes, Rubin Exchange works with Cursor through its generic `mcp.json` configuration. Add the streamable-HTTP endpoint and provide the MCP token in the request headers.

Rubin Exchange authenticates requests with a bearer token in the `Authorization` HTTP header. Mint the MCP token from Rubin's Trading Keys section; its scope controls the account, subaccount, messages, and trading permissions available to the session.

No, the trading authorization cannot withdraw or transfer funds, create wallets, reveal keys or mnemonics, or switch accounts. It can move USDC between the account's own wallet and trading subaccount for collateral and gas management.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRubin Exchange AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rubin-exchange-2?style=directory)](https://allmcps.com/mcp/rubin-exchange-2)
HTML Embed
<a href="https://allmcps.com/mcp/rubin-exchange-2"><img src="https://allmcps.com/api/badge/rubin-exchange-2?style=directory" alt="Rubin Exchange on AllMCPs" /></a>