Google Drive MCP server

Productivity and workflow

Secure access to Google Drive, Docs, Sheets, Slides, and Calendar through MCP.

Your AI app calls the Google Drive MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Google Drive

Google Drive is a community MCP server from piotr-agier, filed in our directory under productivity and workflow. Secure access to Google Drive, Docs, Sheets, Slides, and Calendar through MCP.

Google Drive runs on your own machine: your AI app starts it with the command npx -y @piotr-agier/google-drive-mcp@2.14.1 and talks to it over standard input and output. It needs GOOGLE_DRIVE_OAUTH_CREDENTIALS set before Google Drive starts.

Google Drive is listed in the official MCP registry as io.github.piotr-agier/google-drive-mcp, version 2.14.1.

At a glance

Publisher
piotr-agier (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @piotr-agier/google-drive-mcp
Written in
TypeScript
License
MIT
GitHub stars
247
Official MCP registry
io.github.piotr-agier/google-drive-mcp

How to set up Google Drive

  1. Install Node.js on the machine that runs your AI app, because Google Drive starts with npx and downloads its package on first run.
  2. Create GOOGLE_DRIVE_OAUTH_CREDENTIALS for Google Drive in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Google Drive to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Google Drive tools to confirm the connection.
  5. Run one read-only task with Google Drive first, and keep your app asking before each tool call until the results look right.

Google Drive compared with similar servers

  • Todoist (greirson) by greirson has fewer GitHub stars than Google Drive (246 against 247); both are community servers, and both run locally.
  • OmniFocus by themotionmachine has more GitHub stars than Google Drive (256 against 247); both are community servers, and both run locally.
  • Weather by ezh0v has fewer GitHub stars than Google Drive (246 against 247); both are community servers, and both run locally.

Before you connect Google Drive

  • Give Google Drive its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Google Drive tool call until you trust what it does with them.
  • Treat text that Google Drive fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Google Drive on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Google Drive

How marketing and sales teams put Google Drive to work, by company size. Pick the size closest to yours and start Google Drive on one use case.

Small business

  • A busy owner can use Google Drive to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Google Drive what slipped last week and which campaign tasks have no owner yet.
  • Google Drive runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Google Drive to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Google Drive to see where work piles up across projects and move it before deadlines slip.
  • Start Google Drive on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use Google Drive to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Google Drive scoped access per workspace, so an agent helps one department without reading another's plans.
  • Google Drive is a community server, so have security review the code and pin a version before Google Drive touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Google Drive README

From piotr-agier/google-drive-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Google Drive MCP Server

Connect an MCP client to Google Drive, Docs, Sheets, Slides, and Calendar through one self-hosted server. Search and organize files, create and edit Workspace content, manage sharing, and automate multi-step workflows while keeping control of the Google identity and credentials used for every call.

Why this server

  • Drive-first workflows: 131 tools cover file management, Shared Drives, permissions, revisions, rich Docs editing, Sheets formatting, Slides authoring, and Calendar events.
  • Local or hosted: use stdio for a personal desktop client, Streamable HTTP for a hosted integration, or OAuth-protected team mode for a shared service.
  • Identity control: local OAuth supports multiple Google accounts and per-tool account selection; service accounts and externally managed OAuth tokens are also supported.
  • Agent-friendly access: tools expose targeted operations, while the optional gdrive:/// resource interface supports direct reading and discovery.
  • Open and self-hosted: credentials and tokens stay in the environment you operate.

This project remains focused on deep Drive and editor workflows rather than attempting to expose every Google Workspace API.

Client compatibility

Compatibility is determined by the transport and authentication flow a client supports.

Client type Transport Recommended mode
Claude Desktop stdio Local OAuth
Other local MCP clients, including Gemini CLI stdio Local OAuth
claude.ai custom connectors Streamable HTTP Team mode
Other remote MCP clients Streamable HTTP Single identity behind access control, or team mode with OAuth 2.1

See Client configuration for configuration examples and transport requirements.

Quick start

1. Create Google OAuth credentials

In a Google Cloud project:

  1. Enable the Drive, Docs, Sheets, Slides, and Calendar APIs.
  2. Configure the OAuth consent screen and add your Google account as a test user when the app is in testing.
  3. Create an OAuth client with application type Desktop app.
  4. Download the JSON file and save it as:
~/.config/google-drive-mcp/gcp-oauth.keys.json

The setup guide has the complete Google Cloud walkthrough and alternative credential locations.

2. Authenticate
npx -y @piotr-agier/google-drive-mcp auth

Complete the Google consent flow in the browser. Tokens are stored by default at ~/.config/google-drive-mcp/tokens.json.

3. Add the server to your MCP client

For clients that use the common mcpServers configuration shape:

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": ["-y", "@piotr-agier/google-drive-mcp"]
    }
  }
}

