Skip to main content
Glama
manojk0303

Lemon Email MCP Server

by manojk0303

๐Ÿ‹ Lemon Email MCP - Direct API Integration

Send emails directly from AI agents. No intermediate servers. Zero config.

Direct API Open Source MCP Compatible


๐Ÿš€ What This Does

Connects AI agents directly to Lemon Email API - no intermediate servers, no proxies, just direct API calls.

  • โœ… Direct connection to Lemon Email API

  • โœ… No Railway or other intermediates - pure API client

  • โœ… MCP protocol for AI agent integration

  • โœ… Works with Claude Desktop, Continue.dev, Cline

  • โœ… Open source - see exactly what it does


Related MCP server: AgentMail MCP Server

โšก Quick Start (30 seconds)

1. Clone & Install

git clone https://github.com/manojk0303/lemon-email-mcp.git
cd lemon-email-mcp
pip install -r requirements.txt

2. Get API Key

3. Set API Key

export LEMON_EMAIL_API_KEY="your-key-here"

4. Test It

python simple_mcp_server.py test

Done! ๐ŸŽ‰


๐Ÿ”ง Usage Methods

Method 1: Claude Desktop (Recommended for Mac users)

1. Find your Claude config:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

2. Add this to your config:

{
  "mcpServers": {
    "lemon-email": {
      "command": "python",
      "args": ["/full/path/to/lemon-email-mcp/simple_mcp_server.py"],
      "env": {
        "LEMON_EMAIL_API_KEY": "your-key-here"
      }
    }
  }
}

3. Restart Claude Desktop

4. Test it:

"Send a test email to test@example.com with subject 'Hello from Claude' and body 'This is amazing!'"

Claude will now send emails directly via Lemon API!


Method 2: Continue.dev (VS Code)

1. Install Continue.dev extension in VS Code

2. Create MCP config file:

Create .continue/config.json in your project:

{
  "mcpServers": [
    {
      "name": "lemon-email",
      "command": "python",
      "args": ["/full/path/to/lemon-email-mcp/simple_mcp_server.py"],
      "env": {
        "LEMON_EMAIL_API_KEY": "your-key-here"
      }
    }
  ]
}

3. Restart VS Code

4. Ask Continue:

"Send an email to user@example.com about the new feature"

Method 3: Direct API (No MCP)

Want to use the Lemon API directly in your Python code?

import httpx
import asyncio

async def send_email():
    headers = {
        "Content-Type": "application/json",
        "X-Auth-APIKey": "your-lemon-api-key"
    }
    
    payload = {
        "to": "user@example.com",
        "subject": "Hello World",
        "body": "This is a direct API call!",
        "fromname": "Your App",
        "fromemail": "mail@member-notification.com",
        "tag": "direct-api"
    }
    
    async with httpx.AsyncClient() as client:
        response = await client.post(
            "https://app.xn--lemn-sqa.com/api/transactional/send",
            headers=headers,
            json=payload
        )
        print(response.json())

asyncio.run(send_email())

๐Ÿ“š How It Works

Your AI Agent โ†’ MCP Protocol โ†’ simple_mcp_server.py โ†’ Lemon Email API
                                                              โ†“
                                                         ๐Ÿ“ง Email Sent

No intermediate servers! Direct connection to Lemon Email.


๐Ÿ” Available Tool

The MCP server exposes one tool: send_email

Parameters:

  • to (required) - Recipient email

  • subject (required) - Email subject

  • body (required) - Email content

  • fromname (optional) - Sender name (default: "Email Assistant")

  • fromemail (optional) - Sender email (default: "mail@member-notification.com")

  • toname (optional) - Recipient name

  • tag (optional) - Email tag for tracking

  • variables (optional) - Template variables

  • replyto (optional) - Reply-to address


๐Ÿงช Testing

Test direct API connection:

python simple_mcp_server.py test

Start MCP server:

python simple_mcp_server.py

Get help:

python simple_mcp_server.py help

๐Ÿ› ๏ธ Troubleshooting

"LEMON_EMAIL_API_KEY required"

  • Set environment variable: export LEMON_EMAIL_API_KEY="your-key"

  • Or add to your MCP config (see examples above)

"MCP library not available"

pip install mcp httpx pydantic

"Connection timeout"

  • Check your internet connection

  • Verify API key is correct

  • Try test command: python simple_mcp_server.py test

Claude Desktop not seeing the tool

  • Verify JSON syntax in config file

  • Use full absolute paths, not ~

  • Restart Claude Desktop completely

  • Check Claude logs for errors


๐Ÿ“– Architecture

What's removed:

  • โŒ Railway deployment

  • โŒ Web server wrapper

  • โŒ FastAPI endpoints

  • โŒ Intermediate API layer

What remains:

  • โœ… Direct Lemon API client

  • โœ… MCP protocol server

  • โœ… Pure Python implementation

  • โœ… Minimal dependencies


๐Ÿค Contributing

Contributions welcome! See CONTRIBUTING.md


๐Ÿ“„ License

MIT License - see LICENSE


๐Ÿ”‘ Getting API Key

Need a Lemon Email API key?

  1. DM @Norman_Szobotka on Twitter

  2. Or email: manojk030303@gmail.com

You'll get your key within seconds!


๐ŸŒŸ Features

  • Direct API - No proxies or intermediate servers

  • Fast - Direct connection means lower latency

  • Simple - One Python file, minimal dependencies

  • Reliable - Fewer moving parts = fewer failures

  • Open Source - See exactly what it does

  • AI-Ready - Perfect for AI agents and automation


Ready to send emails from AI?

Get Started Get API Key

Questions? โ†’ manojk030303@gmail.com


A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables sending emails through SMTP using nodemailer, allowing AI assistants to send plain text and HTML emails with configurable SMTP credentials.
    56
    2
    ISC
  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to send emails through your SMTP server using Nodemailer. Supports plain text and HTML emails with automatic logging for audit and debugging.
    24
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to send emails, manage campaigns, subscribers, templates, and domains via the SendCraft email API.
    26
    26
    MIT

View all related MCP servers

Related MCP Connectors

  • Send transactional email over a verified domain โ€” templates, attachments, custom headers.

  • Email for AI agents: send mail, manage contacts, automations & webhooks. Zero-DNS first send.

  • Email for AI agents โ€” send, receive as a webhook, manage domains, templates, routing.

View all MCP Connectors

Appeared in Searches

Latest Blog Posts

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