Gmail MCP security: scopes, permissions and risky tools

Google's official Gmail MCP server can send, forward, trash and change filters, not only read mail. This page explains the scopes, risky tools and limits to decide before approval.

On this page

Gmail MCP security: can the official server be limited to read-only or approved actions?

The official Google Gmail MCP server supports OAuth-based access control through scopes and Workspace admin controls, but the tools a granted scope unlocks are not individually restrictable inside the server, so the requirement to limit an agent to read-only or approved actions is only partly met by built-in controls. Treat scope selection as the primary control and plan additional safeguards for anything that changes mail or mailbox settings.

The server uses three main scopes: gmail.readonly, gmail.compose and gmail.modify, plus gmail.settings.basic, which Google's guide says is required only when the agent calls create_filter. A read-only grant covers searching threads, retrieving messages and drafts, and listing labels and filters. Granting gmail.compose or gmail.modify adds the action set: sending, replying, forwarding, managing drafts, labels and filters, and moving items to Trash or Spam. The reviewer should confirm with Google's current scope documentation which tools each granted scope actually exposes before approving a client, because a single grant can enable several tools at once.

Workspace admins can set rules that prompt users to confirm sensitive actions in third-party AI tools, while routine actions such as creating a draft stay unprompted. Confirm in your own Workspace admin console whether that confirmation rule covers sending, forwarding and trashing for the clients you intend to approve. Because send_message sends mail immediately, the confirmation rule is the main human checkpoint, and it should be tested before rollout rather than assumed.

Which tool capabilities each control covers

This table maps each Gmail MCP capability to the OAuth scope, Workspace admin setting or IAM control that can limit it, and shows how far that control reaches. Confirm edition availability for each admin control with Google, because the supporting sources do not settle which Workspace editions expose every setting. The main takeaway is that IAM deny policies cannot constrain Gmail tools, so scope selection and Workspace admin controls carry the restriction work.

CapabilityWhat it needsControl that limits itStatus
Read tools (search threads, retrieve messages, list labels)gmail.readonly scopeOAuth scope granted at consentBuilt in
Draft and composegmail.compose scope for composing; confirm drafts scope with GoogleOAuth scope; admin prompt rules leave routine drafts unpromptedBuilt in
Send and forward (send_message sends immediately)Compose-level scope; confirm which scope each send and forward tool requiresAdmin rules that prompt users to confirm sensitive actionsConfigured through Workspace admin controls
Trash and spam (trash_thread, trash_message, mark_message_spam)gmail.modify scopeOAuth scope; do not rely on IAM deny policiesBuilt in
Filters and settings (create_filter)gmail.settings.basic scope, required only for create_filterWithhold the scope; confirm any Workspace admin setting for filtersBuilt in
Admin confirmation prompts for sensitive actionsWorkspace admin rule set for third-party AI toolsAdmin policy in the Workspace admin console; confirm which actions it coversConfigured through Workspace admin controls
IAM deny policies on Gmail toolsGoogle Cloud IAM deny policyCannot control tools of non-Google Cloud MCP serversNot available through IAM deny policies
Audit logging of Gmail MCP tool callsWorkspace admin audit logs; confirm which events record MCP tool callsNot documented in the supporting sources for Gmail MCPNeeds confirmation with Google

How OAuth scopes and the Gmail MCP tools decide what an agent can touch

The OAuth scope set granted at consent is the first boundary on what an agent can do through the official Gmail MCP server. The server uses OAuth 2.0 for authentication and authorization, and it inherits the same permissions as the signed-in user, so an agent cannot do more in Gmail than the user could, but it can do everything the granted scopes allow. Before approving a rollout, confirm the scopes the client requests during consent, since the Gmail MCP guide names gmail.readonly, gmail.compose and gmail.modify. Read access (searching threads, retrieving messages and drafts, listing labels) sits with gmail.readonly, while gmail.compose covers composing and sending, and gmail.modify covers changes such as labels and moving items to Trash or Spam. Review the Gmail MCP server configuration guide to map each client's requested scopes against your policy.

The tool reference shows why scope review matters. Tools such as send_message, reply, forward, create_filter, trash_thread, trash_message and mark_message_spam are in the official tool set, so a granted agent can send mail and change mailbox behavior, not only read it. gmail.settings.basic is needed only for create_filter, so a client that does not need to create filters should not be granted it, and a filter that forwards or deletes incoming mail is a quiet way to change what the user sees. The send_message tool sends a new email immediately from the authenticated user's account, with attachments up to a combined 25MB, and there is no draft step in between. A useful test is to ask which tools a given scope set unlocks, then decide whether send and forward should stay out of the agent's reach entirely.

Scopes are not the only lever, and they are not enough on their own. Google's Cloud IAM deny policy documentation states that IAM deny policies cannot control tools of non-Google Cloud MCP servers, so you cannot use a deny policy to block send_message for the Gmail server. Limits have to come from the OAuth scopes you allow and from Workspace admin controls. Ask Google or your Workspace administrator which admin settings can require user confirmation for sensitive actions in third-party AI tools while leaving routine actions such as draft creation unprompted, and confirm how those rules apply to the Gmail MCP server specifically. Google's AI security guidance warns that MCP actions can be irreversible and that agents without human approval are exposed to prompt injection, so treat send, forward and trash as the actions that need an approval path.

Which Gmail MCP tools carry the most risk

The official Gmail MCP server exposes tools that change mail, settings and deletion state, not only read it. The cards below group the tools by how hard their effect is to reverse or notice, and each names the lever an administrator or reviewer can use to limit it.

send_message sends immediately

The send_message tool sends a new email at once from the authenticated user's account, with attachments up to a combined 25MB. Once it runs, no draft review or undo step applies, so the message is out of the mailbox before anyone can intervene. Google warns that MCP servers can make non-reversible changes and that agents without human approval are open to prompt injection. Check whether your Workspace admin rules require user confirmation for sensitive actions, and whether the gmail.compose scope is needed for the use cases you approve.

send_message reference

reply and forward reach new recipients

The reply and forward tools move existing mail to recipients who were not on the original thread, so confidential content can leave the organization in one call. The effect is as hard to reverse as a send, and a user may not notice a forwarded copy in their Sent folder. Restrict this by limiting which accounts receive the agent, reviewing whether external domains are permitted, and asking Google and your Workspace administrators which admin controls can gate these actions.

MCP tool reference

create_filter hides or redirects mail

The create_filter tool needs the gmail.settings.basic scope and can add rules that forward, skip the inbox or auto-label incoming mail. A filter works silently after it is created, so a rule can divert future messages long after the session ends. Review the scope grant separately from the other scopes, and audit the filter list periodically. Only approve this tool for workflows that truly need mailbox rule changes.

Gmail MCP setup guide

trash_thread and trash_message delete in bulk

The trash_thread and trash_message tools move whole conversations or single messages to Trash. An agent working through a search result can clear a large batch in one run, so the damage scales with the query, not with the number of user confirmations. Trash is recoverable for a period, but users may not check it, and the effect on retention, legal hold and shared mailboxes needs review. Ask whether your admin can require approval for destructive actions, and confirm how recovery works in your own tenant.

mark_message_spam misroutes legitimate mail

The mark_message_spam tool moves messages into Spam, where they may be missed or auto-deleted under standard mail policies. An agent that misclassifies a supplier, customer or regulator message can cause loss of business mail without any visible error. Because it changes how Gmail learns from the mailbox, the impact can persist beyond one session. Limit this tool to read-only triage workflows, and tell users to review Spam for the period after an agent runs.

Drafts as a staging path

Draft management, which covers creating, editing and reading drafts, is lower risk because nothing is sent by itself. It still matters because a draft can be prepared by an agent, then sent later by a user or another tool, so drafts can carry injected content into a message a person trusts. Treat draft creation as a review point, and confirm whether your admin rules keep routine draft actions frictionless while sensitive sends prompt for confirmation.

Why prompt injection turns read access into send access

Read access to Gmail is not a passive permission. Google warns that MCP servers can make non-reversible changes and that agents running without human approval are vulnerable to prompt injection and insecure tool chaining. The risk is that text inside an inbound email, which the agent treats as data to summarize, can carry instructions the agent then follows using the tools it already holds. A granted agent with gmail.readonly alone cannot send, but an agent that also holds gmail.compose can create and send messages, so the scope set you approve determines how far a hijacked session can travel.

Consider an illustrative case, not a documented incident. An employee asks an agent to summarize a vendor thread. A hidden line in one message tells the agent to find every thread mentioning payroll, read it and forward the contents to an outside address. The agent runs search_threads, reads the messages and then calls forward. Each step looks routine on its own, and the send happens without the employee ever seeing the instruction. Because send_message delivers immediately from the user's account, there is no draft stage in which a person could catch it.

Two controls matter most. First, a read-only scope narrows this path: without gmail.compose or gmail.modify, the chain cannot end in a send, reply, forward or trash. Confirm which scopes your OAuth client actually requests and remove any that a use case does not need. Second, Workspace admins can set rules that prompt users to confirm sensitive actions in third-party AI tools, while routine actions such as creating a draft stay seamless. Confirm that such rules cover send, forward and trash for Gmail before approving broader scopes, and test them with a planted instruction in a sandbox mailbox.

Choosing scopes by use case

This posture fits agents that summarize threads, find messages or report on labels, and it requires only gmail.readonly. Google's guide says the Gmail MCP server can search threads, retrieve messages and drafts, and list labels and filters under read access. The reviewer should treat this as the lowest-risk option, but only if the consent screen shows no other Gmail scope.

  • Readable content: Thread search, message retrieval, draft retrieval, and listings of labels and filters.
  • Off limits: Sending, replying, forwarding, creating drafts, changing labels, trashing mail and creating filters.
  • Mail content exposure: The agent can see message bodies and attachments it retrieves, so the reader should decide whether that content can be passed to the model.
  • Scope creep check: A client that asks for gmail.compose or gmail.modify during setup has moved to a different posture, so reject the request or record the change.
  • Illustrative example: An agent that prepares a weekly list of unanswered threads needs only read access, so a consent screen listing anything else is a finding.

Confirm that the consent screen lists gmail.readonly alone and that the user cannot approve broader scopes later without a new review.

Where the official server leaves gaps for security teams

The official Gmail MCP server inherits the user's permissions, so the gaps below are mostly about what it does not document or enforce on its own. Each card names a gap and the control a security team can put in its place, from OAuth scope choices to Workspace admin rules and mailbox monitoring.

No documented per-tool allowlist

The Gmail MCP guide and tool reference describe what the server can do, but the sources reviewed here do not document a way to switch individual tools such as send_message, forward or trash_thread off inside the server itself. Confirm this with Google before approval. Until it is confirmed, treat the OAuth scopes granted to the client as the main limit: a client that holds gmail.modify can change far more than one that holds gmail.readonly.

MCP tool reference

IAM deny policies do not reach Gmail tools

Google's IAM deny policy documentation states that deny policies cannot control tools of non-Google Cloud MCP servers. A security team that expects a Cloud IAM rule to block send_message or create_filter will find no effect. The covering control is scope minimization: grant only the scopes the use case needs, and set limits through Workspace admin controls instead of Cloud IAM.

Read-write tool limits

Confirmation prompts depend on configuration

Google's Workspace post says admins can require users to confirm sensitive actions in third-party AI tools, while routine actions such as creating a draft run without friction. Whether a send or forward pauses for approval depends on the admin rule and on how the AI client handles tool calls. Ask the admin team to confirm which rule applies to the Gmail MCP server in your tenant and test a send from a pilot account.

