MCP Server

MCP Server
The Hyperdrome MCP server is on the roadmap and not yet live. This page documents the planned specification.

What is MCP?

Model Context Protocol (MCP) is an open standard by Anthropic that lets AI assistants discover and call tools on external servers. It uses JSON-RPC 2.0 — the assistant calls tools/list to discover available actions, then tools/call to execute them. MCP is supported by Claude Desktop, Cursor, Opencode, Windsurf, and a growing number of AI coding and chat tools.

Why MCP for DeFi?

Today, interacting with DeFi requires:
  1. Opening a browser
  2. Connecting a wallet
  3. Navigating a complex UI
  4. Understanding slippage, routing, gas
With Hyperdrome’s MCP server, any AI assistant can directly swap tokens, check yields, vote on gauges, and manage positions — without the user ever leaving their preferred tool.
“Swap 500 USDC to HYPE on Hyperdrome” — typed into Claude Desktop, Cursor, or any MCP client.

Available Tools

The MCP server exposes the full Hyperdrome protocol as callable tools:

Trading

ToolDescriptionParameters
swapSwap tokens with optimized multi-hop routingfromToken, toToken, amount, slippageBps?
get_quoteGet a swap quote without executingfromToken, toToken, amount

Liquidity

ToolDescriptionParameters
add_liquidityDeposit token pair into a pooltokenA, tokenB, amountA, amountB, stable
remove_liquidityWithdraw from a pooltokenA, tokenB, stable, liquidity
stake_lpStake LP tokens in a gaugepool, amount
unstake_lpUnstake LP tokens from a gaugepool, amount

Locking & Voting

ToolDescriptionParameters
lockLock HDROME to create or extend a veNFTamount, duration
voteAllocate veHDROME votes across gaugestokenId, pools[], weights[]
reset_votesReset votes for a veNFTtokenId

Rewards

ToolDescriptionParameters
claim_rewardsClaim all pending rewardstokenId?
claim_feesClaim trading fees for a specific gaugegauge
claim_bribesClaim external bribesgauge, tokens[]

Read-Only

ToolDescriptionParameters
get_poolsList all pools with TVL, APR, volumesortBy?, limit?
get_portfolioFull wallet analysisaddress
get_yieldsTop yield opportunitieslimit?, minTvl?
get_venftGet veNFT detailstokenId
get_pending_rewardsCheck unclaimed rewardsaddress

Tool Schema Example

Each tool follows the MCP specification with a JSON Schema for inputs:
{
  "name": "swap",
  "description": "Swap tokens on Hyperdrome (HyperEVM). Finds the optimal route across volatile and stable pools. Returns unsigned transaction for user approval.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "fromToken": {
        "type": "string",
        "description": "Token symbol or address to sell (e.g. 'USDC' or '0xb883...')"
      },
      "toToken": {
        "type": "string",
        "description": "Token symbol or address to buy (e.g. 'HYPE')"
      },
      "amount": {
        "type": "string",
        "description": "Amount to swap in human-readable units (e.g. '100')"
      },
      "slippageBps": {
        "type": "number",
        "description": "Max slippage in basis points (default: 50 = 0.5%)"
      }
    },
    "required": ["fromToken", "toToken", "amount"]
  }
}

Connection

Claude Desktop / Cursor / Opencode

Add to your MCP configuration:
{
  "mcpServers": {
    "hyperdrome": {
      "url": "https://mcp.hyperdrome.finance/sse"
    }
  }
}

Self-Hosted

The MCP server will be open-source. Run your own instance:
git clone https://github.com/hyperdrome/mcp-server
cd mcp-server
npm install
PRIVATE_KEY=0x... RPC_URL=https://rpc.hyperliquid.xyz/evm npm start

Security Model

PropertyDetail
Read-only by defaultPortfolio queries and pool data require no wallet connection
Transaction approvalAll write operations return unsigned transactions for the user to review and sign
No private keysThe hosted MCP server never touches private keys. Signing happens client-side.
Rate limitingPer-IP and per-API-key rate limits to prevent abuse
Audit trailEvery tool call is logged with timestamp, parameters, and result
The MCP server never executes transactions on your behalf. It builds the transaction and returns it for your explicit approval — just like any DeFi frontend.

Use Cases

ScenarioHow
Developer building a DeFi dashboardQuery pools, yields, and positions via MCP tools
AI coding assistant”Help me write a script that claims all my Hyperdrome rewards” — the assistant calls get_pending_rewards then claim_rewards
Autonomous agentA portfolio management agent checks yields hourly and rebalances via add_liquidity / remove_liquidity
Chat botA Telegram bot that lets users swap, check portfolio, and vote through natural language
ResearchAn analyst queries get_pools to build a yield comparison across HyperEVM DEXes