Skip to content

gmail attachments mcp for Grok

io.github.zayansalman/gmail-attachments-mcp

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

client:Grok transport:stdio runtime:pypi

Install gmail attachments mcp in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "gmail-attachments-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "gmail-attachments-mcp"
      ],
      "env": {
        "GMAIL_MCP_CREDENTIALS": "<GMAIL_MCP_CREDENTIALS>",
        "GMAIL_MCP_TOKEN": "<GMAIL_MCP_TOKEN>",
        "GMAIL_MCP_DEFAULT_DEST_DIR": "<GMAIL_MCP_DEFAULT_DEST_DIR>",
        "GMAIL_MCP_SCOPES": "<GMAIL_MCP_SCOPES>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

gmail attachments mcp in other clients