claude-code - 💡(How to fix) Fix [FEATURE] Gmail MCP: add archive/remove-label actions [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48672Fetched 2026-04-16 06:54:07
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
1
Participants
Timeline (top)
labeled ×2

Fix Action

Fix / Workaround

Current workaround

RAW_BUFFERClick to expand / collapse

Feature request

The claude.ai hosted Gmail MCP currently supports reading messages, creating drafts, searching, and listing labels — but has no ability to archive emails (remove from inbox) or modify labels on existing messages.

Use case

When using Claude Code as a personal assistant for email triage, the common workflow is:

  1. Search/read emails
  2. Decide what to do with them (reply, archive, label, etc.)
  3. Take action

Steps 1-2 work great, but step 3 is limited to creating drafts. There's no way to archive emails that don't need attention, apply labels for categorization, or mark messages as read — which are the most common email management actions.

Requested actions

  • gmail_archive_message — remove a message from the inbox (equivalent to removing the INBOX label)
  • gmail_modify_labels — add/remove labels on a message (enables categorization, archiving, starring, etc.)
  • gmail_mark_as_read — mark a message as read
  • gmail_trash_message — move a message to trash

Current workaround

None within the hosted MCP. Users must switch to a self-hosted Gmail MCP server to get these capabilities, losing the convenience of the OAuth-based hosted integration.

Environment

  • Claude Code CLI
  • claude.ai hosted Gmail MCP (OAuth integration)

extent analysis

TL;DR

Implementing the requested actions (gmail_archive_message, gmail_modify_labels, gmail_mark_as_read, gmail_trash_message) in the claude.ai hosted Gmail MCP would enable users to manage emails more effectively.

Guidance

  • To address the limitation, consider adding API endpoints for the requested actions, allowing users to archive emails, modify labels, mark messages as read, and trash messages.
  • Evaluate the feasibility of integrating these features into the hosted MCP, potentially leveraging the existing OAuth-based integration.
  • Assess the impact of adding these features on the overall user experience and workflow, ensuring a seamless transition from the current workflow.
  • Investigate the possibility of providing a temporary workaround, such as a script or plugin, to bridge the gap until the features are fully integrated.

Example

No code example is provided as the issue focuses on feature requests rather than code implementation.

Notes

The implementation of these features may require significant changes to the existing infrastructure and API, and may have implications for user authentication and authorization.

Recommendation

Apply workaround: While a full implementation of the requested features is ideal, providing a temporary workaround, such as a script or plugin, can help bridge the gap and improve the user experience until the features are fully integrated.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING