Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-address-info

Retrieve detailed information about a Bitcoin address, including transaction history and balance, using the Mempool MCP Server for real-time blockchain data.

Instructions

Returns details about an address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe address to get info for

Implementation Reference

  • Core execution logic for the get-address-info tool: performs API request to retrieve address information.
    async getAddressInfo({ address }: { address: string }): Promise<IAddressResponse | null> { return this.client.makeRequest<IAddressResponse>(`address/${address}`); }
  • Input schema definition using Zod for the 'address' parameter.
    { address: z.string().describe("The address to get info for"), },
  • Registers the 'get-address-info' tool on the MCP server with name, description, input schema, and execution handler.
    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 }] }; } ); }
  • Service layer helper that delegates to request service and formats the address info response.
    async getAddressInfo({ address }: IAddressParameter): Promise<string> { const data = await this.requestService.getAddressInfo({ address }); return formatResponse<IAddressResponse>("Address Info", 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