Resend_MCP_server
An MCP server that lets LLMs send emails via Resend .
claude mcp add --transport stdio hamnach456-resend_mcp_server python -m resend_email_mcp_server \ --env PORT="Port to bind when running in HTTP mode (default 10000)" \ --env RESEND_API="Your Resend API key"
How to use
This MCP server exposes a tool named send_email that lets an LLM or client send HTML emails through the Resend service. The server reads a RESEND_API key from the environment and binds on a configurable port (default 10000). To use it, connect via an MCP client (such as Claude Desktop or Cursor) and invoke the send_email tool with the required fields: subject, to, from_email, and content (HTML). The server will return either a success message like Email sent successfully or an error describing what went wrong (e.g., authentication or invalid parameters).
In practice, you set up the environment with your Resend API key, start the Python MCP server, and then issue tool calls from the MCP client. For example, you can send an HTML email by providing the subject, recipient, sender, and HTML content, and the tool will handle the HTTP request to Resend in the background.
How to install
Prerequisites:
- Python 3.9+
- Git
- Access to install Python packages (pip)
Install steps:
-
Clone the repository: git clone https://github.com/HamnaCh456/Resend_MCP_server.git cd Resend_MCP_server
-
Create and activate a Python virtual environment (optional but recommended): python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
-
Install dependencies: pip install fastmcp resend python-dotenv httpx
Or as listed in the repo: pip install fastmcp resend python-dotenv httpx
-
Set up your Resend API key (example): export RESEND_API=your_resend_api_key # Unix/Linux/macOS set RESEND_API=your_resend_api_key # Windows
-
Run the MCP server: python -m resend_email_mcp_server
Ensure your RESEND_API is set in the environment before starting the server
-
Verify the server is running on port 10000 by default, or set PORT to a different value as needed.
Additional notes
Notes and troubleshooting:
- Ensure RESEND_API is set and valid; errors like 401 Unauthorized indicate invalid API key or domain verification issues in the Resend dashboard.
- If the port is in use, set a different port before starting the server (e.g., export PORT=10001).
- The server relies on Python packages: fastmcp, resend, python-dotenv, and httpx; if you encounter ImportError for resend, reinstall the package using pip install resend.
- When using Gemini CLI or other MCP clients, ensure the client is configured to call the send_email tool with the required fields: subject, to, from_email, and content (HTML).
- For production deployments, consider securing environment variables and using a reverse proxy if exposing the MCP server publicly.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP