bitcoin-mcp is the open-source MCP server for Bitcoin Core. Give Claude, Cursor, Windsurf, or any AI agent direct tool-call access to 73 Bitcoin endpoints — fees, blocks, mempool, mining, transactions, and more.
From zero to AI-powered Bitcoin queries in under 60 seconds.
One pip install. That's it. bitcoin-mcp includes everything needed to bridge your AI agent to Bitcoin.
$ pip install bitcoin-mcp
If you're running your own node, also install the API:
$ pip install satoshi-api
$ export BITCOIN_RPC_USER=your_user
$ export BITCOIN_RPC_PASSWORD=your_password
$ satoshi-api
Add the MCP server to your client's config. Here's Claude Desktop:
// claude_desktop_config.json
{
"mcpServers": {
"bitcoin": {
"command": "bitcoin-mcp",
"env": {"SATOSHI_API_URL": "http://localhost:9332"}
}
}
}
No node? Point at the hosted endpoint instead:
"env": {"SATOSHI_API_URL": "https://bitcoinsapi.com"}
Open your AI client and ask anything about Bitcoin. The agent automatically calls the right tool.
You: What are the current Bitcoin fees? Should I send now or wait?
Claude: Let me check the current fee environment.
[Calling get_recommended_fees...]
[Calling get_fee_landscape...]
Current fees are 12 sat/vB for high priority. The mempool is
clearing steadily — good time to send at medium priority (8 sat/vB)
for confirmation within ~30 minutes.
Real questions mapped to the tools bitcoin-mcp exposes.
bitcoin-mcp works with any MCP-compatible AI client. Pick yours.
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"bitcoin": {
"command": "bitcoin-mcp",
"env": {"SATOSHI_API_URL": "http://localhost:9332"}
}
}
}
Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
Add via the CLI or edit .claude/settings.json:
$ claude mcp add bitcoin -e SATOSHI_API_URL=http://localhost:9332 -- bitcoin-mcp
Or add manually to .claude/settings.json:
{
"mcpServers": {
"bitcoin": {
"command": "bitcoin-mcp",
"env": {"SATOSHI_API_URL": "http://localhost:9332"}
}
}
}
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"bitcoin": {
"command": "bitcoin-mcp",
"env": {"SATOSHI_API_URL": "http://localhost:9332"}
}
}
}
Restart Cursor after adding the config. The Bitcoin tools will appear in the MCP tools panel.
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"bitcoin": {
"command": "bitcoin-mcp",
"env": {"SATOSHI_API_URL": "http://localhost:9332"}
}
}
}
Restart Windsurf after saving. The Bitcoin tools will be available in Cascade.
Replace http://localhost:9332 with https://bitcoinsapi.com in any config above to use the hosted API. No Bitcoin Core installation required. For authenticated access to POST endpoints, add "--api-key", "your_key" to the args array.
All configuration options for bitcoin-mcp and Satoshi API.
| Variable | Description | Default |
|---|---|---|
BITCOIN_MCP_API_URL | Satoshi API base URL | http://localhost:9332 |
BITCOIN_MCP_API_KEY | API key for authenticated endpoints | None (anonymous) |
BITCOIN_MCP_TIMEOUT | Request timeout in seconds | 30 |
| Variable | Description | Default |
|---|---|---|
BITCOIN_RPC_USER | Bitcoin Core RPC username | Required |
BITCOIN_RPC_PASSWORD | Bitcoin Core RPC password | Required |
BITCOIN_RPC_HOST | Bitcoin Core RPC host | 127.0.0.1 |
BITCOIN_RPC_PORT | Bitcoin Core RPC port | 8332 |
SATOSHI_API_PORT | Port Satoshi API listens on | 9332 |
SATOSHI_API_KEY | API key for authenticated access | None (anonymous only) |
Common questions about bitcoin-mcp and Bitcoin + AI integration.
pip install bitcoin-mcp), add it to your Claude Desktop or Claude Code config, and point it at a Satoshi API instance — either your own node at localhost:9332 or the hosted endpoint at bitcoinsapi.com. Claude will automatically discover the Bitcoin tools and can query fees, blocks, mempool, mining data, and more during any conversation.pip install bitcoin-mcp and configure your AI client to use it. Source code: github.com/Bortlesboat/bitcoin-mcp.https://bitcoinsapi.com) instead of localhost:9332. You get instant access to all 74 endpoints with no node setup. For maximum privacy and sovereignty, self-hosting with your own Bitcoin Core node is recommended — but it's not required to get started.One pip install. One JSON config. 74 endpoints at your agent's fingertips.