Mempool.space

Mempool.space

alexandresanlim

Provides real-time Bitcoin blockchain data through mempool.space APIs, including transaction details, block information, address balances, and network statistics.

Integrates with mempool.space APIs to provide real-time Bitcoin network data including transaction details, block information, address balances, mining statistics, and fee recommendations for developers and traders.

22,073 views3RemoteLocal (stdio)

What it does

  • Query Bitcoin address balances and transaction history
  • Get real-time Bitcoin block data and mining statistics
  • Retrieve current Bitcoin price and fee recommendations
  • Access mempool data and pending transactions
  • Lookup specific transaction details and status
  • Monitor Bitcoin network difficulty and mining pools

Best for

Bitcoin developers building wallet applicationsCryptocurrency traders monitoring network conditionsBlockchain analysts researching Bitcoin transactionsFinancial applications requiring Bitcoin data
25+ Bitcoin data toolsReal-time mempool.space integrationNo API key required

About Mempool.space

Mempool.space is a community-built MCP server published by alexandresanlim that provides AI assistants with tools and capabilities via the Model Context Protocol. Access real-time Bitcoin data, transaction details, and mining stats via the Mempool.space API for developers and trader It is categorized under finance, analytics data. This server exposes 31 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install Mempool.space in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport. This server supports remote connections over HTTP, so no local installation is required.

License

Mempool.space is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (31)

get-address-info

Returns details about an address

get-address-txs

Returns transactions for an address

get-address-txs-chain

Returns chain transactions for an address

get-address-txs-mempool

Returns mempool transactions for an address

get-address-utxo

Returns UTXOs for an address

🚀 Mempool MCP Server

A Model Context Protocol (MCP) server providing real-time Bitcoin blockchain and mempool data, powered by mempool.space APIs. Use this server as a tool provider in your MCP-compatible clients (like Claude, Cursor, and others) to access up-to-date Bitcoin network information. Its an unofficial repository.


🛠️ Available Bitcoin Tools

Tool NameDescription
get-difficulty-adjustmentGet current and next Bitcoin difficulty adjustment info.
get-priceGet the current BTC price in various fiat currencies.
get-historical-priceGet the BTC price for a specific date (YYYY-MM-DD).
get-recommended-feesGet recommended Bitcoin transaction fees.
get-stats-infoGet general Bitcoin network statistics.
get-mining-poolsGet mining pools info.
get-mining-poolGet info for a specific mining pool.
get-mining-blocks-fees-24hGet mining blocks fees for the last 24h.
get-mempool-infoGet mempool info.
get-mempool-txidsGet mempool txids.
get-mempool-recentGet recent mempool transactions.
get-blocksGet the latest blocks.
get-blockGet details about a block from its hash.
get-block-txidsGet txids for a block.
get-block-txsGet transactions for a block.
get-block-statusGet block status.
get-block-rawGet raw block hex.
get-block-txid-by-indexGet block txid by index.
get-block-headerGet the block header in hex.
get-address-infoGet details about an address.
get-address-txsGet transactions for an address.
get-address-txs-chainGet chain transactions for an address.
get-address-txs-mempoolGet mempool transactions for an address.
get-address-utxoGet UTXOs for an address.
get-tx-infoGet details about a transaction.
get-tx-statusGet transaction status.
get-tx-rawGet raw transaction hex.
get-tx-merkleblock-proofGet transaction merkleblock proof.
get-tx-outspendGet outspend info for a transaction output.
get-tx-outspendsGet outspends for all outputs of a transaction.

🤖 What is MCP?

Model Context Protocol (MCP) is a standard for tool providers to communicate with AI clients via standard input/output. This server lets you plug Bitcoin data tools into any MCP-compatible client.


⚡ Quick Start: Use in Your MCP Client

You can configure this server as a tool provider in your MCP Client such Claude, Cursor, VsCode and others:

"mempool-mcp-server": {
  "command": "npx",
  "args": [
    "@sanlim/mempool-mcp-server"
  ]
},

[!TIP] To connect locally for privacy and unlimited calls, you can pass the base mempool API URL as an environment config from your local Bitcoin node such as Umbrel, MyNode, etc. See below:

"mempool-mcp-server-local": {
 "command": "npx",
 "args": [
   "@sanlim/mempool-mcp-server"
 ],
 "env": {
   "MEMPOOL_BASE_URL": "http://umbrel.local:3006/api"
 }
},

Check this working with "mempool url" text on your MCP Client.

README image

Enjoy!

or

🛠️ Using a Local Build

  1. Clone this repository:
git clone https://github.com/alexandresanlim/mempool-mcp-server.git
  1. Install and build:
npm install
npm run build
npm run server
  1. Configure your MCP client:
"mempool-mcp-server-debug": {
  "command": "node",
  "args": [
    "...replace_to_path_of_project/mempool-mcp-server/build/main.js"
  ]
},

The server will start and listen for MCP requests via standard input/output. 🎉


📚 Reference & Troubleshooting

  • Full API reference: mempool.space API docs
  • If you have issues, make sure your build is up to date and your MCP client is configured to use stdio.
  • For questions or contributions, feel free to open an issue or pull request!

Made with ❤️ by a bitcoiner. Enjoy!

Alternatives

Related Skills

Browse all skills
data-storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

27
content-trend-researcher

Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis

23
data-scientist

Expert data scientist for advanced analytics, machine learning, and statistical modeling. Handles complex data analysis, predictive modeling, and business intelligence. Use PROACTIVELY for data analysis tasks, ML modeling, statistical analysis, and data-driven insights.

13
google-analytics

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

13
finance-manager

Comprehensive personal finance management system for analyzing transaction data, generating insights, creating visualizations, and providing actionable financial recommendations. Use when users need to analyze spending patterns, track budgets, visualize financial data, extract transactions from PDFs, calculate savings rates, identify spending trends, generate financial reports, or receive personalized budget recommendations. Triggers include requests like "analyze my finances", "track my spending", "create a financial report", "extract transactions from PDF", "visualize my budget", "where is my money going", "financial insights", "spending breakdown", or any finance-related analysis tasks.

10
senior-data-scientist

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

8