PluginBench
MCP Server

io.github.zayansalman/gmail-attachments-mcp MCP Server

io.github.zayansalman/gmail-attachments-mcp

What is the io.github.zayansalman/gmail-attachments-mcp MCP server?

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

How to install io.github.zayansalman/gmail-attachments-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • GMAIL_MCP_CREDENTIALS

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

  • GMAIL_MCP_TOKEN
    secret

    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.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "gmail-attachments-mcp": {
      "command": "uvx",
      "args": [
        "gmail-attachments-mcp",
        "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>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "gmail-attachments-mcp": {
      "command": "uvx",
      "args": [
        "gmail-attachments-mcp",
        "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>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "gmail-attachments-mcp": {
      "command": "uvx",
      "args": [
        "gmail-attachments-mcp",
        "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
.vscode/mcp.json
{
  "servers": {
    "gmail-attachments-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "gmail-attachments-mcp",
        "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 Code
claude mcp add gmail-attachments-mcp --env GMAIL_MCP_CREDENTIALS=<YOUR_GMAIL_MCP_CREDENTIALS> --env GMAIL_MCP_TOKEN=<YOUR_GMAIL_MCP_TOKEN> --env GMAIL_MCP_DEFAULT_DEST_DIR=<YOUR_GMAIL_MCP_DEFAULT_DEST_DIR> --env GMAIL_MCP_SCOPES=<YOUR_GMAIL_MCP_SCOPES> -- uvx gmail-attachments-mcp serve

Related MCP servers

Minimal MCP server for reading comments on Google Drive files (Docs, Sheets, Slides). Read-only.

View repository →

Minimal MCP server for Google Drive file management and Google Sheets editing.

View repository →