Google Drive MCP server security

Google's official Drive MCP server is a remote, OAuth-based server that inherits the user's Drive permissions, so security depends on which tools you allow, which scopes you grant and which Google Cloud controls you add around it.

On this page

Does the Google Drive MCP server meet our security requirements?

A team that wants AI agents reading and editing Drive should start from one fact: the Google Drive MCP server is Google's official remote server, authenticated with OAuth 2.0, and the tool-level and governance controls it documents (IAM policies, Model Armor, Cloud Audit Logs) are Google Cloud features that your organization must configure. The agent does not get a narrower permission set by default. Google says the server lets agents inherit the same permissions and data governance controls as the user, so an agent acting for someone who can open a folder can also reach it unless you constrain the connection.

The Drive guide asks you to add the drive.readonly and drive.file scopes, and the reference lists 15 tools, several of which change data: create_file, copy_file, update_file, upload_file_revision, trash_file and request_access. Google's AI security guidance warns that MCP servers can make non-reversible changes and that autonomous agents are exposed to prompt injection and insecure tool chaining. Your reviewers should decide which tools stay available, confirm that agent OAuth clients carry the 'Use this client for an AI-powered agent' setting in Google Auth Platform, and confirm who can register those clients.

The gaps sit in what the vendor does not hand you as a default. Tool allowlisting, IAM restrictions and deny policies are your job to set, and you should confirm with Google which of these apply to your Workspace edition and Cloud project. Model Armor screening of prompts and responses is also your decision, or a documented alternative of your own. Before rollout, ask for written answers on logging coverage for Drive tool calls, then test read-only and write tools with a prompt injection case in a non-production shared drive.

Drive MCP server security capabilities by plan or option

This table compares each security control for Google's Drive MCP server by whether it is built in, limited to a paid edition, or depends on an outside component or a point to confirm with Google. Read the middle columns first, then check the last column before approving access. The main takeaway is that sign-in and tool scopes come from the Drive server itself, while screening, IAM restriction and logging depend on Google Cloud and your own controls.

CapabilityBuilt inPaid edition onlyOutside component or to confirm
OAuth 2.0 sign-inOAuth 2.0 handles authentication and authorization, and agents inherit the user's permissionsTo confirm with Google whether any Workspace edition restricts the serverAgent OAuth client needs 'Use this client for an AI-powered agent' selected in Google Auth Platform
drive.readonly and drive.file scopesThe Drive guide tells you to add both scopes for the serverTo confirm with Google scope availability by Workspace editionConsent and client configuration in Google Auth Platform
Read tools (9 of 15)Read content, metadata, permissions, revisions, search and shared drive listingsTo confirm with GoogleFile sharing and permissions still decide what each user can see
Change tools (6 of 15)Create, copy, update, trash and upload revisions, plus request accessTo confirm with GoogleGoogle warns MCP changes can be non-reversible, so plan backups and approvals
IAM policy and deny policyA Google Cloud control, not a Drive setting described in the Drive guideTo confirm whether a Google Cloud billing account is requiredIAM roles and a deny policy blocking read-write tool use on production resources
Model ArmorNot built in to the Drive server; Google says to screen prompts and responsesModel Armor is a Google Cloud service; confirm its pricing with GoogleModel Armor or your own documented screening solution
Cloud Audit LogsGoogle lists audit logs as a governance feature of its remote MCP serversTo confirm which log types and retention applyGoogle Cloud project logging; confirm Drive MCP calls appear in it
Cloud Monitoring and Cloud TraceGoogle lists both as observability features of its remote MCP serversTo confirm whether either is a paid feature for this serverGoogle Cloud project; confirm coverage of Drive MCP tool calls
Claude client planNot included; Claude.ai and Claude Desktop need a plan to connectClaude Enterprise, Pro, Max or Team plan requiredConfirm plan terms for other clients, such as Antigravity, with Google and the vendor

What the agent can read and change in Drive

