Beehiiv logo

Beehiiv

Community
danvega

Manage your Beehiiv newsletter by adding subscribers and fetching posts using natural language.

Publisherdanvega
Repositorybeehiiv-mcp-server
LanguageJava
Forks
7
Stars
22
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Beehiiv exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    22 stars and 7 forks from the linked repository.

Beehiiv MCP Server

🚀 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.

🎯 Choose Your Setup Method

MethodTimeRequirementsBest For
📦 Native Binary2 minNone!Most users
☕ Java Build5 minJava 24+Developers

What You Can Do

Once set up, you can ask Claude Desktop things like:

  • "Add test@example.com 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"

📦 Native Binary (No Java)

Perfect for most users - Single file download, no installation required!

1. Get Your API Credentials

  1. Go to Beehiiv API Settings
  2. Copy your API Key (starts with bh-)
  3. Copy your Publication ID (starts with pub_)

2. Download Binary

Option A: One-Command Install (Linux/macOS)

bash
curl -fsSL https://raw.githubusercontent.com/danvega/beehiiv-mcp-server/main/scripts/install.sh | bash

Option 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):

bash
chmod +x beehiiv-mcp-server-*

3. Configure Claude Desktop

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

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"
      }
    }
  }
}

⚠️ Use the full path to your downloaded binary file.

4. Test It Works

  1. Restart Claude Desktop
  2. Look for the 🔧 icon in a new conversation
  3. Try: "Add subscriber test@example.com to my newsletter"

✅ Success: You should see Claude use the beehiiv_create_subscription tool!


☕ Java Build (Traditional)

For developers who want to build from source

Prerequisites

Steps

bash
git clone <this-repo>
cd beehiiv-mcp-server
./mvnw clean package -DskipTests

Then configure Claude Desktop with:

json
{
  "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"
      }
    }
  }
}

🔥 Native Image Build (Advanced)

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.

Prerequisites

Build Native Image

bash
git clone <this-repo>
cd beehiiv-mcp-server
./mvnw clean package -Pnative -DskipTests

This creates platform-specific binaries in target/:

  • Linux: beehiiv-mcp-server-linux
  • macOS: beehiiv-mcp-server-macos
  • Windows: beehiiv-mcp-server-windows.exe

Configure Claude Desktop

Use the native binary directly without Java:

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"
      }
    }
  }
}

Benefits

  • 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

Prerequisites

Available Tools

📧 Subscription Management

  • Add subscribers: Create new subscriptions with custom fields
  • Find subscribers: Look up by email or ID
  • Custom fields: Add structured data to subscribers

📝 Content Management

  • Get posts: Fetch your published newsletters
  • Single post: Get detailed content for specific posts
  • Filtering: Search by tags, date, audience type

🏢 Publication Management

  • List publications: See all your newsletters
  • Publication details: Get stats and settings
  • Multi-publication: Work with multiple newsletters

Example Usage

Basic Subscriber

Add john.doe@company.com to my newsletter

Subscriber with Custom Data

Create a subscription for sarah@startup.com with custom fields: 
name "Sarah Johnson", role "CEO", company "TechStart"

Get Recent Posts

Show me my last 10 newsletter posts with their titles and publish dates

UTM Tracking

Add marketing@bigcorp.com with UTM source "website", 
medium "signup", campaign "q4-growth"

Advanced Configuration

Multiple Publications

Don't set BEEHIIV_PUBLICATION_ID to work with multiple newsletters:

json
{
  "env": {
    "BEEHIIV_API": "bh-your-api-key-here"
  }
}

Then specify the publication in your requests:

Add user@example.com to publication pub_specific123

HTTP Mode (Alternative)

For testing or development, you can run as a web server:

bash
java -jar target/beehiiv-mcp-server-0.0.2-SNAPSHOT.jar

Then use: "httpUrl": "http://localhost:8080/mcp" in Claude Desktop config.

Troubleshooting

"Tool not found" in Claude Desktop

  1. Check the JAR path is correct and absolute
  2. Verify environment variables are set
  3. Restart Claude Desktop completely
  4. Check Claude Desktop's logs/console for errors

"Invalid API key" errors

  1. Verify your API key starts with bh-
  2. Check it's copied completely (no extra spaces)
  3. Ensure your Beehiiv account has API access enabled

"Publication not found"

  1. Verify your Publication ID starts with pub_
  2. Check you have access to this publication
  3. Try without BEEHIIV_PUBLICATION_ID and specify it per request

Enable Debug Logging

Set environment variable: LOGGING_LEVEL_ROOT=DEBUG

Test Connection Manually

bash
# 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"}'

Development

Run Tests

bash
./mvnw test

Build from Source

bash
./mvnw clean package

Project Structure

src/main/java/dev/danvega/beehiiv/
├── Application.java              # Main Spring Boot app
├── core/                        # Configuration & utilities
├── post/                        # Newsletter post management
├── publication/                 # Publication management  
└── subscription/                # Subscriber management

API Reference

For detailed Beehiiv API documentation: developers.beehiiv.com

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

Support

Use Beehiiv MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Beehiiv is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Beehiiv as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Beehiiv MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "beehiiv-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Beehiiv MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Beehiiv MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Beehiiv to help me with this task?
Beehiiv
Sure. I read it.
Here is what I found using Beehiiv.

Frequently asked questions

What is the Beehiiv MCP server used for?

Beehiiv is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Beehiiv MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Beehiiv with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Beehiiv MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Beehiiv connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Beehiiv MCP to TypingMind?

Beehiiv runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Beehiiv MCP provide in TypingMind?

Beehiiv exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Beehiiv MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Beehiiv requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