Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyData and databases

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

NameWhat it isRequired
GOOGLE_DRIVE_OAUTH_CREDENTIALSPath 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

Node.js, a Google Cloud project with the Drive, Docs, Sheets, Slides and Calendar APIs enabled, and a Desktop OAuth client saved as gcp-oauth.keys.json. Then run npx -y @piotr-agier/google-drive-mcp auth.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.