The Drive MCP server exposes 15 tools, and the first decision is which of them your agents may call at all. Nine are read-oriented: search_files, list_recent_files, get_file_metadata, read_file_content, download_file_content, get_file_permissions, list_file_revisions, list_shared_drives and get_shared_drive_metadata. Two more, request_access and the list_ and metadata calls, reveal who holds access to what, which matters for data exposure even though nothing is written. Reading is still a disclosure risk: an agent that can search and read content can surface any file the signed-in user can open, because the server is built to let agents inherit the user's permissions. Confirm with your Workspace administrator which shared drives and sensitive folders the user account can already reach, since the agent will see the same set.

Six tools change data: create_file, copy_file, update_file, trash_file, upload_file_revision and, in the change group, request_access, which asks a file owner for access on the user's behalf. Google's AI security guidance states that MCP servers can make non-reversible changes, so a write cannot be assumed to be undoable from the agent side. The highest-risk tools are trash_file and upload_file_revision. Trashing removes a file from its users' view and can disrupt shared work, and an uploaded revision replaces content in a file that others may depend on, with the earlier version reachable only through revision history if it has not been purged. Before rollout, decide whether these two tools are blocked for every client, and verify with a test account that revision history and trash recovery behave as your retention policy expects.

How an agent request reaches Drive through OAuth, IAM and Model Armor

The flow starts with a user consenting in Google Auth Platform, which issues an OAuth token to the AI client. The client then calls the remote Drive MCP endpoint, where the tool list, IAM and deny policies, and Model Armor screening of prompts and responses apply before the Drive API returns file data. Cloud Audit Logs record the call. Check each hand-off: which tools the client exposes, which scopes were granted, whether a deny policy covers write tools, and whether Model Armor is enabled for this path (confirm with Google for your setup).

Request path from user consent through policy checks to Drive, with audit logging.

Which tools carry the most risk and why

The Drive MCP server exposes 15 tools, and they fall into a few groups with different failure modes. Some change or delete content, some spread copies or open sharing, and some move file content to the model. Review each group against the permissions your users already hold, because the agent inherits them.

Trash and recovery

The trash_file tool moves a file to trash. Recovery depends on whether Drive trash retention applies to that file, so confirm the retention behavior for your Workspace edition and for shared drives before relying on it. Treat trash as recoverable only after you have tested a restore. Ask whether your admins can restrict who can trash files, and whether deletions appear in your audit logs so you can trace an agent-driven trash to a specific session.

Drive MCP reference

Overwriting content

The update_file and upload_file_revision tools change what a file contains. An upload of a new revision replaces the visible content for everyone with access, and Google's AI security guidance warns that MCP servers can make changes that cannot be reversed. Ask whether revision history is kept for your files and how long you can roll back. Limit these tools to users who need them, and require that the agent only edit files in a named folder or shared drive.

Copies and new files

The copy_file and create_file tools spread content. A copy can land in a folder with looser sharing than the source, and a new file can carry sensitive text into a location that was never reviewed. Check the default owner and sharing of copies made in shared drives. Ask whether your DLP rules and sharing policies apply to files the agent creates, and whether the agent can write into folders that holds regulated data.

Permission reads and access requests

The get_file_permissions tool reveals who can see a file, and request_access lets the agent ask for access on the user's behalf. Together they expose the sharing graph of your Drive. Confirm that request_access only generates a request to the file owner and does not grant access by itself in your setup. Review whether the agent should be able to map permissions at all, since that information helps an attacker choose targets.

Content sent to the model

The read_file_content and download_file_content tools move document text or file bytes into the AI client and, from there, to the model provider. This is where prompt injection can enter, because a document can contain instructions that the agent follows. Screen responses with Model Armor or your own documented control, and confirm which model provider and retention terms apply to the client you approve. Restrict reads to folders that the use case needs.

Workspace MCP security

How the answer changes by identity provider, client and data class

