MCP server for Google Drive access with secure OAuth2 authentication
Gdrive MCP server exists for a simple reason — assistants are far more useful when they can act on Gdrive directly instead of describing what you should do. MCP server for Google Drive access with secure OAuth2 authentication.
A Model Context Protocol (MCP) server that provides access to Google Drive documents.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Once Gdrive is connected, these are the calls the assistant has available:
OpenCode — The OpenCode tool exposed by this serversearch_drive — Search for files and documents across all of Google Drive using text queriesget_doc_contents — The get_doc_contents tool exposed by this serverlist_doc_comments — Lists all comment threads on a Google Doc, including quoted text, replies, and statuscreate_doc_comment — Creates an unanchored comment on a Google Doc (appears in "All Comments" view)reply_to_comment — The reply_to_comment tool exposed by this serverinsert_doc_note — Inserts an auto-numbered styled note block directly into the document content. Notes are automatically numbered sequentially (📝 NOTE 1:, 📝 NOTE 2:update_doc_note — Updates the text of an existing note by its number. The note number and formatting remain the sameremove_doc_note — Removes a note from the document by its number. This completely deletes the note block including all formattingYou will need 2 environment variables: YOUR_CLIENT_ID, YOUR_CLIENT_SECRET. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the planning and project tracking options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Gdrive's toolset — OpenCode, search_drive, get_doc_contents and 6 more — is a fair guide to whether it matches your workflow. It is maintained by beneidel; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| OpenCode | The OpenCode tool exposed by this server. |
| search_drive | Search for files and documents across all of Google Drive using text queries. |
| get_doc_contents | The get_doc_contents tool exposed by this server. |
| list_doc_comments | Lists all comment threads on a Google Doc, including quoted text, replies, and status. |
| create_doc_comment | Creates an unanchored comment on a Google Doc (appears in "All Comments" view). |
| reply_to_comment | The reply_to_comment tool exposed by this server. |
| insert_doc_note | Inserts an auto-numbered styled note block directly into the document content. Notes are automatically numbered sequentially (📝 NOTE 1:, 📝 NOTE 2:, etc.). This is a workaround for the API's inability to create anchored |
| update_doc_note | Updates the text of an existing note by its number. The note number and formatting remain the same. |
| remove_doc_note | Removes a note from the document by its number. This completely deletes the note block including all formatting. |
✨ Setup Complete!
✅ Credentials stored securely in your system keychain
(macOS Keychain / Linux libsecret / Windows Credential Manager)
Add this to your Claude Desktop config:
{
"mcpServers": {
"gdrive": {
"command": "bunx",
"args": ["--bun", "gdrive-mcp"]
}
}
}
💡 No need to store sensitive credentials in config files!Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| YOUR_CLIENT_ID | Configuration value read at startup. | Optional |
| YOUR_CLIENT_SECRET | Credential the server authenticates with. | Yes |
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Search and read your Drive — Docs, Sheets and files become context your assistant can actually use.
Your assistant inside the workspace — read channels, search history, post messages and tame the noise.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.