Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-address-txs

Retrieve Bitcoin transaction history for any address to track payments, verify transfers, and monitor blockchain activity.

Instructions

Returns transactions for an address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe address to get txs for

Implementation Reference

  • Core handler logic: Makes API client request to `address/${address}/txs` endpoint to fetch transactions for the address.
    async getAddressTxs({ address }: { address: string }): Promise<IAddressTxResponse[] | null> { return this.client.makeRequest<IAddressTxResponse[]>(`address/${address}/txs`); }
  • Helper method in AddressService that calls the request service and formats the transaction data into a string response.
    async getAddressTxs({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressTxs({ address }); return formatResponse<IAddressTxResponse[]>("Address Transactions", data); }
  • Registers the MCP 'get-address-txs' tool, including input schema (address: string) and thin handler that delegates to AddressService.
    private registerGetAddressTxsHandler(): void { this.server.tool( "get-address-txs", "Returns transactions for an address", { address: z.string().describe("The address to get txs for"), }, async ({ address }) => { const text = await this.addressService.getAddressTxs({ address }); return { content: [{ type: "text", text }] }; } ); }
  • Zod input schema definition for the 'get-address-txs' tool.
    { address: z.string().describe("The address to get txs for"), },

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