npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sanlim/mempool-mcp-server

v1.0.1

Published

A sample of MCP implementation using DDD structure with some APIs call.

Readme

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


🛠️ Available Bitcoin Tools

  • get-difficulty-adjustment: Get current and next Bitcoin difficulty adjustment info.
  • get-price: Get the current BTC price in various fiat currencies.
  • get-historical-price: Get the BTC price for a specific date (YYYY-MM-DD).
  • get-recommended-fees: Get recommended Bitcoin transaction fees.
  • get-stats-info: Get general Bitcoin network statistics.
  • get-mining-pools: Get mining pools info.
  • get-mining-pool: Get info for a specific mining pool.
  • get-mining-blocks-fees-24h: Get mining blocks fees for the last 24h.
  • get-mempool-info: Get mempool info.
  • get-mempool-txids: Get mempool txids.
  • get-mempool-recent: Get recent mempool transactions.
  • get-blocks: Get the latest blocks.
  • get-block: Get details about a block from its hash.
  • get-block-txids: Get txids for a block.
  • get-block-txs: Get transactions for a block.
  • get-block-status: Get block status.
  • get-block-raw: Get raw block hex.
  • get-block-txid-by-index: Get block txid by index.
  • get-block-header: Get the block header in hex.
  • get-address-info: Get details about an address.
  • get-address-txs: Get transactions for an address.
  • get-address-txs-chain: Get chain transactions for an address.
  • get-address-txs-mempool: Get mempool transactions for an address.
  • get-address-utxo: Get UTXOs for an address.
  • get-tx-info: Get details about a transaction.
  • get-tx-status: Get transaction status.
  • get-tx-raw: Get raw transaction hex.
  • get-tx-merkleblock-proof: Get transaction merkleblock proof.
  • get-tx-outspend: Get outspend info for a transaction output.
  • get-tx-outspends: Get 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-compatible client in two ways:

📦 Using the Published NPM Package

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

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": {
  "command": "node",
  "args": [
    "/Users/aleguest/Desktop/workspace/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. Happy hacking!