Google Drive MCP
Lets your AI agent search and edit Google Drive, Docs, Sheets, Slides and Calendar with your account.
236 stars on GitHubby piotr-agierLicense MITUpdated last month
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add google-drive -e GOOGLE_DRIVE_OAUTH_CREDENTIALS="<your value>" -- npx -y @piotr-agier/google-drive-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
GOOGLE_DRIVE_OAUTH_CREDENTIALS | Path to a Google OAuth 2.0 Desktop app credentials JSON file. | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Find PDF files in /Reports and move the ones older than a year into an Archive folder.
Create a Google Sheet for monthly results and summarize it in a Doc.
What it is
This self-hosted server connects an MCP client to Google Drive, Docs, Sheets, Slides and Calendar. It has 130 tools to search and organize files, edit documents, format spreadsheets, build slides, manage sharing and create calendar events. Credentials and tokens stay in your own environment.
What it can do
- Search, create, move and organize Drive files and Shared Drives
- Edit Google Docs and add comments
- Format Google Sheets
- Build Google Slides
- Manage sharing, permissions and revisions
- Create Calendar events with Google Meet links
authGetStatus: show which Google account is active
When to use
- βΊWhen you want an AI to organize or archive old files in Drive
- βΊWhen you want a Sheet, a summary Doc and a Slides deck built from one request
- βΊWhen you want a document edited and a comment added
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
google-drive-sheetsHelps your agent find, read, export, edit and organize your Google Drive, Docs, Sheets and Slides files once Google is connected.google-workspace-opsOperates with Google Workspace documents (Drive, Docs, Sheets, Slides) as a unified workflow. It makes it easy to find, summarize, and edit your files without leaving the tool.gogLets your agent read and manage Gmail, Google Calendar, Drive, Contacts, Sheets, and Docs through the gog command line tool.Frequently asked questions
Is it free and open source?
Yes, it is MIT licensed, and you use your own Google Cloud project.
Which Google account is used?
Yours. Local OAuth supports multiple accounts; service accounts and external tokens are also supported.
Where are tokens stored?
By default at ~/.config/google-drive-mcp/tokens.json. Never commit this file.
Can I use it with claude.ai?
Yes, through Streamable HTTP in team mode as a custom connector.
Is team mode secure?
It authenticates every request as its caller. The team-store.json file holds refresh tokens, so treat it as a secret.
How do I test it?
Ask the client to run authGetStatus, then try a read-only Drive search.
If it does not work
- βΊCheck that the Google Drive, Docs, Sheets, Slides and Calendar APIs are enabled and your account is a test user.
- βΊIf the account is wrong, run authGetStatus and re-run the auth command.
- βΊSee docs/troubleshooting.md for authentication, API and rate-limit problems.
5 new skills a week. 1 minute to read.