Integrations
Used for managing environment variables, specifically the Beehiiv API key and publication ID stored in the .env file.
Beehiiv MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with the Beehiiv API v2. This server enables Large Language Models (LLMs) to interact with Beehiiv publications and posts through standardized tools.
Prerequisites
- Python 3.10 or higher
uv
package manager- A Beehiiv account with API access
- Claude Desktop (or another MCP-compatible client)
Installation
- Install
uv
if you haven't already:
- If rebuilding from scratch, create and set up your project:
- Create a
.env
file in the project root:
Claude Desktop Configuration
Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json
):
Replace:
<ABSOLUTE_UV_PATH>
with the path to youruv
executable<ABSOLUTE_SERVER_PATH>
with the absolute path to yourbeehiiv_server.py
file
Available Tools
This MCP server currently exposes the following tools (more will be added):
list_publications
Lists all publications accessible with your API key.
list_posts
Lists the 5 most recent confirmed posts for a given publication.
get_post
Retrieves detailed information about a specific post.
How It Works
When you interact with this server through Claude Desktop:
- The client sends your question to Claude
- Claude analyzes the available Beehiiv tools and decides which one(s) to use
- The client executes the chosen tool(s) through this MCP server
- The results are sent back to Claude
- Claude formulates a natural language response
- The response is displayed to you
(video coming soon)
Troubleshooting
Server Not Showing Up in Claude
- Check your
claude_desktop_config.json
file syntax - Ensure all paths are absolute, not relative
- Restart Claude Desktop
Viewing Logs
Check Claude's logs for MCP-related issues:
Logs are stored in:
~/Library/Logs/Claude/mcp.log
for general MCP connections~/Library/Logs/Claude/mcp-server-beehiiv-mcp-server.log
for server-specific logs
Security
- Never commit your
.env
file to version control - Keep your Beehiiv API key secure
- Consider implementing rate limiting for API calls
Contributing
hmu on X (https://x.com/reymerekar7)
You must be authenticated.
A Model Context Protocol server that enables Large Language Models (like Claude) to interact with Beehiiv publications and posts through standardized tools and the Beehiiv API v2.