Google's Drive MCP server does not create a separate permission model for the agent. The agent acts through the OAuth grant of the signed-in user, so what it can read or change follows that person's existing Drive access. The identity setup sets the baseline, and central controls decide how far an agent can go beyond it. Confirm with Google which account types are covered before you approve use outside managed Workspace accounts.

  • Inherited access: Google documents that agents inherit the same permissions and data governance controls as the user, so anyone who can open a restricted folder can also ask the agent to read it.
  • Sign-in as the control point: Each person authorizes the agent with their own account, so offboarding should remove both the account and any active grant. Verify that in your own tenant.
  • Central client decisions: Decide in advance which OAuth clients may be used for sensitive data, since individual users should not choose clients for those files on their own.
  • Accounts outside your tenant: Personal or unmanaged identities sit outside your admin controls, so confirm how they are blocked or allowed before rollout.

Check whether every user who can connect the agent holds a managed account, and whether your offboarding process revokes the agent's access along with the account.

How to lock down the server with Model Armor, IAM and tool allowlists

Start with the tool list, because it is the only layer that decides what the agent can even attempt. The Drive MCP reference lists 15 tools, including create_file, update_file, upload_file_revision, copy_file, trash_file and request_access, alongside read tools such as search_files, read_file_content and get_file_permissions. Review that list against the job the agent is meant to do, then allow only the tools that job requires in your client's tool allowlist. Google's AI security guidance recommends exactly this: review the tools your agent can reach, allow specific tools only, and confirm the list again after any client update. Confirm with Google and your AI client vendor how each client applies allowlists and whether that setting is enforced by an admin or left to the user.

Next, restrict the identity the agent acts through. Google says agents inherit the same permissions and data governance controls as the user, so the user's Drive sharing is the first boundary. Use IAM policies to limit what the connected identity can reach, and use a deny policy to block read-write tool access to production-tied resources. Google's guidance is explicit on this point, and it matters most for Shared drives that hold operational or regulated records, where a single write-capable tool call can be irreversible. Keep the OAuth scopes at drive.readonly and drive.file where the task allows, and treat any move toward broader access as a documented decision.

Finally, screen what goes in and what comes back. Google's MCP security page says prompts and responses must be checked for malicious content or prompt injection, and that Model Armor or your own documented solution can do this. This is the control that addresses hostile text inside a document that tries to steer the agent into a trash_file call. Google's AI security page warns that fully autonomous agents are exposed to prompt injection and insecure tool chaining, where one tool's output drives another tool's write. Keep a human approval step on write and permission-changing tools, and ask your security team to test a document containing injected instructions before rollout. Model Armor's configuration and coverage for Drive responses should be confirmed in your own project.

Where the Drive MCP server leaves gaps for security teams

The Drive MCP server inherits the signed-in user's access, so the tool's controls only narrow what an agent can do, not what it can see. The cards below cover the gaps that remain after the scopes, IAM and tool allowlists are in place, and the checks a reviewer should run before approving the connection.

Inherited user permissions expose over-shared files

Google says agents inherit the same permissions and data governance controls as the user. An agent acting for an employee can therefore reach any file that employee can open, including files shared broadly through link sharing or old folder grants. Reviewers should audit sharing settings on high-value shared drives before rollout, because the agent will not flag files that are technically accessible. Ask which sharing defaults and external sharing rules apply to the accounts that will connect.

Drive MCP guide

Read scopes still reach everything the user opens

The guide tells you to add drive.readonly and drive.file. Even a read-only scope lets the agent read the content of any file the user can open, and drive.file limits access to files the app has opened or created. Neither scope limits which files are sensitive. Treat read access as data exposure, and check whether the content read by read_file_content or download_file_content leaves your environment on the way to the model.

Model Armor is a separate component to configure

Google's guidance says to screen prompts and responses for malicious content or prompt injection, and names Model Armor or your own documented solution. Model Armor is a Google Cloud component, so it needs its own project setup, templates and IAM before it screens anything. Confirm whether it is enabled for the Drive MCP traffic in your environment, which template applies, and who owns its configuration and alerts.

Tool allowlist enforcement sits with the client

