Gmail-MCP-Server
local MCP serverGmail-MCP-Server is a local MCP server: Lean Gmail MCP server with auto authentication support. Install it from npm as @artymclabin/gmail-mcp.
Installation
Terminal
claude mcp add gmail-mcp-server -e GMAIL_OAUTH_PATH=... -e GMAIL_CREDENTIALS_PATH=... -- npx -y @artymclabin/gmail-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"gmail-mcp-server": {
"command": "npx",
"args": [
"-y",
"@artymclabin/gmail-mcp"
],
"env": {
"GMAIL_OAUTH_PATH": "...",
"GMAIL_CREDENTIALS_PATH": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
GMAIL_OAUTH_PATH,GMAIL_CREDENTIALS_PATH
Summary
Lean Gmail MCP server with auto authentication support
Gmail-MCP-Server vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| Gmail-MCP-Server | 244 | Local | Yes | npm |
| appstore-connect-mcp | 38 | Local | Yes | npm |
| DBHub | 3,574 | Local | Yes | npm |
| mcp-ssh-manager | 493 | Local | Yes | npm |
| google-analytics-mcp | 242 | Local | Yes | pypi |
Questions
It reads 2 environment variables: GMAIL_OAUTH_PATH, GMAIL_CREDENTIALS_PATH. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
Gmail-MCP-Server is a local MCP server distributed as the npm package @artymclabin/gmail-mcp.
Run: claude mcp add gmail-mcp-server -e GMAIL_OAUTH_PATH=... -e GMAIL_CREDENTIALS_PATH=... -- npx -y @artymclabin/gmail-mcp
Run: codex mcp add gmail-mcp-server --env GMAIL_OAUTH_PATH=... --env GMAIL_CREDENTIALS_PATH=... -- npx -y @artymclabin/gmail-mcp
Similar MCP servers
NameStars
- appstore-connect-mcpio.github.ryaker/appstore-connect-mcp38
- DBHubio.github.bytebase/dbhub3,574
- mcp-ssh-managerio.github.bvisible/mcp-ssh-manager493
- google-analytics-mcpio.github.surendranb/google-analytics-mcp242
- Dynatrace-mcpio.github.dynatrace-oss/Dynatrace-mcp138
- Unraid MCPai.dinglebear/unraid-mcp131
- Unraid MCPtv.tootie/unraid-mcp131
- code-indexio.github.Regsorm/code-index130