Is the Google Drive MCP server safe? What it can reach
What the Google Drive MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Google runs an official remote MCP server for Drive at drivemcp.googleapis.com. It signs in with OAuth 2.0 and acts with your Drive rights. The documented tools search, read, download, copy and create files and upload new file revisions, and none deletes. The key control is the OAuth scope you grant, drive.readonly or drive.file.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Google Drive remote MCP server | Official | active |
It runs as a hosted remote server. The documented endpoint is https://drivemcp.googleapis.com/mcp/v1.
How it signs in
OAuth 2.0 with a client you create in your own Google Cloud project, marked for use by an AI-powered agent. The agent inherits your Drive permissions and your organization’s data governance controls.
| Scope or permission | Access |
|---|---|
https://www.googleapis.com/auth/drive.readonly | read |
https://www.googleapis.com/auth/drive.file | write |
What its tools can do
| Kind | Tools |
|---|---|
| Read | search_files, list_recent_files, get_file_metadata, get_file_permissions, read_file_content, download_file_content |
| Write | create_file, copy_file, upload_file_revision |
| Can’t be undone | none documented |
Source: Google’s MCP reference for drivemcp.googleapis.com, which lists tool names only. Google’s Workspace guide warns that AI applications with Workspace MCP tools can read, modify and delete data in a Google Account, so check the live tools/list response for changes.
Built-in limits
| Option | What it does |
|---|---|
OAuth scope choice | Google’s setup lists both drive.readonly and drive.file. Google doesn’t say which tool needs which scope, so grant only drive.readonly if you want reading only, and test that writes fail. |
Enable only what you need | Custom setups can turn on specific APIs, MCP services and OAuth scopes in your Cloud project. |
Internal audience | Set the OAuth consent audience to Internal where possible. External audiences need named test users. |
Admin OAuth logs | Workspace admins can review OAuth log events in the security investigation tool. |
Model Armor | Google suggests screening prompts and responses with Model Armor or a documented custom solution. |
The risks
- Documents in your Drive can hold hidden instructions, and Google’s docs warn of indirect prompt injection that makes an agent read, modify or delete data.
- read_file_content and download_file_content pass whole documents into the model, so anything you can open can reach your AI provider.
- create_file and copy_file add content to your Drive, and copies keep the content of the source file.
- get_file_permissions shows who has access to a file, so sharing details of private documents can be revealed to the agent.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http google-drive https://drivemcp.googleapis.com/mcp/v1Claude Code names MCP tools mcp__google-drive__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"ask": [
"mcp__google-drive__create_file",
"mcp__google-drive__copy_file",
"mcp__google-drive__download_file_content",
"mcp__google-drive__upload_file_revision"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.google-drive]
url = "https://drivemcp.googleapis.com/mcp/v1"Checklist
- Start with the drive.readonly scope.
- Use an Internal OAuth audience if you are on Workspace.
- Do not point the agent at documents from unverified senders.
- Review each create or copy call before it runs.
- Revoke the OAuth grant in your Google Account when you are done.
Checked against the vendor documentation on November 25, 2026. Configure the Google Drive MCP server · MCP Reference: drivemcp.googleapis.com · Configure the Google Workspace MCP servers
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing