Koskamo

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.

gmail-attachments-mcp logo, by zayansalmanCommunity listingLocal stdioSource reviewed; not executedPublished by zayansalman
You need:You need a Google Cloud OAuth client.Enable the Gmail API: console.cloud.google.com/apis/library/gmail.googleapis.comConfigure the OAuth consent screen under APIs & Services → OAuth consent screenpip install gmail-attachments-mcp
Vendor documentation

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

Community listingRegistry 0.1.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

gmail-attachments-mcp 0.1.0

pypi
gmail-attachments-mcp package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.