Google recommends allowing only specific tools and restricting permissions with IAM, but the allowlist is applied by the AI client you connect. Reviewers must confirm how each client, such as Claude Desktop or Antigravity, stores and enforces the allowlist, whether users can edit it, and whether it applies to every workspace. Test that a blocked tool such as trash_file cannot run from a user-level configuration.

Audit detail depends on Cloud Audit Logs setup

Google Cloud lists Cloud Audit Logs, Cloud Monitoring and Cloud Trace as the observability features for its remote MCP servers. Whether you can tell which agent action changed which file depends on those logs being enabled and routed to a store your security team reviews. Confirm log types, retention and who can read them, and test that a trashed file or a new revision appears in the log with the acting identity.

Prompt injection and irreversible changes remain

Google warns that MCP servers can make non-reversible changes and that autonomous agents are exposed to prompt injection and insecure tool chaining. Screening lowers the risk but does not remove it, because a document the agent reads can still steer later tool calls such as update_file or upload_file_revision. Require a human approval step for write tools in your policy, and include Drive content from outside the organization in your red team tests.

AI security guidance

Rollout order for a Drive MCP server approval

This sequence moves the Drive MCP server from a vendor endpoint to a supervised pilot, with each control checked before the next one is turned on. The output is a documented approval record that security and IT can review before any staff member connects an agent.

  1. Confirm the Google Cloud project and IAM ownership

    The cloud or identity administrator confirms which Google Cloud project will hold the OAuth client and the MCP configuration, and who holds owner and editor roles on it. Review that the people with project control are the same people accountable for the Drive data the agent will reach. The step is done when the project owner list is written down and approved by the security owner, and no one outside that list can change the client settings.

  2. Restrict the OAuth client to the agent setting

    The Google Workspace administrator or project owner checks that the OAuth client used for the Drive MCP server has the setting 'Use this client for an AI-powered agent' selected in Google Auth Platform. Confirm that clients meant for other applications are not reused for the agent, so the agent cannot inherit an unrelated grant. The step is done when a screenshot or export of the client configuration is filed with the approval record.

  3. Define the tool allowlist with read-only first

    The security reviewer lists the 15 tools in the Drive MCP reference and marks each one as allowed, blocked or held for later review. Start the pilot with read tools such as search, metadata, permissions and content reads, and keep tools that copy, create, update, trash, upload revisions or request access disabled until the read path is tested. The step is done when the allowlist is approved and the client is configured to expose only the approved tools.

  4. Enable Model Armor screening

    The security team turns on Model Armor, or documents another screening solution, to inspect prompts and responses for malicious content and prompt injection. Test the screening with sample documents that contain embedded instructions, using files that the test team owns, and confirm the flagged results reach the team that reviews them. The step is done when the test results show the screening catches the planted instructions and the owner of alerts is named.

  5. Verify Cloud Audit Logs capture tool calls

    The logging owner confirms that Cloud Audit Logs record the tool calls made through the server and that the entries identify the user, the tool and the time. Run a few approved test calls and find them in the log store, then confirm the retention period meets the organization's policy. The step is done when a test call is traceable end to end and the log destination and retention are recorded in the approval.

  6. Pilot with a limited user group

    The IT owner selects a small named group of users whose Drive content is low risk, and the security owner reviews usage in the logs at agreed checkpoints before any expansion. Each pilot user confirms the sharing permissions of their files still apply to the agent. The step is done when the pilot findings, including any blocked calls, unexpected tool use and screening alerts, are documented and the decision to expand or stop is signed off.

Evidence a security reviewer asks for and where it comes from

This table lists the evidence a reviewer should request before approving the Drive MCP server, what each artifact proves, and where it is produced in Google Cloud or the AI client. Use it as a request list: an item that cannot be produced or exported is a gap to close before rollout, not a detail to accept on trust.

