Skip to main content
Glama

Mempool MCP Server

MempoolApiClientService.ts721 B
import { IApiClient } from "../../interfaces/IApiClient.js"; export class MempoolApiClientService implements IApiClient { private readonly API_VERSION = "v1"; constructor(private baseUrl: string) {} async makeRequest<T>(endpoint: string): Promise<T | null> { const url = `${this.baseUrl}/${this.API_VERSION}/${endpoint}`; const headers = { Accept: "application/json", }; try { const response = await fetch(url, { headers }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } return (await response.json()) as T; } catch (error) { process.stderr.write("Error making Mempool request"); return null; } } }

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