Workspace admin policies

No documented read-only mode for the account

The supplied sources do not describe a switch that makes the whole Gmail MCP connection read-only. Because the server inherits the user's permissions, a connection that holds write-capable scopes can still send mail, change filters and move items to Trash. Limit the client to gmail.readonly where drafting and sending are not needed, and confirm with Google whether a read-only tool profile exists before promising one to users.

Monitoring mailbox changes

Google's guidance says MCP servers can make changes that cannot be reversed, and agents running without human approval are exposed to prompt injection. Mail that an agent sends, forwards or filters may leave no obvious trace for the user. Security teams should define alerts for new forwarding rules, new filters with delete or forward actions, and bursts of outbound mail from the connected account, and confirm which of these events appear in the admin audit logs they can reach.

Google AI security guidance

Community servers sit outside Google's docs

Google documents only the official remote server. Community and third-party Gmail MCP servers are not covered by its documentation, so their tools, scope requests and data handling cannot be checked against Google's controls. Use a client allowlist or an MCP gateway so that only the official endpoint is reachable, and require a documented review before any other Gmail connector is approved.

Official server setup

Sequence for approving the Gmail tool surface

This sequence turns the Gmail MCP tool list into an approved configuration: who gets access, which scopes each role holds, which send and filter actions need a human confirmation, how each risky tool behaves in a test mailbox, and when the approval must be reopened.

  1. Inventory clients and users needing access

    List every AI client that will reach Gmail through the official server, such as Claude or Google Antigravity, and the users or groups who will use each one. Record the business purpose for each pairing, and note whether any user needs to send or forward mail on someone else's behalf. Confirm with the vendor and your own environment which clients are supported on the official server. Done when every client-to-user pairing is written down and the security team has signed off on the list.

  2. Map the minimum scope set per role

    For each role on the inventory, select the narrowest OAuth scopes that cover the intended tasks. Google's guide lists gmail.readonly, gmail.compose and gmail.modify, plus gmail.settings.basic, which is needed only when create_filter is called. Justify each scope in writing, and exclude gmail.settings.basic from any role that does not manage filters. Done when a role-to-scope table exists and each grant has a stated reason.

  3. Classify each tool by action risk

    Sort the Gmail MCP tools into read, draft, and change groups. Mark send_message, reply, forward, create_filter, trash_thread, trash_message and mark_message_spam as risky, because they act on mail or mailbox settings and some actions cannot be reversed. Note that send_message sends immediately from the authenticated account. Done when every tool on the reference has a risk label reviewed by security.

  4. Configure admin confirmation rules for sensitive actions

    In the Workspace admin console, set rules that prompt users to confirm sensitive actions in third-party AI tools, covering send, forward and filter changes. Google's Workspace Updates post says routine actions such as creating a draft stay unprompted, so confirm the exact action names your edition supports before relying on them. Verify the settings in a test account by attempting each sensitive action and recording whether the prompt appears. Done when a dated screenshot or export shows each rule and a test result for each one.

  5. Test each risky tool in a pilot mailbox

    Create a pilot mailbox with no production mail and connect it through a test client. Run each risky tool once, including sending a message with an attachment, forwarding a thread, creating a filter, and trashing a thread. Confirm what the client displayed, whether a confirmation prompt appeared, what appeared in the sent or filter settings, and whether the action can be reversed. Done when a written test log records expected and observed behavior for every risky tool.

  6. Confirm controls that IAM deny policies cannot provide

    Check the limits of your controls before approval. Google's documentation says IAM deny policies cannot control tools of non-Google Cloud MCP servers, so Gmail tool limits depend on OAuth scopes and Workspace admin controls. Ask Google or your Workspace administrator which tool-level restrictions are available to you today, and record any tool you cannot block. Done when the approval record lists each tool that stays available and the compensating control for it.

  7. Set a re-review trigger for scope and tool changes

    Write the conditions that reopen this approval: a new scope request, a new or changed tool on the server, a new client, a change in admin confirmation rules, or a new user group. Assign an owner and record the review date in the change process. Google's Workspace Updates post describes general availability and tier changes, so include those announcements in the watch list. Done when a documented trigger list and named owner are attached to the approval record.

