BOB
Back to Blog

·3 min read

Introducing BOB Gateway MCP

Maria Nimfuehr

Maria Nimfuehr

Growth marketing lead

Introducing BOB Gateway MCP

BOB Gateway is now available to AI agents through MCP and any AI agent can swap native BTC through it.

Share

AI agents can now swap native BTC through BOB Gateway. Connect Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot or any other MCP client to the hosted BOB Gateway MCP server, and your agent can quote swaps, prepare orders and track them, while your own wallet still signs every transaction.

One URL lets any agent swap native BTC

More and more onchain activity starts in a chat with an agent. People ask their assistant "how much USDC on Base do I get for 0.01 BTC?" and expect a real answer, and then a real swap. Until now, an agent that wanted to use Bitcoin liquidity needed someone to wrap an API for it first.

The BOB Gateway MCP server removes that step. One URL lets any agent that speaks the Model Context Protocol (MCP) swap native BTC.

Your agents can now get quotes, create and track orders

BOB Gateway swaps native BTC to and from tokens on EVM chains and Tron, and swaps tokens between those chains. The MCP server makes the public Gateway V4 API available as 9 tools:

  • Find routes and quote: get_routes lists the supported paths, get_quote prices a swap, and get_max_spendable returns the most BTC an address can send after network fees.
  • Create orders: create_order turns a quote into an order, and quote_and_create does both in one call. Each returns exactly what the user's wallet signs: a deposit address or PSBT for onramps, a transaction otherwise.
  • Broadcast (optional): register_tx broadcasts a fully signed onramp Bitcoin transaction. Deposits are also detected onchain without it.
  • Track orders: get_order looks up one order, wait_for_order waits briefly for its status to change, and get_orders lists the history of up to 20 addresses.

Then just ask in plain words: "swap 100 USDT on Ethereum to BTC" or "where is my order?"

Your keys stay yours

The server is a pass-through: it holds no keys and signs nothing. The agent prepares each order and tells the user what to sign, and the user's own wallet signs and broadcasts every transaction, including token approvals.

create_order creates a real order, and register_tx broadcasts a Bitcoin transaction that can't be undone, so keep both behind your agent's tool-approval prompt. Never give an agent a private key or seed phrase: nothing in this flow needs one.

Agent skills

Along with the server come three agent skills in the Agent Skills format:

  • gateway-swap: quotes a swap, creates the order after you confirm, and tells you exactly what to sign, including the token approval, which it checks against the Gateway spender.
  • gateway-order-status: looks up an order or an address's history and explains its status and any refunds.
  • gateway-integrate: helps developers write or review a Gateway integration using the SDK, the REST API or the CLI.

Get started

Claude Code

claude plugin marketplace add bob-collective/bob-plugins
claude plugin install bob-gateway@bob

Codex

codex plugin marketplace add bob-collective/bob-plugins --ref main
codex plugin add bob-gateway@bob

Cursor and other agents

npx skills add bob-collective/bob-plugins

Then add a streamable HTTP MCP server named bob-gateway with the URL https://mcp.gobob.xyz/mcp.

API key (optional). Every tool works without one. Integrators with a Gateway API key get their agreed pricing on quotes and orders, and their orders show up in the partner dashboard. Set the key as GATEWAY_API_KEY in your agent's environment, never in the chat.

The server applies the same regional restrictions as the Gateway API.

What's next

Bitcoin is the largest pool of capital in crypto, and agents are fast becoming a main way people use it. With BOB Gateway on MCP, any agent can move BTC across chains in a single conversation.

Questions or feedback? Join us on Discord.

Frequently asked questions

Share
Maria Nimfuehr

Maria Nimfuehr

Growth marketing lead

Marketing and GTM engineer at BOB. Previously at Lisk. Mentor at Techstars.