Google Drive MCP
MCP server by piotr-agier Community
Connects MCP clients to Google Drive, Docs, Sheets, Slides, and Calendar through one self-hosted server. Built for users who want to search, organize, and edit Workspace files while keeping control of their Google credentials.
Install Google Drive MCP
Built from the published package, never by AI.
claude mcp add google-drive-mcp -e GOOGLE_DRIVE_OAUTH_CREDENTIALS=YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS -- npx -y @piotr-agier/google-drive-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"google-drive-mcp": {
"env": {
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS"
},
"args": [
"-y",
"@piotr-agier/google-drive-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"google-drive-mcp": {
"env": {
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS"
},
"args": [
"-y",
"@piotr-agier/google-drive-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"google-drive-mcp": {
"env": {
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS"
},
"args": [
"-y",
"@piotr-agier/google-drive-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add google-drive-mcp --env GOOGLE_DRIVE_OAUTH_CREDENTIALS=YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS -- npx -y @piotr-agier/google-drive-mcp{
"mcpServers": {
"google-drive-mcp": {
"env": {
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS"
},
"args": [
"-y",
"@piotr-agier/google-drive-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add google-drive-mcp npx -y @piotr-agier/google-drive-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-drive-mcp block.
About
Google Drive MCP is a self-hosted MCP server that connects an MCP client to Google Drive, Docs, Sheets, Slides, and Calendar. It provides 131 tools for file management, Shared Drives, permissions, revisions, Docs editing, Sheets formatting, Slides authoring, and Calendar events. Users can search and organize files, create and edit Workspace content, and manage sharing.
The server runs over stdio for desktop clients or Streamable HTTP for hosted and team use. Local OAuth supports multiple Google accounts with per-tool account selection, and service accounts and externally managed OAuth tokens are also supported. Credentials and tokens stay in the environment the user operates. It suits people who want deep Drive and editor workflows with control over their Google identity.
Written from the project's README and checked against it.
Tools it gives your assistant
authGetStatusReports which Google account is currently active.Drive file managementSearch, organize, and move files, including Shared Drives and permissions.Docs editingRich editing of Google Docs content, including comments and formatting.Sheets formattingCreate and format Google Sheets content.Slides authoringCreate Google Slides presentations from content.Calendar eventsCreate Calendar events, such as ones with a Google Meet link.
What you need
- A Google account
- A Google Cloud project with Drive, Docs, Sheets, Slides, and Calendar APIs enabled
- Google OAuth client credentials (Desktop app)
- npx (Node.js) to run the server
| Setting | Needed | What it is |
|---|---|---|
GOOGLE_Environment variable, secret | Required | Path to a Google OAuth 2.0 Desktop app credentials JSON file. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search my Google Drive for files modified in the last seven days.
- Find PDF files in /Reports and move files older than one year into Archive.
- Create a Calendar event with a Google Meet link and attach the project brief.
Good to know
- Focused on deep Drive and editor workflows, not every Google Workspace API.
- Claude Desktop and Gemini CLI use stdio with local OAuth.
- claude.ai custom connectors require Streamable HTTP in team mode.
- Keep the HTTP bind address on 127.0.0.1 unless protected by TLS and access control.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Google Drive MCP
All alternatives →Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.
Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.
Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.
Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.
Compare with MR Office, kordoc or Desktop Commander
Google Drive MCP: common questions
Which MCP clients does Google Drive MCP work with?
Claude Desktop and Gemini CLI work over stdio with local OAuth. claude.ai custom connectors work over Streamable HTTP in team mode.
Does it support service accounts?
Yes. The source says service accounts and externally managed OAuth tokens are supported alongside local OAuth.
Where are the OAuth tokens stored?
By default they are stored at ~/.config/google-drive-mcp/tokens.json. The source says tokens and credentials should never be committed to a repository.
How do I install Google Drive MCP?
In Claude Code run claude mcp add google-drive-mcp -e GOOGLE_DRIVE_OAUTH_CREDENTIALS=YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS -- npx -y @piotr-agier/google-drive-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Google Drive MCP the official server?
Google Drive MCP is a community project by piotr-agier, not verified by a company domain.
Is Google Drive MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Google Drive MCP safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Google Drive MCP?
Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.
Does Google Drive MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