Evidence a security reviewer asks to see for mail tool limits

This table lists the evidence a reviewer should collect before approving Gmail MCP tool access, with the source for each item. Read it as a checklist: the scope and tool lists come from Google's documentation, the confirmation rules come from the Workspace admin console, and the send, forward, trash and filter results come from the reviewer's own test. An item missing from any column is a gap to close before approval.

Evidence itemWhat it showsWhere it comes fromWhat to confirm
Granted OAuth scope list per clientWhich of gmail.readonly, gmail.compose, gmail.modify and gmail.settings.basic each connected client holdsConsent screen and the client's token grant, checked against Google's Gmail MCP configuration guideEach client holds only the scopes its use case needs, and gmail.settings.basic is granted only where filter creation is approved
Tool list in useThe MCP tools the client can call, including send_message, reply, forward, create_filter, trash_thread, trash_message and mark_message_spamGoogle's Gmail MCP tool reference, compared with the tools the client actually lists at connectionThe list matches the reference, and each risky tool is mapped to an approved owner
Admin confirmation rulesWhich sensitive actions in third-party AI tools prompt the user to confirm before runningWorkspace admin console policy settings, as described in Google's November 2026 Workspace Updates postRules cover send and forward at minimum, and the admin can show the saved setting with its date and scope
Send test resultsWhether send_message delivers mail immediately without a prompt, and what the sender account and attachments look likeReviewer's own test in a non-production mailbox, using the send_message tool reference as the expected behaviorNo message leaves the account without the confirmation step the policy requires
Forward and reply test resultsWhether a prompt-injected instruction can cause the agent to forward a thread to an outside addressReviewer's own test with seeded mail containing instructions, recorded with the prompts and outputsThe agent refuses or requires approval, and the test log shows the attempt
Trash and spam test resultsWhether trash_thread, trash_message and mark_message_spam remove or move mail in bulk and whether the change is reversibleReviewer's own test on sample threads, with the Trash retention behavior checked in the mailboxDeletion is confined to the test threads and recovery from Trash is confirmed
Filter test resultsWhether create_filter can hide, forward or auto-trash future mail, and whether gmail.settings.basic is needed for itReviewer's own test that creates and removes a test filter, and the scope check from the consent screenFilter changes are blocked for clients that do not need them, or are reviewed on creation
Community server processWhether any unofficial Gmail MCP server is in use, who approved it, and what scopes it asked forInternal inventory and a written review; Google's documentation does not cover community serversNo community server connects to mail without a documented review, or it is removed from the approved list

Questions buyers ask before approving Gmail MCP access

Can we set up Gmail MCP access as read-only?

Partly, and the control comes from scope choice rather than from a switch in the server. The Gmail MCP guide lists gmail.readonly, gmail.compose and gmail.modify, plus gmail.settings.basic for create_filter. A grant limited to read-only scope should not be able to send, trash or change filters, but you should confirm with Google exactly which tools each scope unlocks before relying on that. Also confirm whether the consent screen lets a user grant a broader set than the one your policy allows, because that determines whether scope choice alone is enough.

Can we block sending email from the Gmail MCP server entirely?

It depends on which scopes are granted and on the Workspace admin rules you can apply, and the documentation we rely on does not settle it for every case. The send_message, reply and forward tools act from the authenticated user's account, so the most direct control is to withhold the scopes that enable them. Confirm with Google whether any tool can be disabled centrally by an admin, and whether a granted scope can be narrowed after consent. Test the result in a non-production mailbox before you tell approvers that sending is blocked.

