π Super Quick Start: Get Beehiiv newsletter management working in Claude Desktop in under 2 minutes - no Java required!
Connect your Beehiiv newsletter to Claude Desktop and other AI assistants. Add subscribers, fetch posts, and manage publications using natural language.
| Method | Time | Requirements | Best For |
|---|---|---|---|
| π¦ Native Binary | 2 min | None! | Most users |
| β Java Build | 5 min | Java 24+ | Developers |
Once set up, you can ask Claude Desktop things like:
- "Add [email protected] to my newsletter"
- "Show me my latest 5 newsletter posts"
- "Create a subscriber with custom fields: name John, company Tech Corp"
- "List all my publications"
Perfect for most users - Single file download, no installation required!
- Go to Beehiiv API Settings
- Copy your API Key (starts with
bh-) - Copy your Publication ID (starts with
pub_)
Option A: One-Command Install (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/danvega/beehiiv-mcp-server/main/scripts/install.sh | bashOption B: Manual Download
Go to Latest Release and download:
- Linux:
beehiiv-mcp-server-linux - macOS:
beehiiv-mcp-server-macos - Windows:
beehiiv-mcp-server-windows.exe
Make executable (Linux/macOS only):
chmod +x beehiiv-mcp-server-*macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"beehiiv": {
"command": "/full/path/to/beehiiv-mcp-server-linux",
"env": {
"BEEHIIV_API": "bh-your-api-key-here",
"BEEHIIV_PUBLICATION_ID": "pub-your-publication-id-here"
}
}
}
}- Restart Claude Desktop
- Look for the π§ icon in a new conversation
- Try: "Add subscriber [email protected] to my newsletter"
β
Success: You should see Claude use the beehiiv_create_subscription tool!
For developers who want to build from source
- Java 21+ (Download here)
- Maven (included via
./mvnw)
git clone <this-repo>
cd beehiiv-mcp-server
./mvnw clean package -DskipTestsThen configure Claude Desktop with:
{
"mcpServers": {
"beehiiv": {
"command": "java",
"args": [
"-jar",
"/FULL/PATH/TO/target/beehiiv-mcp-server-0.0.3-SNAPSHOT.jar"
],
"env": {
"BEEHIIV_API": "bh-your-api-key-here",
"BEEHIIV_PUBLICATION_ID": "pub-your-publication-id-here"
}
}
}
}For developers who want to create optimized native binaries
Native image compilation creates fast-starting, low-memory executables that don't require Java to run.
- Java 21+ with GraalVM (Download GraalVM)
- Maven (included via
./mvnw)
git clone <this-repo>
cd beehiiv-mcp-server
./mvnw clean package -Pnative -DskipTestsThis creates platform-specific binaries in target/:
- Linux:
beehiiv-mcp-server-linux - macOS:
beehiiv-mcp-server-macos - Windows:
beehiiv-mcp-server-windows.exe
Use the native binary directly without Java:
{
"mcpServers": {
"beehiiv": {
"command": "/full/path/to/beehiiv-mcp-server-linux",
"env": {
"BEEHIIV_API": "bh-your-api-key-here",
"BEEHIIV_PUBLICATION_ID": "pub-your-publication-id-here"
}
}
}
}- Fast startup: ~50ms vs ~2s for Java
- Low memory: ~20MB vs ~100MB for Java
- No Java required: Self-contained executable
- Better for production: Optimized runtime performance
- Java 21+ (Download here)
- Maven (included via
./mvnw) - Beehiiv account with API access
- Claude Desktop (Download here)
- Add subscribers: Create new subscriptions with custom fields
- Find subscribers: Look up by email or ID
- Custom fields: Add structured data to subscribers
- Get posts: Fetch your published newsletters
- Single post: Get detailed content for specific posts
- Filtering: Search by tags, date, audience type
- List publications: See all your newsletters
- Publication details: Get stats and settings
- Multi-publication: Work with multiple newsletters
Add [email protected] to my newsletter
Create a subscription for [email protected] with custom fields:
name "Sarah Johnson", role "CEO", company "TechStart"
Show me my last 10 newsletter posts with their titles and publish dates
Add [email protected] with UTM source "website",
medium "signup", campaign "q4-growth"
Don't set BEEHIIV_PUBLICATION_ID to work with multiple newsletters:
{
"env": {
"BEEHIIV_API": "bh-your-api-key-here"
}
}Then specify the publication in your requests:
Add [email protected] to publication pub_specific123
For testing or development, you can run as a web server:
java -jar target/beehiiv-mcp-server-0.0.2-SNAPSHOT.jarThen use: "httpUrl": "http://localhost:8080/mcp" in Claude Desktop config.
- Check the JAR path is correct and absolute
- Verify environment variables are set
- Restart Claude Desktop completely
- Check Claude Desktop's logs/console for errors
- Verify your API key starts with
bh- - Check it's copied completely (no extra spaces)
- Ensure your Beehiiv account has API access enabled
- Verify your Publication ID starts with
pub_ - Check you have access to this publication
- Try without
BEEHIIV_PUBLICATION_IDand specify it per request
Set environment variable: LOGGING_LEVEL_ROOT=DEBUG
# Test the server directly
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "1", "method": "tools/list"}'./mvnw test./mvnw clean packagesrc/main/java/dev/danvega/beehiiv/
βββ Application.java # Main Spring Boot app
βββ core/ # Configuration & utilities
βββ post/ # Newsletter post management
βββ publication/ # Publication management
βββ subscription/ # Subscriber management
For detailed Beehiiv API documentation: developers.beehiiv.com
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
- Issues: GitHub Issues
- Beehiiv API: Official Documentation
- MCP Protocol: Model Context Protocol