Gmail Attachments MCP
Minimal MCP server for downloading Gmail attachments to disk.
Connector by zayansalman · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/zayansalman-gmail-attachments-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 1 read · 2 write · 0 delete
- Secrets
- 2 (API keys, tokens or passwords)
- Install scripts
- Not scanned yet
- Runs as
- Python package
Tools by what they do 3
Read from the source code; the running server may list different tools.
Read 1 · Look things up without changing anything.
gmail_search
Write 2 · Create, change, send or run things.
gmail_download_latest_matchinggmail_download_thread_attachments
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
GMAIL_MCP_CREDENTIALSGMAIL_MCP_TOKEN
Other settings (environment variables or headers).
GMAIL_MCP_DEFAULT_DEST_DIRGMAIL_MCP_SCOPES
Tools (3)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
gmail_download_latest_matchingFind the most recent thread matching the query and download its attachments. Args: query: Gmail search syntax. dest_dir: Local directory. Defaults to $GMAIL_MCP_DEFAULT_DEST_DIR or ~/Downloads. extensions: Optional file-extension filter. Returns: JSON {matched: thread-summary | null, saved: [files]}.
gmail_download_thread_attachmentsDownload every attachment from a Gmail thread to disk. Args: thread_id: Gmail thread ID (obtain from gmail_search). dest_dir: Local directory to save into. Created if missing. '~' is expanded. If omitted, uses $GMAIL_MCP_DEFAULT_DEST_DIR or ~/Downloads. extensions: Optional file-extension filter (case-insensitive), e.g. ['.pdf', '.docx']. Returns: JSON array of saved files with {path, size_bytes, mime_type, original_filename, from_, subject, date}.
gmail_searchSearch Gmail threads. Returns thread summaries with attachment filenames as JSON. Args: query: Gmail search syntax (e.g. 'has:attachment newer_than:7d from:hr@example.com'). Supports all Gmail operators: from:, to:, subject:, has:attachment, newer_than:, older_than:, filename:, label:, in:, etc. max_results: Max threads to return. Clamped to [1, 50]. Default 10. Returns: JSON array of {thread_id, subject, sender, date, snippet, message_count, attachment_count, attachment_filenames}. Pass thread_id to gmail_download_thread_attachments to fetch bytes.
Signals
- Stars
- 3
- Forks
- 1
- Open issues
- 1
- Weekly downloads
- 189
- Last commit
- Jun 9, 2026 (4 months ago)
- Last release
- Jun 22, 2026 (4 months ago)
- Last package publish
- Jun 22, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.zayansalman/gmail-attachments-mcp- Version
- 0.1.0
- Auth
- API key
- Packages
- pypi gmail-attachments-mcp
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from zayansalman
- 0.487score
Google Drive Files MCP
zayansalman
Minimal MCP server for Google Drive file management and Google Sheets editing.
ConnectorCFreshness: CLocal↓ 33/wkClaude Code +5 - 0.478score
Google Drive Comments MCP
zayansalman
Minimal MCP server for reading comments on Google Drive files (Docs, Sheets, Slides).
ConnectorCFreshness: CLocalRead-only↓ 22/wkClaude Code +5
Cite this page
Gmail Attachments MCP. Agent Mart. https://agentmart.dev/connectors/zayansalman-gmail-attachments-mcp (last updated 2026-10-24)