Which Google Workspace edition or plan do we need for Gmail MCP?

The researched material for this page does not state plan or edition requirements for the Gmail MCP server, so confirm this with Google before budgeting. Ask Google which Workspace editions include the official server, whether it is available to every user in your domain, and whether any admin control depends on a particular edition. Google's Workspace Updates post on Workspace MCP servers describes a Standard usage tier at no cost with published rate limits and a Scaled tier for higher quota, so ask which tier your expected usage falls into and what that tier costs.

How long does an OAuth scope review for Gmail MCP usually take?

No duration is established in the sources for this page, so treat any timeline as something to confirm with your own approval board and with Google. The review usually moves faster when the request names the exact scopes, the tools each scope enables, the user group and the business purpose. Expect the largest delay when the request asks for gmail.modify or gmail.settings.basic alongside send tools, because those expand what an agent can change. Ask your security team to agree the scope list in writing before the pilot starts.

Who should test the Gmail MCP tool surface before rollout?

Your own security team can test it, and an outside tester can do so too. The test should cover what each granted scope allows, whether prompt injection in an email can trigger send, forward or trash tools, and whether a confirmation step is in place for sensitive actions. DeployOpen performs AI agent rollout security reviews. For this kind of review, DeployOpen tests the setup for prompt injection, tool and file permissions, data exposure, credential handling, SSO and admin settings, then delivers a findings report with fixes and a retest. Google's guidance on MCP servers notes that agents running without human approval are vulnerable to prompt injection and insecure tool chaining, so the test should include mail content from outside your organization.

What can DeployOpen do for a Gmail MCP rollout?

DeployOpen can test the Gmail MCP setup, deliver a findings report with fixes and a retest, and help prepare the evidence your review board asks for. The scope of any engagement is agreed in writing before work starts, and most engagements are fixed-scope. DeployOpen does not publish a price list, so a quote follows from the agreed scope. DeployOpen does not configure Google Workspace admin policy on your behalf as a Google partner, and it does not issue audit reports or certifications. Ask for a written scope that names the scopes, tools and user groups to be tested.

Does Google's admin tool approval stop routine drafting from being blocked?

Google's Workspace Updates post says admins can set rules that prompt users to confirm sensitive actions in third-party AI tools, while routine actions such as creating a draft stay seamless. That means you can keep drafting available and place a confirmation step on sending or trashing. Confirm with Google which Gmail tools fall under those sensitive-action rules, because the post does not list them. Test that a send attempt actually prompts a user before you rely on it in a policy document.

How DeployOpen works on this

DeployOpen reviews the Gmail agent setup your organization actually runs, checking the OAuth scopes granted, the tools an agent can call and the admin rules that govern them. The work runs as a fixed-scope engagement before rollout, after rollout, or both, with fixes and a retest.

How we scope

  • Inventory the OAuth scopes each AI client requests, including whether gmail.settings.basic is granted for filter tools
  • Map which official Gmail MCP tools each client can reach, such as send, forward and trash
  • Agree the written scope, deliverables and timeline with your security and IT owners before testing starts

How we build

  • Test whether a prompt injected through email content can trigger send, forward or filter changes
  • Check that routine actions like draft creation stay separate from sensitive actions that need confirmation
  • Review how the Workspace admin rules for third-party AI tools are configured for each user group

How we hand over

  • Deliver a findings report with each risky tool, the scope behind it and a recommended restriction
  • Document a target scope and tool allowlist your administrators can apply and audit
  • Retest after fixes are applied and record which findings are closed and which remain open

How we support

  • Offer ongoing support as a retainer to recheck scopes when Google or your clients change the tool surface
  • Repeat continuous testing as new agents and MCP clients are approved for Gmail access
  • Confirm with Google and your Workspace admins which controls apply to your edition before relying on them

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.