Skip to main content
Glama

get_mempool_info

Retrieve Bitcoin mempool statistics including transaction count, size in bytes, and minimum relay fee to monitor network activity and transaction backlog.

Instructions

Get quick mempool stats: transaction count, size in bytes, min relay fee.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The implementation of the get_mempool_info tool in src/bitcoin_mcp/server.py. It fetches mempool statistics from the RPC connection and formats them as a JSON string.
    def get_mempool_info() -> str:
        """Get quick mempool stats: transaction count, size in bytes, min relay fee."""
        info = get_rpc().getmempoolinfo()
        return json.dumps({
            "size": info["size"],
            "bytes": info["bytes"],
            "usage": info["usage"],
            "maxmempool": info["maxmempool"],
            "mempoolminfee": info["mempoolminfee"],
            "minrelaytxfee": info["minrelaytxfee"],
        })

Latest Blog Posts

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/Bortlesboat/bitcoin-mcp'

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