Lean Gmail MCP server with auto authentication support
Connect Runs on your machine
claude mcp add gmail-mcp-server -e GMAIL_OAUTH_PATH=<GMAIL_OAUTH_PATH> -e GMAIL_CREDENTIALS_PATH=<GMAIL_CREDENTIALS_PATH> -- npx -y @artymclabin/[email protected]
{
"mcpServers": {
"gmail-mcp-server": {
"command": "npx",
"args": [
"-y",
"@artymclabin/[email protected]"
],
"env": {
"GMAIL_OAUTH_PATH": "<GMAIL_OAUTH_PATH>",
"GMAIL_CREDENTIALS_PATH": "<GMAIL_CREDENTIALS_PATH>"
}
}
}
}
{
"mcpServers": {
"gmail-mcp-server": {
"command": "npx",
"args": [
"-y",
"@artymclabin/[email protected]"
],
"env": {
"GMAIL_OAUTH_PATH": "<GMAIL_OAUTH_PATH>",
"GMAIL_CREDENTIALS_PATH": "<GMAIL_CREDENTIALS_PATH>"
}
}
}
}
{
"servers": {
"gmail-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@artymclabin/[email protected]"
],
"env": {
"GMAIL_OAUTH_PATH": "<GMAIL_OAUTH_PATH>",
"GMAIL_CREDENTIALS_PATH": "<GMAIL_CREDENTIALS_PATH>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
GMAIL_OAUTH_PATHOptional | Optional override for the OAuth client keys file path (defaults to ~/.gmail-mcp/gcp-oauth.keys.json) |
GMAIL_CREDENTIALS_PATHOptional | Optional override for the stored credentials file path (defaults to ~/.gmail-mcp/credentials.json) |
Details
| Package | @artymclabin/[email protected] (NPM, stdio) |
| First published | 1 Nov 2026 |
| Last updated | 1 Nov 2026 |
| Registry name | io.github.ArtyMcLabin/Gmail-MCP-Server |
More communication servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
