MCP Hub
Back to servers

Relay MCP Server

Provides cross-chain bridge and swap tools for AI agents using the Relay Protocol to interact with multiple blockchain networks. It enables agents to query supported chains, obtain transaction quotes, and generate unsigned transaction data for token transfers and swaps.

Updated
Feb 24, 2026

Relay MCP Server

A Model Context Protocol server for Relay Protocol — cross-chain bridge and swap tools for AI agents.

Tools

ToolDescription
get_supported_chainsList supported blockchain networks
get_supported_tokensSearch for tokens across chains
get_bridge_quoteQuote for bridging same token across chains
get_swap_quoteQuote for swapping between different tokens
estimate_feesFee breakdown for a bridge or swap
execute_bridgeGet unsigned transaction data for execution
get_transaction_statusCheck status of a relay transaction
get_transaction_historyPast transactions for a wallet
get_relay_app_urlDeep link to the Relay web app with pre-filled parameters

Usage

Claude Desktop / Claude Code

{
  "mcpServers": {
    "relay": {
      "command": "npx",
      "args": ["-y", "@relayprotocol/relay-mcp"]
    }
  }
}

Run from source

npm install
npm run build
npm start

Environment variables

VariableDefaultDescription
RELAY_API_URLhttps://api.relay.linkRelay API base URL
RELAY_API_KEYOptional API key for higher rate limits

Architecture

  • Transport: Stdio (MCP spec)
  • Runtime: Node.js
  • API: Direct HTTP calls to api.relay.link (no SDK dependency)
  • Signing: The server returns unsigned transactions. Your agent's wallet infrastructure (Privy, Dynamic, Turnkey, etc.) handles signing and broadcasting.

Agent flow example

User: "Bridge 0.1 ETH from Ethereum to Base"

1. Agent calls get_supported_chains → resolves Ethereum=1, Base=8453
2. Agent calls get_bridge_quote → gets quote with fees and ETA
3. Agent shows user the quote for confirmation
4. Agent calls execute_bridge → gets unsigned transaction + requestId
5. Agent signs and broadcasts tx via wallet infrastructure
6. Agent calls get_transaction_status(requestId) → polls until success
7. Agent confirms completion to user

License

MIT

Reviews

No reviews yet

Sign in to write a review