Skip to main content
Glama

Mempool MCP Server

🚀 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.

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!

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Model Context Protocol server that provides real-time Bitcoin blockchain and mempool data to AI clients, allowing access to comprehensive Bitcoin network information through various data tools.

  1. 🛠️ Available Bitcoin Tools
    1. 🤖 What is MCP?
      1. ⚡ Quick Start: Use in Your MCP Client
        1. 🛠️ Using a Local Build
      2. 📚 Reference & Troubleshooting

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.
          Last updated -
          9
          3
          12
          TypeScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server providing tools for querying Bitcoin blockchain data via Blockchain Data and Query APIs, supporting various BTC information retrieval functions.
          Last updated -
          Python
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that provides access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve cryptocurrency listings, quotes, and detailed information.
          Last updated -
          3
          33
          Python
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables querying Bitcoin blockchain data, including address information, transaction details, mempool statistics, and ordinals/runes data through the Satstream API.
          Last updated -
          37
          TypeScript
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexandresanlim/mempool-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server