Skip to main content
MCP server CX Codex

mcp-mercado-bitcoin — Claude Code MCP server: install and setup

Connects AI coding assistants to the Mercado Bitcoin exchange for automated trading, orderbook tracking, and balance checks. Useful for Brazilian crypto workflows.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-mercado-bitcoin -e MB_API_KEY=<MB_API_KEY> -- npx -y @codespar/mcp-mercado-bitcoin
Open on GitHub

What mcp-mercado-bitcoin does

This server exposes 20 tools for interacting with Mercado Bitcoin through the Model Context Protocol. Your assistant can inspect live ticker numbers, fetch OHLCV candles, and inspect active bids and asks. It also handles account actions, such as checking asset balances, placing buy or sell orders, and triggering asset withdrawals.

Authentication relies on headers. Without MB_API_KEY and MB_API_SECRET defined in your environment, private account calls will fail immediately. Mercado Bitcoin offers sandbox credentials in its dashboard, so you can test execution logic without risking real funds.

What it helps with

  • fetch live orderbook bids and asks for any supported trading pair
  • execute and cancel limit or market orders
  • check account balances across crypto and fiat currencies
  • create withdrawal requests directly from the assistant

Example prompts for the agent

  • Check the orderbook and recent trades for BTC-BRL on Mercado Bitcoin
  • Cancel all active orders for ETH-BRL using cancel_all_orders
  • List my account balances and supported withdrawal networks for USDT

How to install mcp-mercado-bitcoin

Platform CLI

claude mcp add mcp-mercado-bitcoin -e MB_API_KEY=<MB_API_KEY> -- npx -y @codespar/mcp-mercado-bitcoin

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-mercado-bitcoin

How to install mcp-mercado-bitcoin in Claude Code?

Run claude mcp add mcp-mercado-bitcoin -e MB_API_KEY=<MB_API_KEY> -- npx -y @codespar/mcp-mercado-bitcoin in your terminal, replacing the placeholder with your actual key.

What does mcp-mercado-bitcoin do?

It gives AI assistants 20 tools to trade on Mercado Bitcoin. The agent can monitor prices, manage open orders, and check deposits or withdrawals.

Can I test mcp-mercado-bitcoin without real money?

Yes, Mercado Bitcoin provides a sandbox environment in user settings. You can pass sandbox API credentials via environment variables for safe testing.

Similar MCP servers

Everything for Finance and business →

From the same set124

mcp-moonpay Hands the agent MoonPay tools: quote and place buy or sell orders, check KYC status, and sign payment widget links. CX Codex +1 ★ 274repo stars mcp-midaz Connects your coding agent to a self-hosted Midaz ledger to inspect balances, create accounts, and post balanced double-entry transactions. CX Codex +1 ★ 274repo stars mcp-mercado-pago Connect an agent to Mercado Pago tools for payments, refunds, PIX, and subscriptions. The server needs a Mercado Pago access token to run. CX Codex +1 ★ 274repo stars mcp-mercado-libre Wires Mercado Libre into your coding agent: product search, orders, shipments, buyer questions and reviews. Useful if you sell on the marketplace and work from chat. CX Codex +1 ★ 274repo stars mcp-melhor-envio Connects an agent to Melhor Envio for carrier rates, shipment orders, labels, agencies, and tracking. It fits delivery workflows that need API access. CX Codex +1 ★ 274repo stars mcp-matera An MCP server for Matera, Brazil's core-banking infrastructure: issue Pix charges, resolve DICT keys, move money. The package is deprecated because api.matera.com no longer resolves. CX Codex +1 ★ 274repo stars mcp-legiti Connects Legiti fraud detection tools to an AI coding assistant for transaction risk analysis. The package is marked deprecated because its default host cannot be resolved via DNS. CX Codex +1 ★ 274repo stars mcp-kushki An MCP server that lets an agent call the Kushki payments API: cards, PSE and SPEI transfers, cash and subscriptions. Useful when you build checkout flows for Latin America. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor