Skip to main content
Glama

Mempool MCP Server

StatsToolsController.ts724 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { BaseToolsController } from "./base/BaseToolsController.js"; import { StatsService } from "../../application/services/StatsService.js"; export class StatsToolsController extends BaseToolsController { constructor(server: McpServer, private statsService: StatsService) { super(server); } protected registerTools(): void { this.registerGetStatsHandler(); } private registerGetStatsHandler(): void { this.server.tool( "get-stats-info", "Returns stats info", async () => { const text = await this.statsService.getStatsInfo(); return { content: [{ type: "text", text }] }; } ); } }

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