Multi-Account Gmail
v0.3.0Multi-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
| Variable | What it is | |
|---|---|---|
GMAIL_MCP_CLIENT_SECRET | optional | Path to the Google OAuth "Desktop app" client-secret JSON. Defaults to ~/.gmail-mcp/client_secret.json. |
GMAIL_MCP_DB | optional | Path to the SQLite token store holding per-account refresh tokens. Defaults to ~/.gmail-mcp/tokens.db. |
GMAIL_MCP_OAUTH_PORT | optional | 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-mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_accounts, search_messages, read_message, read_thread, create_draft, list_drafts, list_labels, modify_labels, ….
- 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