mailcue-mcp logo

mailcue-mcp

Organization
Olib-AI

Realistic email testing server in a single Docker container. SMTP, IMAP, DKIM/DMARC, spam filtering, REST API, Node/Python SDKs, and an MCP server.

PublisherOlib-AI
Repositorymailcue
LanguagePython
Forks
3
Stars
23
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    mailcue-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    23 stars and 3 forks from the linked repository.


MailCue packages Postfix, Dovecot, OpenDKIM, OpenDMARC, SpamAssassin, a FastAPI REST API, and a React web UI into one Docker container managed by s6-overlay. It runs a full mail stack with IMAP/POP3 access, DKIM signing, DMARC verification, spam filtering, TLS, and GPG encryption, so you can test email the way it behaves in production. Set MAILCUE_MODE=production and the same container runs as a real mail server.

Features · Quick start · Documentation · Contributing

Features

CapabilityWhat it does
Catch-all SMTPAccepts mail for any address on any domain. Nothing leaves the container.
IMAP and POP3Read captured mail with any standard client over STARTTLS or implicit TLS.
Web UIReact app with a mailbox sidebar, folder navigation, an email viewer, and a compose dialog.
REST API and SDKsJSON API for sending, receiving, injecting, searching, and deleting email, with Python and Node SDKs.
Email injectionInsert messages straight into a mailbox over IMAP APPEND for deterministic test setup, with realistic headers.
Deliverability testingCreate a scoring mailbox with authentication, SpamAssassin, content, header, and transport diagnostics through the web UI, REST API, Node SDK, and MCP.
DKIM, DMARC, SPFOpenDKIM signing, OpenDMARC verification, and SPF policy checks, with Authentication-Results headers.
Spam filteringSpamAssassin scores inbound mail with a configurable threshold, Bayesian filtering, and RBL checks.
TLS everywhereAuto-generated certificates for SMTP STARTTLS, IMAPS, and POP3S. Upload your own from the UI.
GPG / PGP-MIMEPer-mailbox GPG keys. Sign, encrypt, verify, and decrypt mail (RFC 3156). Publish keys to keys.openpgp.org.
Real-time eventsA Server-Sent Events stream pushes email.received, email.deleted, mailbox.created, and more.
Scoped API keysX-API-Key auth with per-key scopes (read, send, delete, and more) and an optional mailbox allow-list.
MCP serverAn official Model Context Protocol server gives an AI agent its own mailbox.
Domain managementAdd custom domains with automatic DKIM and a DNS dashboard for MX, SPF, DKIM, DMARC, MTA-STS, and TLS-RPT.
Multi-userPer-user mailbox quotas and isolated mailboxes, emails, GPG keys, and API keys.
Production modeA hardened mail server with strict domains, required TLS, DMARC reject, and Let's Encrypt certificates.
Provider sandboxCapture outbound SMS, voice, and chat API traffic with wire-identical endpoints and signed webhooks.
Flexible databaseZero-config SQLite with optional AES-256 encryption, or external PostgreSQL for concurrent production workloads.

Quick start

Docker Compose

bash
git clone https://github.com/Olib-AI/mailcue.git
cd mailcue
docker compose up -d

Open http://localhost:8088 and log in with username admin and password mailcue.

Docker run

bash
docker run -d \
  --name mailcue \
  -p 8088:80 \
  -p 25:25 \
  -p 587:587 \
  -p 143:143 \
  -p 993:993 \
  -v mailcue-data:/var/mail/vhosts \
  -v mailcue-db:/var/lib/mailcue \
  -e MAILCUE_DOMAIN=mailcue.local \
  -e MAILCUE_ADMIN_PASSWORD=mailcue \
  ghcr.io/olib-ai/mailcue

Check it works

bash
curl http://localhost:8088/api/v1/health

Database choices

MailCue uses SQLite by default, which keeps local and small deployments simple. Production installations with concurrent API, provider sandbox, HTTP-bin, or email warmup traffic should use PostgreSQL. MailCue supports a managed PostgreSQL database or a PostgreSQL container on the same private Docker network. Connection pooling, production indexes, foreign keys, automatic schema migrations, and an offline SQLite-to-PostgreSQL migration command are included.

See Production deployment for Docker Compose examples and the migration procedure. See Configuration for every database environment variable.

Documentation

📖 Read the full, interactive guides on the Official MailCue Documentation Website.

GuideCovers
ArchitectureContainer layout, request flow, and tech stack.
ConfigurationEnvironment variables and exposed ports.
API referenceREST endpoints, authentication, and API key scopes.
Production deploymentHardened mode, PostgreSQL deployment and migration, DNS records, and TLS certificates.
Email clients and TLS trustIMAP/POP3/SMTP setup and trusting the CA.
Using in CI/CDPipeline setup and platform examples.
MCP serverGive an AI agent its own mailbox over MCP.
Provider sandbox and HTTP binCapture SMS, voice, and chat traffic, and inspect HTTP requests.
Sharing MailCue across projectsRun one container behind a shared Docker network.
Development and contributingLocal setup, linting, tests, and the PR process.

The API is also served as interactive Swagger UI at /api/docs, with machine-readable specs in openapi.json and postman_collection.json. See the deliverability testing guide for scoring, visual testing, placement, providers, schedules, and CI policies.

The SDKs and MCP server have their own docs: Python SDK, Node SDK, and MCP server.

Contributing

Contributions are welcome. See Development and contributing for local setup, linting, type checks, tests, and the pull request process.

License

MIT. See LICENSE.

Star History

Links


Use mailcue-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once mailcue-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add mailcue-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the mailcue-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mailcue": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the mailcue-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the mailcue-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use mailcue-mcp to help me with this task?
mailcue-mcp
Sure. I read it.
Here is what I found using mailcue-mcp.

Frequently asked questions

What is the mailcue-mcp MCP server used for?

mailcue-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use mailcue-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use mailcue-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use mailcue-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With mailcue-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect mailcue-mcp MCP to TypingMind?

mailcue-mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does mailcue-mcp MCP provide in TypingMind?

mailcue-mcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use mailcue-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If mailcue-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