Beehiiv MCP Server
A Model Context Protocol (MCP) server for Beehiiv that connects your newsletter to Claude Desktop, enabling management of subscribers, posts, segments, webhooks, automations, and more using natural language.
README
Beehiiv MCP Server
A Model Context Protocol (MCP) server for Beehiiv. Connect your Beehiiv newsletter to Claude Desktop and manage subscribers, posts, segments, webhooks, automations, and more using natural language.
Built by Shane Brady.
Requirements
- Node.js v18 or higher
- Claude Desktop
- A Beehiiv account with API access
Installation
1. Open a terminal
- Mac: Open Terminal (search "Terminal" in Spotlight, or find it in Applications → Utilities)
- Windows: Open PowerShell (search "PowerShell" in the Start menu)
2. Clone and install
git clone https://github.com/shanebrady77/beehiivmcp.git
cd beehiivmcp
npm install
Configuration
Open your Claude Desktop config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"beehiiv": {
"command": "node",
"args": ["/absolute/path/to/beehiivmcp/server.js"],
"env": {
"BEEHIIV_API_KEY": "your_api_key_here",
"BEEHIIV_PUB_ID": "pub_xxxxxxxxxx"
}
}
}
}
Important: Use the full absolute path to
server.js. Example on Mac:/Users/yourname/Documents/beehiivmcp/server.js
Restart Claude Desktop after saving.
Finding Your Beehiiv Credentials
- API Key: Beehiiv dashboard → Settings → Integrations → API → Generate key
- Publication ID: Settings → General — looks like
pub_xxxxxxxxxxxx
Tools
Tools are grouped by prefix so Claude can quickly identify the right one.
publication_ — Stats
publication_get_stats— Total subscribers, open rates, click rates
subscriber_ — Subscriber management
subscriber_list— List with status filter and paginationsubscriber_get— Look up by emailsubscriber_get_rich— Full detail with stats, referrals, custom fieldssubscriber_list_filtered— Filter by status, tier, date rangesubscriber_add— Add or reactivate with custom fields and UTM paramssubscriber_update— Change tier, custom fields, or unsubscribesubscriber_delete— Permanently deletesubscriber_tag— Tag up to 50 subscribers by emailsubscriber_bulk_add— Import a list at oncesubscriber_bulk_update— Update up to 1000 at once
post_ — Newsletter posts
post_list— List posts with statspost_get— Full post details and performancepost_create— Create a draft or scheduled postpost_update— Edit subject, preview text, status, or schedulepost_delete— Delete a draftpost_analytics— Performance trends across recent posts
segment_ — Segments
segment_list— List all segmentssegment_get— Segment details and member count
automation_ — Automations
automation_list— List automations by statusautomation_get— Automation details and steps
webhook_ — Webhooks
webhook_list— List all webhookswebhook_get— Get a specific webhookwebhook_create— Create webhook (14 event types supported)webhook_update— Update event types or descriptionwebhook_delete— Remove a webhook
referral_ — Referral program
referral_program_get— Referral program details and milestonesreferral_leaderboard— Top referrers ranked by referral count
settings_ — Publication settings
settings_list_custom_fields— See all custom field definitionssettings_list_tiers— List free and premium tierssettings_list_ad_opportunities— View ad placements with payout rates
troubleshoot — Setup validation
troubleshoot— Check API key, publication ID, and connectivity
Example Prompts
Once installed, try asking Claude:
- "Show me my subscriber count and open rates"
- "How have my last 10 posts performed?"
- "Add jane@example.com as a subscriber"
- "Who are my top referrers?"
- "Tag all subscribers who signed up this month with 'march-2026'"
- "Draft a post with the subject 'Weekly Roundup' and a paragraph about our latest feature"
- "Show me all my automations"
- "Something's not working — run troubleshoot"
Updating
cd beehiivmcp
git pull
Then restart Claude Desktop. No config changes needed — your API key and publication ID stay the same.
Security & Privacy
Your API key never leaves your computer.
Here's exactly what's happening when you set this up:
-
The
server.jsfile runs locally on your machine — it's not a website, not a cloud service, not a server somewhere on the internet. It's just a program running in the background on your computer, the same way Spotify or Dropbox runs in the background. -
Your Beehiiv API key lives in the Claude Desktop config file on your hard drive. It's never uploaded anywhere, never sent to GitHub, and never shared with anyone. It's read-only by your local machine.
-
When you ask Claude something like "show me my subscribers", Claude talks to the local server running on your computer, which then makes a request to Beehiiv's API using your key, and returns the result. That's the whole chain — Claude → your computer → Beehiiv → back to you.
-
The API key itself is like a password that only has the permissions you've given it in Beehiiv. If you're worried, you can create a read-only API key in Beehiiv settings so it can never make changes — only look things up.
What this server can and can't do:
- It can only do what Beehiiv's API allows — it can't access anything outside your Beehiiv account
- It creates posts as drafts only — it can never send a newsletter without you manually pressing send in the Beehiiv dashboard
- It has no access to your email, your computer files, or anything else
The one thing to be careful about: don't share your Claude Desktop config file with anyone, since it contains your API key in plain text. Treat it like you'd treat a file with a password in it.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.