mailindex-mcp

io.github.alexanderkrauck/mailindex-mcp

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mailindex-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/alexanderkrauck/mailindex-mcp:0.3.3"
      ],
      "env": {
        "EMAILSERVER_DATABASE_URL": "<your EMAILSERVER_DATABASE_URL>",
        "EMAILSERVER_AUTH_MODE": "development",
        "EMAILSERVER_API_TOKEN": "<your EMAILSERVER_API_TOKEN>",
        "CREDENTIAL_ENCRYPTION_KEY": "<your CREDENTIAL_ENCRYPTION_KEY>"
      }
    }
  }
}
Environment variables
  • EMAILSERVER_DATABASE_URLrequiredPostgreSQL 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_MODEHow callers are authenticated: development (no auth, loopback only), single_user (static bearer token), or google (multi-user OAuth).
  • EMAILSERVER_API_TOKENsecretBearer token required in single_user mode. At least 32 characters, or the server refuses to start.
  • CREDENTIAL_ENCRYPTION_KEYsecretKey used to encrypt stored mailbox credentials at rest. Generate with: openssl rand -base64 32

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.3.3
Registry
active
Published
10/31/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that mailindex-mcp is listed here — it’s also the link we check for a free listing.

mailindex-mcp — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-alexanderkrauck-mailindex-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="mailindex-mcp — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![mailindex-mcp — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-alexanderkrauck-mailindex-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.