Skip to main content

Beehiiv Newsletter Subscription MCP Server using FastMCP.

Project description

Beehiiv Newsletter MCP Server

This is a Model Context Protocol (MCP) server that provides a tool for subscribing users to a Beehiiv newsletter using FastMCP.

Installation

You can install the package and its dependencies using pip (or uv/uvx):

pip install .
# or
uv pip install .

Or, if published to PyPI:

pip install mcp-server-beehiiv
# or
uv pip install mcp-server-beehiiv

Setup

  1. Create a .env file in the project root with your Beehiiv credentials:
BEEHIIV_PUBLICATION_ID=your_publication_id
BEEHIIV_API_KEY=your_api_key

Running the Server

To start the MCP server, run:

python -m mcp_server_beehiiv

Using the Tool

The server exposes a tool called subscribe_to_newsletter with the following parameters:

  • email (required): The email address of the subscriber
  • first_name (optional): The subscriber's first name
  • last_name (optional): The subscriber's last name

The tool will return the response from the Beehiiv API upon successful subscription.

Security Note

Never commit your .env file or expose your API keys. The .gitignore file is configured to prevent accidental commits of sensitive information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_beehiiv-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_beehiiv-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_beehiiv-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_server_beehiiv-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for mcp_server_beehiiv-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2610a59d667a1ccfe17377f15495fa458bc4fc71f1e9402d6f2715964666b21c
MD5 885c830fedecdbf2de8e2d7cd35efca7
BLAKE2b-256 e74eb184b9b76b63fbd12ecab26fdb8bbb4a4cf83952dd2713d6ffffff19a3a0

See more details on using hashes here.

File details

Details for the file mcp_server_beehiiv-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_beehiiv-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf2196b9c3f240e2515c62d300f4cbae4ce74476d4adf1e41087aa99fdbb9bb4
MD5 b67db6b871e87c859e6d2e4e7243d349
BLAKE2b-256 16e6f510747e461b133c7e6b0a67b29fc0043ca1a74f7491b8f6b8a023445784

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page