M

mailindex-mcp

MCP server · by alexanderkrauck

Developer Tools Docker v0.3.1

Search, move, mark, delete and draft your real mail over a self-hosted index.

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

unavailable — the image reference already carries a tag

Docker
docker run -i --rm ghcr.io/alexanderkrauck/mailindex-mcp:0.3.1

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "mailindex-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/alexanderkrauck/mailindex-mcp:0.3.1"
      ],
      "env": {
        "EMAILSERVER_DATABASE_URL": "<YOUR_EMAILSERVER_DATABASE_URL>",
        "EMAILSERVER_API_TOKEN": "<YOUR_EMAILSERVER_API_TOKEN>",
        "CREDENTIAL_ENCRYPTION_KEY": "<YOUR_CREDENTIAL_ENCRYPTION_KEY>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • EMAILSERVER_DATABASE_URL required — PostgreSQL connection URL. This server keeps its own index and does not run without a database; the repository ships docker-compose files that start one for you.
  • EMAILSERVER_AUTH_MODE — How callers are authenticated: development (no auth, loopback only), single_user (static bearer token), or google (multi-user OAuth).
  • EMAILSERVER_API_TOKEN secret — Bearer token required in single_user mode. At least 32 characters, or the server refuses to start.
  • CREDENTIAL_ENCRYPTION_KEY secret — Key used to encrypt stored mailbox credentials at rest. Generate with: openssl rand -base64 32

GitHub

最近更新于 23 天前 · MIT license

About this server

mailindex mcp A mail client for an AI agent. Everything you can do in Thunderbird — search, move, mark, delete, draft — over your own index, on your own machine. Most email MCP servers forward each question straight to IMAP. That answers "show me my last 10 messages" and falls apart on everything el…

Summary from the project README — github.com/alexanderkrauck/mailindex-mcp

Distributed as Docker, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the mailindex-mcp MCP server do?

mailindex mcp A mail client for an AI agent. Everything you can do in Thunderbird — search, move, mark, delete, draft — over your own index, on your own machine. Most email MCP servers forward each question straight to IMAP. That answers "show me my last 10 messages" and falls apart on everything el

How do I install mailindex-mcp?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is mailindex-mcp free to use?

The MCP server itself is free to install. The source is public on https://github.com/alexanderkrauck/mailindex-mcp. Any third-party service it calls may require its own API key and account.

Which clients support mailindex-mcp?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/mailindex-mcp.svg)](https://mcpnav.net/server/mailindex-mcp/)

HTML

<a href="https://mcpnav.net/server/mailindex-mcp/"><img src="https://mcpnav.net/badge/mailindex-mcp.svg" alt="Listed on MCPNav" height="20"></a>