Get the FREE Ultimate OpenClaw Setup Guide →

Resend_MCP_server

An MCP server that lets LLMs send emails via Resend .

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Clone the repository: git clone https://github.com/HamnaCh456/Resend_MCP_server.git cd Resend_MCP_server

  2. Create and activate a Python virtual environment (optional but recommended): python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate

  3. Install dependencies: pip install fastmcp resend python-dotenv httpx

    Or as listed in the repo: pip install fastmcp resend python-dotenv httpx

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

  5. Run the MCP server: python -m resend_email_mcp_server

    Ensure your RESEND_API is set in the environment before starting the server

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

Sponsor this space

Reach thousands of developers