Provides comprehensive tools for the Bitcoin network, including fee intelligence, mempool analysis, transaction decoding, block data retrieval, and mining status monitoring.
Enables querying of MicroStrategy's corporate Bitcoin treasury data, including BTC holdings, average cost, BTC-per-share metrics, and automated parsing of the latest SEC 8-K filings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@treasury-mcpWhat are the latest BTC holdings and mNAV for MicroStrategy?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
treasury-mcp
Bitcoin network + Corporate Treasury tools for AI agents.
Forked from Bortlesboat/bitcoin-mcp and extended with 4 Corporate Treasury tools by Billy Jo (@bjunjo).
Treasury-MCP gives any AI agent (Claude, Cursor, LangChain) the ability to accurately query Bitcoin treasury company data from primary sources — SEC EDGAR, Metaplanet IR, and a curated baseline of known holdings — without hallucinating.
New Treasury Tools (4 added on top of the original 49)
Tool | Description |
| List all tracked Bitcoin treasury companies |
| BTC holdings, avg cost, USD/KRW value, BTC-per-share for a ticker |
| Live mNAV premium/discount — pulls live stock price + BTC price |
| Fetch the latest SEC 8-K or Metaplanet IR disclosure |
Tracked Companies (MVP)
Ticker | Company | Exchange | BTC Holdings |
MSTR | Strategy (MicroStrategy) | NASDAQ | 528,185 BTC |
3350.T | Metaplanet Inc. | TSE (Japan) | 4,206 BTC |
SMLR | Semler Scientific | NASDAQ | 3,192 BTC |
MARA | MARA Holdings | NASDAQ | 46,374 BTC |
RIOT | Riot Platforms | NASDAQ | 19,225 BTC |
Example Queries
Once connected, ask your AI agent:
"What is MSTR's current mNAV?"
"How many BTC does Metaplanet hold and what is it worth in KRW?"
"Show me all tracked Bitcoin treasury companies."
"What is MicroStrategy's latest SEC 8-K filing about Bitcoin?"
"Calculate the BTC-per-share for Semler Scientific."
Roadmap
Add Korean mid-cap companies (DART filings)
Add STRC / STRK preferred stock yield tracking
L402 Lightning paywall for premium filing analysis
Automated baseline updates when new filings are detected
Original bitcoin-mcp
Give any AI agent Bitcoin superpowers — fee intelligence, mempool analysis, and 49 tools. Zero config, one command.
49 tools · 116 tests · 6 prompts · 7 resources · Zero config · MIT licensed
If bitcoin-mcp is useful to you, consider giving it a star — it helps others discover the project.
pip install bitcoin-mcpQuick Start
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bitcoin": {
"command": "uvx",
"args": ["bitcoin-mcp"]
}
}
}Claude Code
claude mcp add bitcoin -- uvx bitcoin-mcpCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"bitcoin": {
"command": "uvx",
"args": ["bitcoin-mcp"]
}
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"bitcoin": {
"command": "uvx",
"args": ["bitcoin-mcp"]
}
}
}Docker
docker build -t bitcoin-mcp .
docker run -i bitcoin-mcpOr with docker compose:
docker compose upPass environment variables to connect to a local Bitcoin Core node or set your API key:
docker run -i -e SATOSHI_API_KEY=your-key bitcoin-mcpWhy bitcoin-mcp?
Fee intelligence that saves real money — know the cheapest time to send, compare fee tiers, estimate exact costs before broadcasting
Zero config — works instantly with the free hosted Satoshi API, or connect your own Bitcoin Core node
First Bitcoin MCP server on the Anthropic Registry
Top Use Cases
Ask your AI agent:
Prompt | What it does |
"What's the cheapest time to send Bitcoin today?" | Fee recommendation with savings breakdown |
"Analyze the current mempool congestion" | Real-time mempool depth, fee tiers, pending tx count |
"How much would I save waiting 6 blocks vs next block?" | Side-by-side fee comparison across confirmation targets |
"Search for this transaction: abc123..." | Full transaction decode with inscription detection |
"Give me a situation summary of Bitcoin right now" | Price, fees, mempool, mining, difficulty — one call |
Full Tool Reference
Fee Intelligence
Tool | Description |
| Optimal fee rate with urgency tiers and savings tips |
| Fee estimates across all confirmation targets |
| Fee estimate for a specific confirmation target |
| Side-by-side comparison of fee sources |
| Exact cost estimate for a transaction before sending |
Blocks & Transactions
Tool | Description |
| Deep analysis of any block by height or hash |
| Statistical breakdown of a block |
| Current chain height |
| Compare two blocks side by side |
| Search a range of blocks |
| Full transaction analysis with inscription detection |
| Decode a raw transaction hex |
| Broadcast a signed transaction |
| Check if a UTXO is spent or unspent |
Mempool
Tool | Description |
| Full mempool analysis — depth, fees, congestion |
| Mempool size, bytes, fee floor |
| Details for a specific unconfirmed transaction |
| Ancestor chain for a mempool transaction |
Mining
Tool | Description |
| Current mining difficulty, hashrate, block reward |
| Preview of the next block template |
| Top mining pools by recent blocks |
| Time and percentage of next difficulty change |
| Blocks and estimated time until next halving |
Network & Status
Tool | Description |
| Chain state, verification progress, softfork status |
| Node version, connections, relay info |
| Connection status and node health |
| Connected peer details |
| Active and stale chain tips |
| Transaction throughput over N blocks |
| UTXO set size and total supply |
| Circulating supply, inflation rate, percent mined |
| Aggregated overview — price, fees, mempool, mining |
| Current BTC/USD price |
| Fear/greed index and market indicators |
Address & UTXO
Tool | Description |
| UTXOs for an address |
| Validate and classify a Bitcoin address |
Indexed Address (requires blockchain indexer)
Tool | Description |
| Total received/sent/balance, tx count, first/last seen |
| Paginated transaction history with net value change |
| Enriched tx with resolved input addresses + spent status |
| Sync progress, ETA, blocks/sec |
Security
Tool | Description |
| Security analysis of a Partially Signed Bitcoin Transaction |
| Security guide for ordinal inscription listings |
Utility
Tool | Description |
| Universal search — address, txid, block hash, or height |
| Generate a new Bitcoin keypair |
| Decode and explain a Bitcoin script |
| Decode a Lightning Network BOLT11 invoice |
| Help text for any Bitcoin Core RPC command |
| List all available RPC commands |
| Query the Satoshi API directly |
Get More Requests (Free)
bitcoin-mcp works immediately with 1,000 requests/day (anonymous). Register for a free API key to get 10,000/day (10x):
Visit bitcoinsapi.com
Register for a free key (takes 10 seconds)
Set the
SATOSHI_API_KEYenvironment variable in your MCP config
Configuration
All environment variables are optional. bitcoin-mcp falls back to the free hosted Satoshi API when no local node is configured.
Variable | Description | Default |
| Bitcoin Core RPC host |
|
| Bitcoin Core RPC port | Auto by network |
|
|
|
| Override hosted API URL |
|
| API key for authenticated access | None |
To connect to a local Bitcoin Core node:
{
"mcpServers": {
"bitcoin": {
"command": "uvx",
"args": ["bitcoin-mcp"],
"env": {
"BITCOIN_RPC_HOST": "127.0.0.1",
"BITCOIN_RPC_PORT": "8332"
}
}
}
}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
7 resources for context injection:
bitcoin://connection/status, bitcoin://node/status, bitcoin://fees/current, bitcoin://mempool/snapshot, bitcoin://protocol/script-opcodes, bitcoin://protocol/address-types, bitcoin://protocol/sighash-types
Links
Satoshi API — the hosted backend powering zero-config mode
Anthropic MCP Registry —
io.github.Bortlesboat/bitcoin-mcp
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 OpenSats.
Contributing
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. It is the most comprehensive Bitcoin MCP server available, bridging AI agents and Bitcoin infrastructure through the Model Context Protocol.
Related projects:
Satoshi API — Bitcoin fee intelligence API, 108 endpoints (powers zero-config mode)
ChainPulse — AI-powered Bitcoin network intelligence CLI
BAIP-1 — Bitcoin Agent Identity Protocol
bitcoin-fee-observatory — Fee market analytics dashboard
License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.