PluginBench
MCP Server
Active
MIT

Google Drive MCP MCP Server

io.github.piotr-agier/google-drive-mcp

Access Google Drive, Docs, Sheets, Slides, and Calendar through MCP with 130 tools for file management and workspace automation.

What is the Google Drive MCP MCP server?

The Google Drive MCP Server connects MCP clients to Google Drive, Docs, Sheets, Slides, and Calendar through a self-hosted server. It provides 130 tools for file management, document editing, permissions, and calendar operations while maintaining control over Google identity and credentials. Supports local OAuth, team mode, and multiple authentication flows.

This server enables AI agents to search and organize Drive files, create and edit Google Workspace documents, manage sharing and permissions, and automate multi-step workflows. It's designed for deep Drive and editor workflows with local or hosted deployment options, identity control, and support for multiple Google accounts.

How to install Google Drive MCP

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • GOOGLE_DRIVE_OAUTH_CREDENTIALS
    required
    secret

    Path to a Google OAuth 2.0 Desktop app credentials JSON file.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "google-drive-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@piotr-agier/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_DRIVE_OAUTH_CREDENTIALS": "<YOUR_GOOGLE_DRIVE_OAUTH_CREDENTIALS>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • Drive file management — Search, list, create, move, copy, delete, and organize files and folders in Google Drive
  • Shared Drives — Manage Shared Drives and their contents
  • Permissions and sharing — Manage file and folder permissions, sharing settings, and access control
  • File revisions — Access and manage file revision history
  • Google Docs editing — Create, read, and edit Google Docs with rich formatting, comments, and text operations
  • Google Sheets formatting — Create and format Google Sheets with cell operations and data management
  • Google Slides authoring — Create and author Google Slides presentations
  • Calendar events — Create, read, and manage Calendar events with meeting links and attachments
  • Account status — Check active Google account and authentication status

Use cases

  • Organize Drive files by creating folders, archiving old documents, and managing file hierarchies
  • Build multi-document reports by creating Sheets, Docs, and Slides and populating them with data
  • Edit existing documents by finding files, updating content, formatting text, and adding comments
  • Prepare meetings by creating Calendar events with Google Meet links and attaching relevant Drive documents
  • Automate file management workflows like moving files based on modification dates or organizing by type

Google Drive MCP MCP server FAQ

What is the Google Drive MCP Server?

It's a self-hosted MCP server that gives AI agents access to Google Drive, Docs, Sheets, Slides, and Calendar through 130 tools for file management, document editing, permissions, and automation.

Is it free?

Yes, the server is open-source (MIT license) and free to use. You only need a Google Cloud project with OAuth credentials, which is free to set up.

How do I install it in Claude Desktop?

Create OAuth credentials in Google Cloud, run `npx -y @piotr-agier/google-drive-mcp auth` to authenticate, then add the server to Claude Desktop's config with the npx command and restart.

Does it require authentication?

Yes, it requires Google OAuth credentials. You set up a Google Cloud project, enable the necessary APIs, create an OAuth client, and authenticate locally. Tokens are stored securely in your config directory.

Can multiple people use it?

Yes, it supports team mode for shared deployments where each request is authenticated as its caller, or you can use local OAuth with multiple Google accounts and per-tool account selection.

What about security and privacy?

Credentials and tokens stay in your environment. The server supports local deployment, TLS for remote access, and team mode for multi-user setups. Never commit credentials or tokens to version control.

README (reference)

Source of truth, from the repository.

Google Drive MCP Server

MCP Toplist

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: 130 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 typeTransportRecommended mode
Claude DesktopstdioLocal OAuth
Other local MCP clients, including Gemini CLIstdioLocal OAuth
claude.ai custom connectorsStreamable HTTPTeam mode
Other remote MCP clientsStreamable HTTPSingle 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.
<!-- Anchors for sections that lived in this README before the guides moved to docs/. External deep links (directory listings, issue replies, blog posts) land on the table below, which names the guide each section moved to. Do not remove. -->

<a id="features"></a><a id="example-usage"></a><a id="requirements"></a> <a id="google-cloud-setup"></a><a id="installation"></a><a id="docker-usage"></a> <a id="configuration"></a><a id="runtime-configuration-cli-args-or-env-vars"></a> <a id="usage-with-claude-desktop"></a><a id="streamable-http-transport"></a> <a id="team-mode-multi-user-http-deployments"></a><a id="available-tools"></a> <a id="external-authentication"></a><a id="multi-account-support"></a> <a id="authentication-flow"></a><a id="troubleshooting"></a><a id="development"></a> <a id="advanced-configuration"></a><a id="contributing"></a><a id="support"></a>

Documentation

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

GuideContents
SetupRequirements, Google Cloud APIs, OAuth credentials, and installation
Client configurationSupported transports and client configuration
AuthenticationLocal OAuth, multi-account, service accounts, external tokens, and scopes
ConfigurationCLI flags, environment variables, defaults, and precedence
DeploymentDocker, Streamable HTTP, team mode, and reverse-proxy security
Tool referenceAll Drive, Docs, Sheets, Slides, Calendar, and account tools
TroubleshootingAuthentication, API, identity, Docker, and rate-limit problems
DevelopmentRepository 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

Related MCP servers

Supervise a local dev stack — databases, brokers and services declared in an Alphasfile — over MCP.

4
Go
GPL-3.0
View repository →

Find decision makers at any company: name, job title and LinkedIn profile URL. No login needed.

Debug webhooks from your AI agent: inspect and replay captured webhooks on localhost.

0
View repository →
PIPipesHub logo

PipesHub

Active

Permissioned search and cited answers over Slack, Drive, Gmail, Jira, and 50+ workplace sources.

6
TypeScript
Apache-2.0
View repository →
1919hz logo

19hz

Active

19hz.info MCP.

0
TypeScript
MIT
View repository →
4242matters logo

42matters

Active

42matters MCP — wraps the 42matters App Market Data API (42matters.com)

0
TypeScript
MIT
View repository →