gmail-attachments-mcp
A minimal MCP server and CLI for downloading Gmail attachments to disk. It provides three tools with read-only OAuth scope, allowing agents to search and download attachments without modifying mail. It works as both an MCP server and a standalone CLI, supporting integration with Claude Code, Claude Desktop, Cursor, and Cline.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Download the latest CV from a specific email address
- Search for emails with attachments from the last 7 days
- Download thread attachments to a local directory
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
gmail-attachments-mcp 0.1.0
{
"version": "0.1.0",
"transport": "stdio",
"identifier": "gmail-attachments-mcp",
"registryType": "pypi",
"packageArguments": [
{
"type": "positional",
"value": "serve",
"description": "Subcommand that runs the stdio MCP server."
}
],
"environmentVariables": [
{
"name": "GMAIL_MCP_CREDENTIALS",
"format": "filepath",
"description": "Path to the Google OAuth client secret JSON. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/credentials.json."
},
{
"name": "GMAIL_MCP_TOKEN",
"format": "filepath",
"description": "Path to the cached Gmail OAuth refresh token. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/token.json."
},
{
"name": "GMAIL_MCP_DEFAULT_DEST_DIR",
"format": "filepath",
"description": "Default directory where downloaded attachments are saved when the tool call does not specify dest_dir. Default: ~/Downloads."
},
{
"name": "GMAIL_MCP_SCOPES",
"format": "string",
"description": "Comma-separated Google OAuth scopes. Default: https://www.googleapis.com/auth/gmail.readonly."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"gmail-attachments-mcp": {
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0",
"serve"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<YOUR_GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<YOUR_GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<YOUR_GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<YOUR_GMAIL_MCP_SCOPES>"
}
}
}
}Cline
{
"mcpServers": {
"gmail-attachments-mcp": {
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0",
"serve"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<YOUR_GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<YOUR_GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<YOUR_GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<YOUR_GMAIL_MCP_SCOPES>"
}
}
}
}VS Code
{
"servers": {
"gmail-attachments-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0",
"serve"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<YOUR_GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<YOUR_GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<YOUR_GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<YOUR_GMAIL_MCP_SCOPES>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"gmail-attachments-mcp": {
"command": "uvx",
"args": [
"gmail-attachments-mcp==0.1.0",
"serve"
],
"env": {
"GMAIL_MCP_CREDENTIALS": "<YOUR_GMAIL_MCP_CREDENTIALS>",
"GMAIL_MCP_TOKEN": "<YOUR_GMAIL_MCP_TOKEN>",
"GMAIL_MCP_DEFAULT_DEST_DIR": "<YOUR_GMAIL_MCP_DEFAULT_DEST_DIR>",
"GMAIL_MCP_SCOPES": "<YOUR_GMAIL_MCP_SCOPES>"
}
}
}
}Let your agent find its tools
Find servers like gmail-attachments-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.