Restart the client after saving its configuration. Claude Desktop paths and HTTP examples are documented in Client configuration.

4. Make a first tool call

Ask your client:

Run authGetStatus and tell me which Google account is active.

Then try a read-only Drive request:

Search my Google Drive for files modified in the last seven days.

If the identity is wrong or search returns no files, use the troubleshooting guide.

What you can do

Organize Drive
Find PDF files in /Reports, create an Archive folder there, and move files older
than one year into it.
Build a report
Create a Google Sheet for monthly results, summarize it in a Google Doc, and
create a short Google Slides presentation from the summary.
Edit a document
Find the "Project Plan" document, replace the old launch date, format the new
date in bold, and add a comment describing the change.
Prepare a meeting
Create a Calendar event with a Google Meet link and attach the project brief
from Drive.

Documentation

Every section that used to live in this README is now in one of these guides.

Guide Contents
Setup Requirements, Google Cloud APIs, OAuth credentials, and installation
Client configuration Supported transports and client configuration
Authentication Local OAuth, multi-account, service accounts, external tokens, and scopes
Configuration CLI flags, environment variables, defaults, and precedence
Deployment Docker, Streamable HTTP, team mode, and reverse-proxy security
Tool reference All Drive, Docs, Sheets, Slides, Calendar, and account tools
Troubleshooting Authentication, API, identity, Docker, and rate-limit problems
Development Repository structure, build commands, tests, and contributions

Security

  • Never commit OAuth credentials, service-account keys, access tokens, refresh tokens, or tokens.json.
  • Use the narrowest OAuth scopes that support the tools you need.
  • Keep the default HTTP bind address on 127.0.0.1 unless the server is protected by TLS and access control.
  • Use team mode for shared deployments so every request is authenticated as its caller.
  • Treat team-store.json as a secret because it contains members' Google refresh tokens.

See Authentication and Deployment for the complete security and identity model.

Development and support

See the development guide to build and test the project.

  • Report defects and request features in GitHub Issues.
  • Review released changes in the changelog.
  • Contributions are welcome through pull requests.

License

MIT

Acknowledgments

Questions about Google Drive

What is the Google Drive MCP server?

Secure access to Google Drive, Docs, Sheets, Slides, and Calendar through MCP. Google Drive is maintained by piotr-agier on GitHub at piotr-agier/google-drive-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Google Drive MCP server?

Add Google Drive to your AI app's MCP config with the command npx -y @piotr-agier/google-drive-mcp@2.14.1. In Claude Code, run claude mcp add --transport stdio google-drive -- npx -y @piotr-agier/google-drive-mcp@2.14.1. To run Google Drive this way you need Node.js installed.

Does Google Drive need an API key?

Yes. Google Drive expects GOOGLE_DRIVE_OAUTH_CREDENTIALS to be set. Create the key for Google Drive in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Google Drive an official MCP server?

No. Google Drive is a community server maintained by piotr-agier. Community servers can be excellent; read the code and the open issues before you give Google Drive access to company data.

What license is Google Drive under?

Google Drive is released under the MIT license, according to its GitHub repository. The license covers the code of Google Drive; the service it connects to has its own terms.