Skip to main content
Glama
ousepachn

Beehiiv Analytics MCP Server

by ousepachn

get_publications

Retrieve a list of newsletter publications from your Beehiiv account to access analytics and statistics for data-driven decisions.

Instructions

Get list of publications

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the MCP tool 'get_publications' by calling the BeehiivAPI client's getPublications method to fetch publications from the API.
    case 'get_publications': result = await client.getPublications(); break;
  • Tool schema and metadata definition for 'get_publications', including empty input schema (no parameters required). Also serves as registration in the tools/list response.
    { name: "get_publications", description: "Get list of publications", inputSchema: { type: "object", properties: {}, required: [] }
  • Supporting helper method in BeehiivAPI class that makes the actual API request to retrieve the list of publications.
    async getPublications() { return await makeRequest('GET', `${this.baseUrl}/publications`, this.headers); }
  • Equivalent helper method in the Python BeehiivAPI class used by the similar 'list_publications' tool.
    def get_publications(self) -> List[Dict[str, Any]]: """Get list of all publications.""" data = self._make_request("GET", "/publications") return data.get("data", [])

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