Skip to content
VS Code

mailindex-mcp for VS Code

io.github.alexanderkrauck/mailindex-mcp

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

client:VS Code transport:stdio runtime:oci

Install mailindex-mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "emailserver-database-url",
      "description": "EMAILSERVER_DATABASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "emailserver-auth-mode",
      "description": "EMAILSERVER_AUTH_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "emailserver-api-token",
      "description": "EMAILSERVER_API_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "credential-encryption-key",
      "description": "CREDENTIAL_ENCRYPTION_KEY",
      "password": true
    }
  ],
  "servers": {
    "mailindex-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/alexanderkrauck/mailindex-mcp:0.2.1"
      ],
      "env": {
        "EMAILSERVER_DATABASE_URL": "${input:emailserver-database-url}",
        "EMAILSERVER_AUTH_MODE": "${input:emailserver-auth-mode}",
        "EMAILSERVER_API_TOKEN": "${input:emailserver-api-token}",
        "CREDENTIAL_ENCRYPTION_KEY": "${input:credential-encryption-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mailindex-mcp in other clients