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.0.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.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_beehiiv-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9be07f1e3395866de888e8ebeeb6756fe736c0a5cc1a75bbe8f08291218782a1
MD5 c1d7deb0fdfc8bdec1c1f2580d3b8577
BLAKE2b-256 d5a822c51586b9e6a46a0b14003f2e9849734c61a0a0e183ee7729a7788f0c2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_beehiiv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecd2fbac6bf0de7713170be724653692bb7b1e16209f148a95cacb6b5b69290
MD5 07e60b00fb315224a217e7929ff01093
BLAKE2b-256 62e4aac30d3ae0957671f7d4ce29f1e46faba3ae941a2d2c6bbdc844f31696fb

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