Skip to main content

Gmail Attachments MCP

io.github.zayansalman/gmail-attachments-mcp

v0.1.0Updated Jun 22, 2026stdio · PyPI

Minimal MCP server for downloading Gmail attachments to disk. Read-only OAuth by default.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add gmail-attachments-mcp -- uvx gmail-attachments-mcp==0.1.0 serve

Configuration

4 settings.

  • GMAIL_MCP_TOKEN
    Env var· optional· secret
    Path to the cached Gmail OAuth refresh token. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/token.json.
  • GMAIL_MCP_CREDENTIALS
    Env var· optional
    Path to the Google OAuth client secret JSON. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/credentials.json.
  • GMAIL_MCP_DEFAULT_DEST_DIR
    Env var· optional
    Default directory where downloaded attachments are saved when the tool call does not specify dest_dir. Default: ~/Downloads.
  • GMAIL_MCP_SCOPES
    Env var· optional
    Comma-separated Google OAuth scopes. Default: https://www.googleapis.com/auth/gmail.readonly.

Listed in the official MCP Registry since Jun 22, 2026. Mirrored daily; last checked Nov 26, 2026.