
Google Drive MCP
io.github.piotr-agierPublished by GitHub account piotr-agierv2.12.0Updated Oct 24, 2026
Secure access to Google Drive, Docs, Sheets, Slides, and Calendar through MCP.
Overview
A self-hosted MCP server that gives an assistant access to Google Drive, Docs, Sheets, Slides and Calendar through your own Google OAuth credentials.
- What you can do
- Search, organize and manage Drive files, Shared Drives, permissions and revisions, and read files through an optional resource interface (gdrive:///). Create and edit Google Docs, including formatting and comments. Build and format Google Sheets and author Google Slides presentations. Create and manage Calendar events, including Meet links and Drive attachments. Check and switch the active Google account, with per-tool account selection.
- When to use it
- Use it when you want an assistant to work inside Google Drive and the Workspace editors on your own Google identity: finding and tidying files, drafting documents, sheets and slide decks, or preparing meetings. It suits personal desktop clients and self-hosted team setups rather than broad coverage of every Workspace API.
- Requirements
- Runs locally over stdio via npx (Node.js). Needs a Google Cloud project with the Drive, Docs, Sheets, Slides and Calendar APIs enabled, an OAuth client of type Desktop app, and the credentials JSON path in GOOGLE_DRIVE_OAUTH_CREDENTIALS. A one-time browser consent flow stores tokens locally; service accounts and external tokens are also supported.
Installation
In SourceWeft
- Open Google Drive MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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: 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.
See Client configuration for configuration examples and transport requirements.
Quick start
1. Create Google OAuth credentials
In a Google Cloud project:
- Enable the Drive, Docs, Sheets, Slides, and Calendar APIs.
- Configure the OAuth consent screen and add your Google account as a test user when the app is in testing.
- Create an OAuth client with application type Desktop app.
- Download the JSON file and save it as:
The setup guide has the complete Google Cloud walkthrough and alternative credential locations.
2. Authenticate
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:
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:
Then try a read-only Drive request:
If the identity is wrong or search returns no files, use the troubleshooting guide.
What you can do
Organize Drive
Build a report
Edit a document
Prepare a meeting
Documentation
Every section that used to live in this README is now in one of these guides.
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.1unless 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.jsonas 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
Acknowledgments
- Built on the Model Context Protocol.
- Uses the Google APIs Node.js Client.
Source: README.md at commit 26f9b83
Tools
0Version history
3- v2.12.0LatestSep 25, 2026
- v2.11.0Sep 19, 2026
- v2.10.0Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
