Skip to main content
Glama

localSMTP

Local dummy SMTP server for development. It accepts messages and writes the original bytes to .eml files.

SMTP server

uv run localsmtp --host 127.0.0.1 --port 25 --out ./mail

The legacy entry point also works:

uv run python .\main.py --host 127.0.0.1 --port 25 --out ./mail

Related MCP server: mailsink

MCP server

The MCP entry point starts both the MCP stdio server and an SMTP listener. This lets coding agents start the mail catcher only when they need it.

uv run localsmtp-mcp --smtp-host 127.0.0.1 --smtp-port 25

By default, the MCP server stores received mail in a temporary directory. Pass --out when you want to keep messages in a specific location.

After publishing the package, use it from an MCP client with uvx:

{
  "mcpServers": {
    "localsmtp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/fclef819/localSMTP-mcp.git",
        "localsmtp-mcp",
        "--smtp-host",
        "127.0.0.1",
        "--smtp-port",
        "25"
      ]
    }
  }
}

MCP tools

  • list_messages(limit = 50, newest_first = true)

  • get_message(id, include_raw = false)

  • clear_messages()

  • get_server_status()

Install Server
F
license - not found
A
quality
B
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

View all related MCP servers

Related MCP Connectors

  • Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.

  • Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.

  • A basic MCP server to operate on the Postman API.

View all MCP Connectors

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/fclef819/localSMTP-mcp'

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