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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。