MCP directory
GA

Gmail Attachments Mcp

by github.com/zayansalman · v0.1.0 · updated Jun 22, 2026

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

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx gmail-attachments-mcp==0.1.0

Environment variables

  • GMAIL_MCP_CREDENTIALS

    Path to the Google OAuth client secret JSON. Default: $XDG_CONFIG_HOME/gmail-attachments-mcp/credentials.json.

  • GMAIL_MCP_TOKENsecret

    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.

More from github.com/zayansalman

More MCP servers