Minimal MCP server for downloading Gmail attachments to disk. Read-only OAuth by default.
Connect Runs on your machine
claude mcp add gmail-attachments-mcp -e GMAIL_MCP_CREDENTIALS=<GMAIL_MCP_CREDENTIALS> -e GMAIL_MCP_TOKEN=<GMAIL_MCP_TOKEN> -e GMAIL_MCP_DEFAULT_DEST_DIR=<GMAIL_MCP_DEFAULT_DEST_DIR> -e GMAIL_MCP_SCOPES=<GMAIL_MCP_SCOPES> -- uvx gmail-attachments-mcp==0.1.0
{
"mcpServers": {
"gmail-attachments-mcp": {
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<GMAIL_MCP_SCOPES>"
}
}
}
}
{
"mcpServers": {
"gmail-attachments-mcp": {
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<GMAIL_MCP_SCOPES>"
}
}
}
}
{
"servers": {
"gmail-attachments-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<GMAIL_MCP_SCOPES>"
}
}
}
}
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_MCP_CREDENTIALSOptional | Path to the Google OAuth client secret JSON. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/credentials.json. |
GMAIL_MCP_TOKENOptional, secret | Path to the cached Gmail OAuth refresh token. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/token.json. |
GMAIL_MCP_DEFAULT_DEST_DIROptional | Default directory where downloaded attachments are saved when the tool call does not specify dest_dir. Default: ~/Downloads. |
GMAIL_MCP_SCOPESOptional | Comma-separated Google OAuth scopes. Default: https://www.googleapis.com/auth/gmail.readonly. |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 22 Jun 2026 |
| Last updated | 22 Jun 2026 |
| Registry name | io.github.zayansalman/gmail-attachments-mcp |
More communication servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