Evidence itemWhat it provesWhere it is produced
OAuth client configuration and consentWhich OAuth client the agent uses, whether it has the AI-powered agent setting selected, and which users consented to itGoogle Auth Platform in the Google Cloud project, plus the consent records for each user account
Granted scopesWhether the client asks only for drive.readonly and drive.file, or has been widened to broader Drive accessThe OAuth client's configured scopes in Google Auth Platform and the scopes shown on each user's consent screen
Tool allowlist settings in the AI clientWhich of the 15 Drive MCP tools the client may call, and whether write tools such as trash_file or update_file are blockedThe MCP or tool permission settings in the AI client, which must be exported or screenshotted from the admin or user configuration
IAM and deny policy exportsWhich principals can use the MCP server and whether a deny policy blocks write-capable tool access to protected resourcesIAM policy and deny policy configuration in the Google Cloud project, exported as policy documents
Model Armor configurationWhether prompts and responses are screened for prompt injection and malicious content, and which templates applyModel Armor templates and their attachment to the MCP traffic path in Google Cloud, or the documented alternative solution the organization runs
Cloud Audit Logs exportWhich tool calls, identities and resources were touched during a given period, so write activity can be tracedCloud Audit Logs in Google Cloud, exported to a log sink the security team controls
List of users approvedWho is authorized to use the Drive MCP server and whether that list matches the consented accounts and log entriesThe organization's own access register, reconciled against OAuth consent records and Cloud Audit Logs

Questions buyers ask before approving the Drive MCP server

Can Google's Drive MCP server be restricted to read-only access?

No single read-only switch is described in the Drive MCP documentation we can point you to, so confirm with Google before approval whether the server can be limited to read access. In practice, read-only means controlling what the agent can call. The reference lists 15 tools, and several change data: create_file, update_file, copy_file, trash_file, upload_file_revision and request_access. Build an allowlist in the AI client that permits only read tools such as search_files, get_file_metadata, read_file_content, download_file_content and get_file_permissions. Then check the OAuth scopes. The guide has you add drive.readonly and drive.file, so ask Google whether drive.readonly alone still supports the tools you need. Test the allowlist, because you need to confirm the client enforces it as you expect. Google's AI security and safety guidance recommends allowing only specific tools.

What does Model Armor add to the Drive MCP server, and does it cost extra?

Model Armor screens prompts and responses for malicious content and prompt injection. Google's MCP security guidance says you must screen this traffic, and it lists Model Armor or your own documented solution as options. Model Armor does not decide which tools an agent may call, so keep the tool allowlist and IAM controls in place alongside it. Our sources do not give Model Armor pricing, so ask Google for current pricing and billing terms, and confirm whether charges apply to your Drive MCP traffic in your Google Cloud project. Cost drivers to ask about include the volume of screened requests and whether you rely on Model Armor, your own solution, or both. Any fee would be paid to Google, not to DeployOpen. Get the pricing in writing before you budget for it.

Does DeployOpen configure the Drive MCP server, or does the customer?

Your team makes the configuration changes, and DeployOpen's documented role is testing and reporting. Google hosts the Drive MCP server on its own infrastructure, so the settings that matter sit in your Google Cloud project, OAuth client, Google Auth Platform configuration, IAM bindings and Workspace admin controls, along with the AI client connection. In an AI agent rollout security review, DeployOpen tests prompt injection, tool and file permissions, data exposure, credential handling, and SSO and admin settings. It then delivers a findings report with fixes and a retest. Whether DeployOpen also makes configuration changes depends on the scope agreed in writing before work starts. Ask for a written list of which steps DeployOpen performs and which steps your staff perform.

How long does a Drive MCP server security review take?

Timing follows the scope agreed in writing before work starts, and this page does not quote a fixed duration. The main drivers are the number of AI clients and users, how many of the 15 Drive tools you plan to enable, whether the review covers only Drive or also other Workspace MCP servers, and how many Google Cloud projects and OAuth clients exist. Your side also sets the pace: test accounts, admin access, and the time your teams need to approve and apply fixes. The written scope should state the deliverables, the timeline, what your staff must provide, and when the retest happens. Ask for those items in the proposal so you can compare options on the same terms.

Can staff connect AI agents to Google Drive with personal accounts?

