Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-mining-pools

Retrieve Bitcoin mining pool data to analyze network distribution and identify major participants in block production.

Instructions

Returns mining pools info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'get-mining-pools' MCP tool, including the inline handler function that delegates to MiningService.getMiningPools() and formats the response as text content.
    private registerGetMiningPoolsHandler(): void { this.server.tool( "get-mining-pools", "Returns mining pools info", async () => { const text = await this.miningService.getMiningPools(); return { content: [{ type: "text", text }] }; } ); }
  • Helper method in MiningService that fetches mining pools data via RequestService and formats it using formatResponse.
    async getMiningPools(): Promise<string> { const data = await this.requestService.getMiningPools(); return formatResponse<IMiningPoolsResponse[]>("Mining Pools", data); }
  • Core helper that performs the actual API request to retrieve mining pools data.
    async getMiningPools(): Promise<IMiningPoolsResponse[] | null> { return this.client.makeRequest<IMiningPoolsResponse[]>(`mining/pools`); }

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