Gmail MCP for Claude Desktop
io.github.a1-x-tech/mcp-google-gmail
MCP server for the Gmail API: search, read and send email, manage drafts, labels and the trash.
client:Claude Desktop
transport:stdio
runtime:npm
Install Gmail MCP in Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mcp-google-gmail": {
"command": "npx",
"args": [
"-y",
"mcp-google-gmail"
],
"env": {
"GOOGLE_GMAIL_CLIENT_ID": "<GOOGLE_GMAIL_CLIENT_ID>",
"GOOGLE_GMAIL_CLIENT_SECRET": "<GOOGLE_GMAIL_CLIENT_SECRET>",
"GOOGLE_GMAIL_REFRESH_TOKEN": "<GOOGLE_GMAIL_REFRESH_TOKEN>",
"GOOGLE_GMAIL_ACCESS_TOKEN": "<GOOGLE_GMAIL_ACCESS_TOKEN>",
"GOOGLE_GMAIL_OAUTH_PORT": "<GOOGLE_GMAIL_OAUTH_PORT>",
"GOOGLE_GMAIL_API_BASE": "<GOOGLE_GMAIL_API_BASE>",
"GOOGLE_GMAIL_TIMEOUT_MS": "<GOOGLE_GMAIL_TIMEOUT_MS>",
"GOOGLE_GMAIL_MAX_RETRIES": "<GOOGLE_GMAIL_MAX_RETRIES>"
}
}
}
}
Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs