Skip to content

Feature Request: Add Support for Customizable OAuth Scopes to Prevent Unintended Email Operations #111

Description

@Do-yoon

The official Gmail MCP currently does not support customizable OAuth scopes. This limitation prevents users from fine-tuning the permission levels granted to the Gmail integration based on their security and privacy requirements.

With hardcoded OAuth permissions, there is a risk that an LLM could make incorrect judgments and accidentally send emails or perform unintended operations. By allowing users to restrict scopes to read-only access (e.g., gmail.readonly), we can prevent such mishaps and implement safer configurations for production environments.

Proposed Solution

Implement customizable OAuth scope configuration that allows users to:

  • Define which Gmail scopes to authorize during the OAuth flow
  • Restrict permissions to only necessary operations (e.g., read-only access)
  • Configure scopes through the extension configuration file

Example Use Case

A user can grant only gmail.readonly instead of full Gmail modification permissions to prevent accidental email sending due to LLM misinterpretation.

Activity

  1. allenhutchison commented on Mar 3, 2026

    @allenhutchison
    Contributor

    I'm moving forward with a feature to support this request. It's outlined in #255 for discussion. I'm going to close this issue in favor of the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions