
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
beehiiv-mcp
Advanced tools
MCP server for Beehiiv newsletter platform. Provides tools to interact with Beehiiv API including subscriber management.
A Model Context Protocol (MCP) server for integrating with the Beehiiv newsletter platform. This MCP provides tools to interact with the Beehiiv API, allowing you to retrieve subscriber information and manage your newsletter operations programmatically.
Clone this repository
git clone https://github.com/beehiiv/beehiiv-mcp.git
cd beehiiv-mcp
Install dependencies
npm install
Configure environment variables
cp .env .env.local
Edit .env.local with your Beehiiv credentials:
BEEHIIV_API_KEY=your_beehiiv_api_key_here
BEEHIIV_PUBLICATION_ID=your_publication_id_here
Get your Beehiiv credentials
Start the MCP server
npm run dev
BEEHIIV_API_KEY=your_api_key BEEHIIV_PUBLICATION_ID=your_pub_id npx @modelcontextprotocol/inspector ./src/server.ts
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"beehiiv": {
"command": "node",
"args": ["/path/to/beehiiv-mcp/src/server.ts"],
"env": {
"BEEHIIV_API_KEY": "your_beehiiv_api_key_here",
"BEEHIIV_PUBLICATION_ID": "your_publication_id_here"
}
}
}
}
Retrieve subscribers from your Beehiiv publication with comprehensive filtering and pagination options.
Parameters:
limit (optional): Number of results to return (1-100, default 10)cursor (optional): Pagination cursor for retrieving next pagestatus (optional): Filter by subscription statustier (optional): Filter by subscription tieremail (optional): Exact email match filterexpand (optional): Array of fields to expand (premium tiers, referrals, stats, custom fields)order_by (optional): Sort field (defaults to 'created')direction (optional): Sort direction ('asc' or 'desc')Example Usage:
// Get first 20 subscribers
await getSubscribers({ limit: 20 });
// Get active subscribers only
await getSubscribers({ status: "active", limit: 50 });
// Get subscribers with expanded data
await getSubscribers({
expand: ["stats", "custom_fields"],
limit: 10
});
// Paginate through results
await getSubscribers({
cursor: "next_page_cursor_here",
limit: 25
});
beehiiv-mcp/
├── src/
│ └── server.ts # Main MCP server with Beehiiv integration
├── .env # Environment variables template
├── .env.local # Your actual environment variables (create this)
├── .gitignore # Git ignore rules
├── LICENSE # MIT license
├── README.md # This documentation
├── manifest.json # MCP manifest configuration
├── package.json # Node.js package configuration
├── server.json # MCP server configuration
└── tsconfig.json # TypeScript configuration
Configure these required environment variables in .env.local:
# Required: Your Beehiiv API key
# Get this from: https://app.beehiiv.com/settings/integrations
BEEHIIV_API_KEY=your_beehiiv_api_key_here
# Required: Your Beehiiv publication ID
# You can find this in your Beehiiv dashboard URL or API responses
BEEHIIV_PUBLICATION_ID=your_publication_id_here
npm start - Start the MCP servernpm run dev - Start with hot reload for developmentnpm run build - Build the TypeScript projectBEEHIIV_API_KEY=your_api_key BEEHIIV_PUBLICATION_ID=your_pub_id npx @modelcontextprotocol/inspector ./src/server.ts
Test your MCP by integrating it with Claude Desktop using the configuration mentioned in the Quick Start section.
This MCP integrates with the Beehiiv API v2. Specifically:
GET /v2/publications/{publicationId}/subscriptionsgit checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues:
BEEHIIV_API_KEY and BEEHIIV_PUBLICATION_ID are correctly setPotential additions to this MCP:
Happy newsletter managing! 📧
FAQs
MCP server for Beehiiv newsletter platform. Provides tools to interact with Beehiiv API including subscriber management.
We found that beehiiv-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.