Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-mining-blocks-fees-24h

Access 24-hour mining block fees data via the Mempool MCP Server to analyze Bitcoin network transaction costs and mining revenue trends.

Instructions

Returns mining blocks fees for the last 24h

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler that fetches mining blocks fees data for the last 24h via API request to `v1/mining/blocks/fees/24h`.
    async getMiningBlocksFees24h(): Promise<any[] | null> { return this.client.makeRequest<any[]>(`v1/mining/blocks/fees/24h`); }
  • Registers the MCP tool 'get-mining-blocks-fees-24h' with no input parameters, delegating execution to MiningService.getMiningBlocksFees24h() and returning formatted text content.
    private registerGetMiningBlocksFees24hHandler(): void { this.server.tool( "get-mining-blocks-fees-24h", "Returns mining blocks fees for the last 24h", async () => { const text = await this.miningService.getMiningBlocksFees24h(); return { content: [{ type: "text", text }] }; } ); }
  • Helper method that retrieves raw data from MiningRequestService and formats it into a string response using formatResponse.
    async getMiningBlocksFees24h(): Promise<string> { const data = await this.requestService.getMiningBlocksFees24h(); return formatResponse<any[]>("Mining Blocks Fees 24h", data); }

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/alexandresanlim/mempool-mcp-server'

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