Skip to main content
Glama
alexandresanlim

Mempool MCP Server

get-difficulty-adjustment

Retrieve current and upcoming Bitcoin difficulty adjustment details to analyze network mining complexity and predict block confirmation times. Access via Mempool MCP Server for real-time blockchain insights.

Instructions

Returns current and next Bitcoin difficulty adjustment info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler function that calls GeneralService to retrieve difficulty adjustment information and returns it formatted as text content.
    async () => { const text = await this.generalService.getDifficultyAdjustment(); return { content: [{ type: "text", text }] }; }
  • Registers the "get-difficulty-adjustment" tool with the MCP server, providing its name, description, and parameterless handler.
    this.server.tool( "get-difficulty-adjustment", "Returns current and next Bitcoin difficulty adjustment info", async () => { const text = await this.generalService.getDifficultyAdjustment(); return { content: [{ type: "text", text }] }; } );
  • Helper method in GeneralService that fetches raw data from GeneralRequestService and formats it using formatResponse.
    async getDifficultyAdjustment(): Promise<string> { const data = await this.requestService.getDifficultyAdjustment(); return formatResponse<any>("Difficulty Adjustment", data); }
  • Core helper that performs the API request to fetch the difficulty adjustment data.
    async getDifficultyAdjustment(): Promise<any | null> { return this.client.makeRequest<any>(`difficulty-adjustment`); }

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