
Bitcoin MCP
io.github.BortlesboatPublished by GitHub account Bortlesboatv0.5.1Updated Oct 24, 2026
49 Bitcoin tools for AI agents: fees, mempool, blocks, mining, price. Zero config.
Overview
A local MCP server that gives an AI assistant about 50 Bitcoin tools for fees, mempool, blocks, mining, addresses, and price data.
- What you can do
- Exposes roughly 50 Bitcoin tools covering fee recommendations and comparisons, mempool congestion, block and transaction analysis, mining and difficulty statistics, network and node status, address and UTXO lookups, and market price or sentiment. It also provides prompts and resources for fee, mempool, and network-health workflows. Data comes from a local Bitcoin Core or Knots node, or from an explicitly configured compatible API.
- When to use it
- Use it when an assistant needs to answer Bitcoin questions such as the cheapest time to send a transaction, current mempool congestion, block or transaction details, or mining and supply statistics. It is aimed at users who already run a Bitcoin node or have a compatible API endpoint to point it at.
- Requirements
- Runs locally as a Python package (pip or uvx) or via Docker. Needs a data backend: a reachable Bitcoin Core or Knots node configured with BITCOIN_RPC_HOST, BITCOIN_RPC_PORT, and BITCOIN_NETWORK, or a compatible API set through SATOSHI_API_URL, optionally with SATOSHI_API_KEY. The README states the public hosted API is paused and should not be relied on as a default.
Installation
In SourceWeft
- Open Bitcoin MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 50de748
Tools
0Version history
1- v0.5.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts