Skip to main content
Glama

Lemon Email MCP Server

by manojk0303

Lemon Email MCP Server

A Model Context Protocol (MCP) server that provides email sending capabilities through the Lemon Email service. This allows AI agents and applications to send transactional emails programmatically.

Features

  • 🍋 Lemon Email Integration: Send emails through the Lemon Email API
  • 🤖 MCP Compatible: Works with any MCP-compatible AI agent or application
  • Easy Setup: Simple configuration with environment variables
  • 🧪 Built-in Testing: Includes test client and standalone testing mode
  • 🐍 Pure Python: No complex dependencies

Quick Start

Installation

# Clone the repository git clone https://github.com/YOUR_USERNAME/lemon-email-mcp.git cd lemon-email-mcp # Install dependencies pip install -r requirements.txt # Set your API key export LEMON_EMAIL_API_KEY="your-api-key-here" # Test the server python simple_mcp_server.py test

Usage as MCP Server

Start the MCP server:

python simple_mcp_server.py

The server provides one tool:

  • send_email: Send transactional emails via Lemon Email API

Configuration

Set the following environment variable:

  • LEMON_EMAIL_API_KEY: Your Lemon Email API key (required)
  • LEMON_EMAIL_API_BASE_URL: API base URL (optional, defaults to Lemon Email API)

Integration Examples

Continue.dev (VS Code)
mcpServers: - name: lemon-email command: python args: - /path/to/simple_mcp_server.py env: LEMON_EMAIL_API_KEY: your-api-key
Claude Desktop
{ "mcpServers": { "lemon-email": { "command": "python", "args": ["/path/to/simple_mcp_server.py"], "env": { "LEMON_EMAIL_API_KEY": "your-api-key" } } } }

API Reference

send_email Tool

Send an email using the Lemon Email service.

Parameters:

  • to (string, required): Recipient email address
  • subject (string, required): Email subject line
  • body (string, required): Email body content
  • fromemail (string, required): Sender email address
  • fromname (string, optional): Sender name (default: "Email Assistant")
  • toname (string, optional): Recipient name
  • tag (string, optional): Email tag for tracking (default: "mcp-agent")
  • variables (object, optional): Template variables
  • replyto (string, optional): Reply-to email address

Example:

{ "name": "send_email", "arguments": { "to": "recipient@example.com", "subject": "Hello from AI Agent", "body": "This email was sent by an AI agent!", "fromemail": "sender@example.com", "fromname": "AI Assistant" } }

Development

Testing

Run the comprehensive test suite:

python mcp_client_test.py

Run standalone email test:

python simple_mcp_server.py test

Project Structure

lemon-email-mcp/ ├── simple_mcp_server.py # Main MCP server ├── mcp_client_test.py # Test client ├── requirements.txt # Dependencies ├── README.md # This file └── LICENSE # MIT License

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support


Built with ❤️ for the AI agent ecosystem.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables AI agents to send transactional emails programmatically through the Lemon Email API. Provides simple email sending capabilities with customizable sender information, recipients, and content.

  1. Features
    1. Quick Start
      1. Installation
      2. Usage as MCP Server
      3. Configuration
      4. Integration Examples
    2. API Reference
      1. send_email Tool
    3. Development
      1. Testing
      2. Project Structure
    4. License
      1. Contributing
        1. Support

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            Gives on-the-fly inboxes to AI agents. Agents / LLM's can send, receive, and take action in isolated inboxes. Built for AI unlike Gmail. Check us out at agentmail.to
            Last updated -
            10
            25
            • Apple
          • A
            security
            A
            license
            A
            quality
            Integrates with Mailtrap Email Platform to enable sending transactional emails via API.
            Last updated -
            1
            100
            47
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that enables AI models to send emails via simple tool calls, supporting both plain text and HTML formats with JWT authentication.
            Last updated -
            1
            0
            5
          • -
            security
            A
            license
            -
            quality
            Provides AI assistants with the ability to manage email accounts through cPanel's UAPI, enabling automated email account creation, deletion, configuration, and forwarding management.
            Last updated -
            1
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/manojk0303/lemon-email-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server