Gmail Attachments MCP Server
by zayansalmanio.github.zayansalman/gmail-attachments-mcpv0.1.0
Minimal MCP server for downloading Gmail attachments to disk. Read-only OAuth by default.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install Gmail Attachments MCP server
Install in Claude Code
claude mcp add gmail-attachments -e GMAIL_MCP_TOKEN='<gmail-mcp-token>' -- uvx gmail-attachments-mcp serveInstall in Cursor
{
"mcpServers": {
"gmail-attachments": {
"command": "uvx",
"args": [
"gmail-attachments-mcp",
"serve"
],
"env": {
"GMAIL_MCP_TOKEN": "<gmail-mcp-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"gmail-attachments": {
"command": "uvx",
"args": [
"gmail-attachments-mcp",
"serve"
],
"env": {
"GMAIL_MCP_TOKEN": "<gmail-mcp-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"gmail-attachments": {
"type": "stdio",
"command": "uvx",
"args": [
"gmail-attachments-mcp",
"serve"
],
"env": {
"GMAIL_MCP_TOKEN": "<gmail-mcp-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"gmail-attachments": {
"command": "uvx",
"args": [
"gmail-attachments-mcp",
"serve"
],
"env": {
"GMAIL_MCP_TOKEN": "<gmail-mcp-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GMAIL_MCP_CREDENTIALS | — | — | Path to the Google OAuth client secret JSON. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/credentials.json. |
| GMAIL_MCP_TOKEN | — | yes | Path to the cached Gmail OAuth refresh token. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/token.json. |
| GMAIL_MCP_DEFAULT_DEST_DIR | — | — | Default directory where downloaded attachments are saved when the tool call does not specify dest_dir. Default: ~/Downloads. |
| GMAIL_MCP_SCOPES | — | — | Comma-separated Google OAuth scopes. Default: https://www.googleapis.com/auth/gmail.readonly. |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-06-09 · 4mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-22 · 4mo ago · official registry · v0.1.0
FAQ
›How do I install the Gmail Attachments MCP server in Claude Code?
Run: claude mcp add gmail-attachments -e GMAIL_MCP_TOKEN='<gmail-mcp-token>' -- uvx gmail-attachments-mcp serve. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Gmail Attachments require an API key?
Yes. It expects GMAIL_MCP_TOKEN, of which 1 is a secret.
›Can I use Gmail Attachments as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Gmail Attachments in the official MCP registry?
Yes, as io.github.zayansalman/gmail-attachments-mcp.
Alternatives to Gmail Attachments
Other email MCP servers.