Gmail MCP

65 tools. 38 can modify or destroy data without limits.

11 destructive tools with no built-in limits. Policy required.

Last updated:

38 can modify or destroy data
27 read-only
65 tools total

Community server · catalogue entry verified 11/06/2026

How to control Gmail MCP ↓

Read (27) Write / Execute (27) Destructive / Financial (11)
Critical Risk

38 of Gmail MCP's 65 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

PolicyLayer is an MCP gateway — it sits between your AI agents and Gmail MCP, and nothing reaches the server without passing your rules. These are the rules we recommend:

Deny destructive operations
{
  "batch_delete_messages": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
{
  "untrash_message": {
    "limits": [
      {
        "counter": "untrash_message_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "get_attachment": {
    "limits": [
      {
        "counter": "get_attachment_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

Controls API costs and prevents retry loops from exhausting upstream rate limits.

  1. Create a free account and register Gmail MCP — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
ENFORCE POLICY ON GMAIL →

Free to start. No card required.

WRITE 26 tools
Write untrash_message Remove a message from the trash Write untrash_thread Remove a thread from the trash Write stop_mail_watch Stop receiving push notifications for the given user mailbox Write add_delegate Adds a delegate to the specified account Write batch_modify_messages Modify the labels on multiple messages Write create_draft Create a draft email in Gmail. Note the mechanics of the raw parameter. Write create_filter Creates a filter Write create_forwarding_address Creates a forwarding address Write create_label Create a new label Write create_send_as Creates a custom send-as alias Write insert_smime_info Insert (upload) the given S/MIME config for the specified send-as alias Write modify_message Modify the labels on a message Write modify_thread Modify the labels applied to a thread Write patch_label Patch an existing label (partial update) Write patch_send_as Patches the specified send-as alias Write send_draft Send an existing draft Write send_message Send an email message to specified recipients. Note the mechanics of the raw parameter. Write set_default_smime_info Sets the default S/MIME config for the specified send-as alias Write update_auto_forwarding Updates automatic forwarding settings Write update_draft update_draft Write update_imap Updates IMAP settings Write update_label Update an existing label Write update_language Updates language settings Write update_pop Updates POP settings Write update_send_as Updates a send-as alias Write update_vacation Update vacation responder settings

Other MCP servers with similar tools — same risk classification, starter policies for each.

Can an AI agent delete data through the Gmail MCP server? +

Yes. The Gmail MCP server exposes 11 destructive tools including batch_delete_messages, delete_draft, delete_filter. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Gmail MCP? +

The Gmail MCP server has 26 write tools including untrash_message, untrash_thread, stop_mail_watch. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Gmail MCP.

How many tools does the Gmail MCP server expose? +

65 tools across 4 categories: Destructive, Execute, Read, Write. 27 are read-only. 38 can modify, create, or delete data.

How do I enforce a policy on Gmail MCP? +

Register the Gmail MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Gmail MCP tool call.

Deterministic rules across all 65 Gmail MCP tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Free to start. No card required.

65 Gmail MCP tools catalogued and risk-classified — across an index of 42,500+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.