Gmail MCP Server
by markswendsen-codeio.github.markswendsen-code/gmailv0.1.0
Gmail MCP server — send, read, and search email. By Strider Labs.
context tax
queued
security
queued
cold start
queued
freshness
Slowing6mo ago
Install Gmail MCP server
Install in Claude Code
claude mcp add gmail-markswendsen-code -e GOOGLE_CLIENT_ID='<google-client-id>' -e GOOGLE_CLIENT_SECRET='<google-client-secret>' -e GOOGLE_REFRESH_TOKEN='<google-refresh-token>' -- npx -y @striderlabs/mcp-gmailInstall in Cursor
{
"mcpServers": {
"gmail-markswendsen-code": {
"command": "npx",
"args": [
"-y",
"@striderlabs/mcp-gmail"
],
"env": {
"GOOGLE_CLIENT_ID": "<google-client-id>",
"GOOGLE_CLIENT_SECRET": "<google-client-secret>",
"GOOGLE_REFRESH_TOKEN": "<google-refresh-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"gmail-markswendsen-code": {
"command": "npx",
"args": [
"-y",
"@striderlabs/mcp-gmail"
],
"env": {
"GOOGLE_CLIENT_ID": "<google-client-id>",
"GOOGLE_CLIENT_SECRET": "<google-client-secret>",
"GOOGLE_REFRESH_TOKEN": "<google-refresh-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"gmail-markswendsen-code": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@striderlabs/mcp-gmail"
],
"env": {
"GOOGLE_CLIENT_ID": "<google-client-id>",
"GOOGLE_CLIENT_SECRET": "<google-client-secret>",
"GOOGLE_REFRESH_TOKEN": "<google-refresh-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"gmail-markswendsen-code": {
"command": "npx",
"args": [
"-y",
"@striderlabs/mcp-gmail"
],
"env": {
"GOOGLE_CLIENT_ID": "<google-client-id>",
"GOOGLE_CLIENT_SECRET": "<google-client-secret>",
"GOOGLE_REFRESH_TOKEN": "<google-refresh-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GOOGLE_CLIENT_ID | yes | — | Google OAuth 2.0 Client ID from Google Cloud Console |
| GOOGLE_CLIENT_SECRET | yes | yes | Google OAuth 2.0 Client Secret |
| GOOGLE_REFRESH_TOKEN | yes | yes | Google OAuth 2.0 Refresh Token for the user's Gmail account |
Freshness
Slowing — last maintenance signal 6mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-04-16 · 6mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-03-09 · 7mo ago · official registry · v0.1.0
FAQ
›How do I install the Gmail MCP server in Claude Code?
Run: claude mcp add gmail-markswendsen-code -e GOOGLE_CLIENT_ID='<google-client-id>' -e GOOGLE_CLIENT_SECRET='<google-client-secret>' -e GOOGLE_REFRESH_TOKEN='<google-refresh-token>' -- npx -y @striderlabs/mcp-gmail. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Gmail require an API key?
Yes. It expects GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN, of which 2 are secrets.
›Can I use Gmail as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Gmail in the official MCP registry?
Yes, as io.github.markswendsen-code/gmail.
Alternatives to Gmail
Other email MCP servers.