Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-address-info

Retrieve Bitcoin address details including transaction history and balance from the blockchain.

Instructions

Returns details about an address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe address to get info for

Implementation Reference

  • Registers the 'get-address-info' MCP tool with server.tool, including description, Zod input schema for 'address', and thin async handler delegating to AddressService.getAddressInfo returning formatted text content.
    private registerGetAddressHandler(): void { this.server.tool( "get-address-info", "Returns details about an address", { address: z.string().describe("The address to get info for"), }, async ({ address }) => { const text = await this.addressService.getAddressInfo({ address }); return { content: [{ type: "text", text }] }; } ); }
  • Helper method in AddressService that retrieves address info via requestService and formats the response using formatResponse utility.
    async getAddressInfo({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressInfo({ address }); return formatResponse<IAddressResponse>("Address Info", data); }
  • Core helper that performs the API request to fetch address information from the backend endpoint `address/${address}`.
    async getAddressInfo({ address }: { address: string }): Promise<IAddressResponse | null> { return this.client.makeRequest<IAddressResponse>(`address/${address}`); }

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