Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-base-url

Retrieve the base API URL for accessing Bitcoin mempool data through the Mempool MCP Server, enabling AI clients to query real-time blockchain information.

Instructions

Returns mempool.space base url api

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'get-base-url' MCP tool with server.tool(), providing description and an inline async handler that fetches the base URL from HelpService and formats the response.
    private registerGetBaseURL(): void { this.server.tool( "get-base-url", "Returns mempool.space base url api", async () => { const text = await this.service.getBaseUrl(); return { content: [{ type: "text", text }] }; } ); }
  • Core helper method in HelpService that returns the formatted base URL string, which is used by the tool's handler.
    async getBaseUrl(): Promise<string> { return `base URL: ${this.baseUrl}`; }

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