Skip to main content
Glama

MCP Fathom Analytics

by mackenly
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { FathomApi, FathomApiError } from "@mackenly/fathom-api"; export function registerAccountTool(server: McpServer, fathomClient: FathomApi): void { server.tool( "get-account", "Get Fathom Analytics account information", {}, async () => { try { const accountData = await fathomClient.api.account.get(); return { content: [ { type: "text", text: `Account Information:\n\nName: ${accountData.name}\nEmail: ${accountData.email}\nID: ${accountData.id}`, }, ], }; } catch (error) { return { content: [ { type: "text", text: `Failed to retrieve account information: ${error instanceof FathomApiError ? `${error.status}: ${error.error}` : String(error)}`, }, ], }; } }, ); }

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/mackenly/mcp-fathom-analytics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server