Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-mempool-recent

Retrieve recent Bitcoin mempool transactions to access up-to-date network activity data, enabling real-time analysis and decision-making.

Instructions

Returns recent mempool transactions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the MCP tool 'get-mempool-recent' using server.tool(), defines the handler that calls MempoolService.getMempoolRecent() and returns formatted text content.
    private registerGetMempoolRecentHandler(): void { this.server.tool( "get-mempool-recent", "Returns recent mempool transactions", async () => { const text = await this.mempoolService.getMempoolRecent(); return { content: [{ type: "text", text }] }; } ); }
  • Helper method in MempoolService that retrieves recent mempool data from the request service and formats the response using formatResponse.
    async getMempoolRecent(): Promise<string> { const data = await this.requestService.getMempoolRecent(); return formatResponse<IMempoolRecentResponse[]>("Mempool Recent", data); }
  • Core implementation in MempoolRequestService that makes the actual API request to the 'mempool/recent' endpoint via the API client.
    async getMempoolRecent(): Promise<IMempoolRecentResponse[] | null> { return this.client.makeRequest<IMempoolRecentResponse[]>(`mempool/recent`); }

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