Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-base-url

Retrieve the base API URL for mempool.space, enabling access to real-time Bitcoin blockchain and mempool data via the Mempool MCP Server.

Instructions

Returns mempool.space base url api

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler function for the "get-base-url" MCP tool. It calls HelpService.getBaseUrl() to retrieve the base URL and returns it formatted as MCP text content.
    async () => { const text = await this.service.getBaseUrl(); return { content: [{ type: "text", text }] }; }
  • Registers the "get-base-url" tool on the MCP server, specifying the name, description, and inline handler.
    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 }] }; } ); }
  • The core logic for retrieving the base URL, formatting it as a string using the service's baseUrl property set in the constructor.
    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