Multi-Account Gmail

v0.3.0
io.github.cunicopia-dev/multi-account-gmail-mcp Checked 1 day ago Published 5 months ago

Multi-account Gmail MCP server — read, search, draft, and label across every inbox.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
GMAIL_MCP_CLIENT_SECREToptional Path to the Google OAuth "Desktop app" client-secret JSON. Defaults to ~/.gmail-mcp/client_secret.json.
GMAIL_MCP_DBoptional Path to the SQLite token store holding per-account refresh tokens. Defaults to ~/.gmail-mcp/tokens.db.
GMAIL_MCP_OAUTH_PORToptional Localhost port for the OAuth redirect during account authorization. Defaults to 8765.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add multi-account-gmail-mcp -- uvx --with 'mcp<2' --from multi-account-gmail-mcp==0.3.0 gmail-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "multi-account-gmail-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "multi-account-gmail-mcp==0.3.0",
        "gmail-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "multi-account-gmail-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "multi-account-gmail-mcp==0.3.0",
        "gmail-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "multi-account-gmail-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "multi-account-gmail-mcp==0.3.0",
        "gmail-mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.multi-account-gmail-mcp]
command = "uvx"
args = ["--with", "mcp<2", "--from", "multi-account-gmail-mcp==0.3.0", "gmail-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_accounts, search_messages, read_message, read_thread, create_draft, list_drafts, list_labels, modify_labels, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json