Mcp Mercado Bitcoin

io.github.codespar由 GitHub 账号 codespar 发布v0.2.2更新于 Oct 24, 2026

MCP server for Mercado Bitcoin — Brazilian crypto exchange, trading, orderbook, withdrawals

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

面向 Mercado Bitcoin 交易所的本地 MCP 服务器,让助手读取行情与账户余额,并下单、撤单或发起提现。

可以做什么
读取行情:交易对的价格行情、订单簿、成交、K 线、交易对、资产、网络与手续费。查看账户:余额、保证金或合约持仓、充值记录与提现记录。管理订单:创建买入或卖出订单、列出并查询订单、撤销单个订单或某交易对的全部挂单。转移资金:创建提现请求并查询提现详情。
适用场景
适合让助手监控 Mercado Bitcoin 行情、查看余额与订单历史,或通过对话下单、撤单和发起提现,而不必打开交易所网页。
运行要求
通过 npx 从 npm 包在本地运行,需要 Node.js。需要 Mercado Bitcoin 账户,并以环境变量 MB_API_KEY 和 MB_API_SECRET 提供 API 凭据。需要访问交易所的网络;提供沙箱环境用于测试。
安装前请注意
该服务器可以创建订单、撤销订单和发起提现,会动用真实资金。它需要具备交易和提现权限的 API key 与 secret,应限制权限并妥善保管。README 还提到带支付路由和预算控制的企业版,属于另一项产品。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Mercado Bitcoin,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-mercado-bitcoin

MCP server for Mercado Bitcoin — Brazilian cryptocurrency exchange with trading, orders, and market data

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "mercado-bitcoin": {      "command": "npx",      "args": ["-y", "@codespar/mcp-mercado-bitcoin"],      "env": {        "MB_API_KEY": "your-key",        "MB_API_SECRET": "your-secret"      }    }  }}

Claude Code

bash
claude mcp add mercado-bitcoin -- npx @codespar/mcp-mercado-bitcoin

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "mercado-bitcoin": {      "command": "npx",      "args": ["-y", "@codespar/mcp-mercado-bitcoin"],      "env": {        "MB_API_KEY": "your-key",        "MB_API_SECRET": "your-secret"      }    }  }}

Tools (20)

ToolPurpose
get_tickerGet ticker data for a trading pair (price, volume, etc.)
list_orderbookGet order book (bids and asks) for a trading pair
create_orderCreate a buy or sell order
get_orderGet order details by ID
cancel_orderCancel an open order
list_ordersList orders with optional filters
get_balanceGet account balances for all assets
list_tradesList executed trades for a trading pair
get_candlesGet candlestick/OHLCV data for a trading pair
withdrawCreate a withdrawal request
cancel_all_ordersCancel all open orders for a symbol
list_account_tradesList authenticated account fills/trades for a symbol
list_depositsList deposits (crypto + fiat) for the authenticated account
list_withdrawalsList withdrawals (crypto + fiat) for the authenticated account
get_withdrawalGet withdrawal details by ID
list_symbolsList available trading symbols (pairs) on the exchange
list_assetsList supported assets/coins on the exchange
list_networksList supported blockchain networks for a given asset
get_feesQuery trading fees (maker/taker) for a symbol
list_positionsList open margin/futures positions (if applicable to the account)

Authentication

Mercado Bitcoin uses an API key and secret passed via request headers.

Sandbox / Testing

Mercado Bitcoin provides a sandbox via the dashboard for testing.

Get your credentials

  1. Go to Mercado Bitcoin
  2. Create an account
  3. Navigate to API settings to generate key and secret
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
MB_API_KEYYesAPI key from Mercado Bitcoin
MB_API_SECRETYesAPI secret from Mercado Bitcoin

Roadmap

v0.2 (planned)

  • get_account_info — Get account information and limits
  • list_currencies — List available cryptocurrencies
  • get_order_history — Get order history with filters
  • create_stop_order — Create a stop-limit order
  • get_fees — Get trading fees for an account

v0.3 (planned)

  • margin_trading — Margin trading operations
  • lending — Crypto lending operations

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

来源:packages/crypto/mercado-bitcoin/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分