Confirm with Google before approval whether the Drive MCP server and its admin controls apply to personal Google accounts. Google says agents inherit the same permissions and data governance controls as the user, so an agent on a personal account reaches whatever that account can reach. Your company's admin policy may not follow the agent into a personal account, so check that before you allow it. The Drive MCP setup guide also says Claude.ai or Claude Desktop needs a Claude Enterprise, Pro, Max or Team plan, so confirm which account and plan each person uses. A practical control is to require company Workspace accounts for the connection, block personal accounts through your identity and endpoint policies, and test that the block holds.

Does a Drive MCP server change need a new security retest?

Yes, retest after any change to the tool list, OAuth scopes, IAM bindings or AI client settings, because each one changes what an agent can do. The Drive MCP reference lists 15 tools, and the risk follows whichever of them are enabled. Google's security guidance says to review the tool list your agent can access, so a newly enabled tool, a broader scope or a new AI client each counts as a change. DeployOpen's AI agent rollout review includes a retest of fixes, which is the point where a changed setup is checked again. Ask that the retest be written into the scope and that it repeat the test cases that found the original issues. Your own change control should also require a tool list review whenever Google documents new tools.

Primary sources to check each Drive MCP security claim against

Before you approve the Google Drive MCP server, check each security claim against the primary source that makes it. The MCP Reference: drivemcp.googleapis.com is the page to read for the tool list, since it names the 15 tools the server exposes, including trash_file, update_file, upload_file_revision and request_access. Use it to build your allowlist from the exact tool names rather than from marketing summaries, and to confirm that write tools are part of the surface you are approving.

The Configure the Google Drive MCP server guide proves what the agent is granted. It lists the OAuth scopes you add, drive.readonly and drive.file, and explains that agent OAuth clients need the "Use this client for an AI-powered agent" setting selected in Google Auth Platform. Confirm with your Google Workspace administrator which scopes the client actually requests, and whether that matches the access your policy allows. The same guide states that agents inherit the user's permissions, so the user's own sharing model is part of your risk.

The AI security and safety page proves the risk model. It warns that MCP servers can make non-reversible changes and that fully autonomous agents are exposed to prompt injection and insecure tool chaining. It also recommends reviewing the tool list, allowing only specific tools, restricting permissions with IAM, and using a deny policy to block read-write access to production resources. Treat those recommendations as the baseline your own controls must meet. The Configure security for Google Workspace MCP servers page proves the screening obligation: it says prompts and responses must be checked for malicious content or prompt injection, and that Model Armor or your own documented solution can do this. Ask the vendor to confirm in writing which screening option your tenant uses.

How DeployOpen tests and governs a Drive MCP server rollout

DeployOpen approaches Google Drive MCP server security as a fixed-scope engagement that covers the agent, its OAuth client, the tool allowlist and the IAM and screening controls around it. Testing and documentation are delivered in writing, so your security and compliance reviewers can check each control against evidence from your own environment.

How we scope

  • Agree in writing which agents, clients and Workspace accounts are in scope for the Drive MCP server
  • Record which of the 15 Drive tools are needed and which write or trash tools must be excluded
  • Define the test scenarios, including prompt injection against files and shared content
  • Confirm which Google Cloud projects, IAM roles and admin settings the review will examine

How we build

  • Review the OAuth client, the agent setting in Google Auth Platform and the drive.readonly and drive.file scope choices
  • Configure the tool allowlist, IAM restrictions and deny policy for production-linked resources in your environment
  • Set up screening of prompts and responses with Model Armor or your documented alternative
  • Test prompt injection, tool chaining and unintended file changes against the configured setup

How we hand over

  • Deliver a findings report with severity, evidence and a specific fix for each issue found
  • Document the approved tool list, scopes, IAM bindings and logging settings as reviewable evidence
  • Provide a written runbook for admins covering rollout, user onboarding and change control
  • Retest the fixed setup and record the results before the engagement closes

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Retainer work can re-review the tool list when Google adds or changes Drive MCP tools
  • Support can extend to the related Drive MCP enterprise setup and data privacy reviews

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.