Skip to main content
Glama

Beehiiv Analytics MCP Server

by ousepachn

get_publications

Retrieve a list of publications from your Beehiiv newsletter account to access analytics and manage newsletter data.

Instructions

Get list of publications

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • server.js:192-200 (registration)
    Registration of the 'get_publications' MCP tool, including its name, description, and input schema (empty object).
    { name: "get_publications", description: "Get list of publications", inputSchema: { type: "object", properties: {}, required: [] } },
  • MCP tool handler for 'get_publications': calls BeehiivAPI client.getPublications() to execute the tool logic.
    case 'get_publications': result = await client.getPublications(); break;
  • server.js:82-84 (handler)
    Core handler logic in BeehiivAPI.getPublications(): makes GET request to Beehiiv API /publications endpoint.
    async getPublications() { return await makeRequest('GET', `${this.baseUrl}/publications`, this.headers); }
  • Supporting BeehiivAPI.get_publications() method (used by list_publications tool in Python MCP server).
    def get_publications(self) -> List[Dict[str, Any]]: """Get list of all publications.""" data = self._make_request("GET", "/publications") return data.get("data", [])

Other Tools

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/ousepachn/beehiivanalyticsMCP'

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