Skip to content
Agentmart
Submit a tool

Gmail Attachments MCP

Minimal MCP server for downloading Gmail attachments to disk.

Connector by zayansalman · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 3
Write a review

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.

We use your email only for this newsletter. Privacy

About

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

No 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_matching
  • gmail_download_thread_attachments

Secrets and settings it asks for

Secrets: values you paste in that let it act as you.

  • GMAIL_MCP_CREDENTIALS
  • GMAIL_MCP_TOKEN

Other settings (environment variables or headers).

  • GMAIL_MCP_DEFAULT_DEST_DIR
  • GMAIL_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_matching

    Find 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_attachments

    Download 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_search

    Search 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
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from zayansalman

Cite this page

Gmail Attachments MCP. Agent Mart. https://agentmart.dev/connectors/zayansalman-gmail-attachments-mcp (last updated 2026-10-24)