
Bitcoin MCP
io.github.Bortlesboat由 GitHub 账号 Bortlesboat 发布v0.5.1更新于 Oct 24, 2026
49 Bitcoin tools for AI agents: fees, mempool, blocks, mining, price. Zero config.
概览
一个本地 MCP 服务器,为 AI 助手提供约 50 个比特币工具,涵盖手续费、内存池、区块、挖矿、地址和价格数据。
- 可以做什么
- 提供约 50 个比特币工具,包括手续费建议与比较、内存池拥堵分析、区块与交易分析、挖矿与难度统计、网络与节点状态、地址与 UTXO 查询,以及市场价格与情绪指标。还提供用于手续费、内存池和网络健康工作流的提示与资源。数据来自本地 Bitcoin Core 或 Knots 节点,或来自显式配置的兼容 API。
- 适用场景
- 当助手需要回答比特币问题时适用,例如发送交易最便宜的时机、当前内存池拥堵情况、区块或交易详情,以及挖矿和供应量统计。适合已经运行比特币节点或拥有可指向的兼容 API 端点的用户。
- 运行要求
- 以 Python 包(pip 或 uvx)或 Docker 方式在本地运行。需要数据后端:通过 BITCOIN_RPC_HOST、BITCOIN_RPC_PORT 和 BITCOIN_NETWORK 配置可访问的 Bitcoin Core 或 Knots 节点,或通过 SATOSHI_API_URL 指定兼容 API,必要时配合 SATOSHI_API_KEY。README 说明公共托管 API 已暂停,不应作为默认依赖。
安装
在 SourceWeft 中
- 打开 控制台中的 Bitcoin MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
bitcoin-mcp
Give any AI agent Bitcoin superpowers — fee intelligence, mempool analysis, and 50 tools backed by your Bitcoin node or compatible API.
[PyPI] [Downloads] [Tests] [License: MIT] [Python 3.10+] [GitHub Sponsors]
50 standard tools · 6 prompts · 8 resources · Bitcoin Core or compatible API backend · MIT licensed
If bitcoin-mcp is useful to you, consider giving it a star — it helps others discover the project.
bitcoin-mcp needs a Bitcoin data backend. It auto-detects a local Bitcoin Core/Knots node from its cookie or RPC settings. Without a local node, set SATOSHI_API_URL to a compatible deployment.
Service status: the public Satoshi API previously hosted at
bitcoinsapi.comis paused and should not be treated as a working default. Use a local node or an explicitly configured compatible API.
Install status
Version 0.5.2 includes the MCP SDK 1.x compatibility constraint and explicit backend selection. Upgrade older installations to receive these fixes.
Quick Start
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Cursor
Add to .cursor/mcp.json:
VS Code
Add to .vscode/mcp.json:
Zed
Add to your Zed settings.json under context_servers:
See the Zed MCP docs for the current settings location and custom server flow.
Docker
Or with docker compose:
Pass environment variables to connect to a local Bitcoin Core node or a compatible API:
Ask whether to send Bitcoin now
Use this as the first useful activation path after install:
"I need to send a Bitcoin transaction today. Use bitcoin-mcp to decide whether to send now or wait, and show the fee rate you used."
Expected path:
- The agent calls
get_fee_recommendation. - The answer gives a clear send now or wait recommendation with fee rates in sat/vB.
- If the backend is unavailable, configure a local node or set
SATOSHI_API_URLbefore retrying.
After it works, Star this repo and share a short showcase with the prompt, tool call, and outcome so other Bitcoin agent builders can see the path.
Agent Integration
For repos that need Bitcoin tools, add bitcoin-mcp to the agent's MCP config and configure one of its supported backends:
- Local Bitcoin Core/Knots RPC settings:
BITCOIN_RPC_HOST,BITCOIN_RPC_PORT, and optional credentials or datadir - Compatible remote API:
SATOSHI_API_URLand, when required,SATOSHI_API_KEY - Satoshi API source and integration reference: https://github.com/Bortlesboat/bitcoin-api/blob/master/docs/AGENT_INTEGRATION.md
Generated HTTP examples should use canonical Satoshi API /api/v1 paths.
Why bitcoin-mcp?
- Fee intelligence that saves real money — know the cheapest time to send, compare fee tiers, estimate exact costs before broadcasting
- Backend choice — use your own Bitcoin Core/Knots node or an explicitly configured compatible API
- Open source MCP tooling — tool definitions, tests, and client configuration examples are available in this repository
Top Use Cases
Ask your AI agent:
Full Tool Reference
All 50 standard tools by category
Fee Intelligence
Blocks & Transactions
Mempool
Mining
Network & Status
Address & UTXO
Indexed Address (requires blockchain indexer)
Security
Utility
Optional Remote API Tool
query_remote_api is registered only when SATOSHI_API_URL is set and the l402 extra is installed. It queries canonical /api/v1 routes on that explicitly configured endpoint.
Configuration
Configure either a local Bitcoin Core/Knots node or a compatible remote API. If neither is available, bitcoin-mcp exits its connection check with a setup error instead of silently selecting an unavailable public service.
CLI Flags
bitcoin-mcp supports the following runtime flags:
Example:
To connect to a local Bitcoin Core node:
Prompts & Resources
6 built-in prompts for common workflows:
analyze_fee_environment, investigate_transaction, monitor_mempool_fees, taproot_adoption_report, network_health_report, track_transaction
8 resources for context injection:
bitcoin://connection/status, bitcoin://node/status, bitcoin://fees/current, bitcoin://fees/history, bitcoin://mempool/snapshot, bitcoin://protocol/script-opcodes, bitcoin://protocol/address-types, bitcoin://protocol/sighash-types
Links
- Satoshi API source — optional compatible backend implementation (public hosted service currently paused)
- MCP Registry —
io.github.Bortlesboat/bitcoin-mcp - PyPI
- GitHub
- Full tool documentation
Examples
See the examples/ folder for documented usage patterns:
- Fee Analysis — find optimal send timing
- Mempool Monitor — track congestion
- Transaction Investigation — decode and analyze transactions
- Block Analysis — inspect and compare blocks
Support This Project
bitcoin-mcp is free, open-source Bitcoin infrastructure. Support development through GitHub Sponsors, reproducible issue reports, documentation improvements, and tested patches.
Contributing
Run the unit suite with python -m pytest tests/. For the optional Core/Knots
checks over the MCP interface, see real-node integration tests.
Contributions are welcome. See CONTRIBUTING.md for guidelines, including how to add new tools and the PR checklist.
Please report security vulnerabilities privately — see SECURITY.md.
About
bitcoin-mcp is created and maintained by Andrew Barnes, bridging AI agents and Bitcoin infrastructure through the Model Context Protocol.
Related projects:
- Satoshi API — Bitcoin fee intelligence API, 108 endpoints, usable as a self-hosted compatible backend
- ChainPulse — AI-powered Bitcoin network intelligence CLI
- BAIP-1 — Bitcoin Agent Identity Protocol
- bitcoin-fee-observatory — Fee market analytics dashboard
License
来源:README.md,提交 50de748
工具
0版本历史
1- v0.5.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分