Google Docs Preview MCP
Enables creating anchored comments, replies, and real suggested edits in Google Docs documents via the Google Docs REST API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Docs Preview MCPSuggest replacing 'soon' with 'ASAP' in the document."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Docs Preview MCP
Create anchored comments, replies, and real suggested edits in Google Docs from Claude.
Google’s hosted Docs MCP recognizes the preview operations but does not expose enough of the Docs API schema to use them:
Operation | Hosted MCP problem | This implementation |
Create comments | Strips | Passes the complete request |
Suggest edits | Omits top-level | Exposes |
Recover preview objects | Omits comment-view parameters | Exposes comment, suggestion, and tab view controls |
The underlying Google Docs REST API accepts all three operations. See what failed and why.
Choose a setup
Setup | Works in | Trust boundary | Status |
Local stdio | Claude Desktop and Claude Code | Your computer, Google, and Claude | Recommended for sensitive documents; tested |
Organization connector | Claude.ai and other cloud clients | Adds the organization’s hosting and storage providers | End-to-end pilot passed; production ownership and security review remain |
Personal remote | Claude.ai and other cloud clients | Adds a developer-owned host | Test only; do not use for sensitive documents |
The local server is the current recommendation. Claude.ai cannot connect to localhost or stdio; use Claude Desktop or Claude Code for the local option. Tool results still go to Claude for processing.
The local token file is plaintext JSON protected by Unix file permissions, not an OS keychain. Local execution removes the independent MCP host, but it does not protect against malware running as your user or an administrator.
Related MCP server: Ultimate Google Docs & Drive MCP Server
Local quick start
npm test
npm run auth -- --client /path/to/desktop-oauth-client.json
claude mcp add --scope user google-docs-preview-local -- \
node "$PWD/bin/docs-mcp-local.js"The OAuth flow requests:
https://www.googleapis.com/auth/documentsThis is the minimum scope for arbitrary document IDs, but Google classifies it as Sensitive and describes it as permission to see, edit, create, and delete all Google Docs documents. A drive.file design can narrow access to files a user explicitly selects, but it requires a Google Picker or per-file grant flow that this document-ID-only prototype does not implement.
See the complete setup guide before authorizing an account.
Organization connector
One Google Cloud project and OAuth app can serve the team. Staff do not create Cloud projects or handle credentials: a Claude Owner publishes the connector once, then each registered Preview tester clicks Connect and authorizes their own Google account. Read the staff onboarding guide, administrator runbook, and pilot result.
The pilot deployment is developer-owned. Move the deployment, Redis store, secrets and administration to 80,000 Hours accounts before approving confidential documents.
Repository map
api/ Vercel HTTP transport
bin/ Local authorization and stdio entrypoints
src/ Shared MCP and Google Docs logic
test/ Protocol, passthrough, and token-refresh tests
docs/ Setup, security analysis, evidence, and guide images
archive/ Superseded documents retained for contextdocs/reproduce/ is the concise maintained path from decisive prompts through
method, scripts, inputs, and checks to the current output.
Verification
npm testThe test suite covers the preview schema, complete request forwarding, Docs-only scope metadata, canonical remote origins, redirect rejection, local token refresh, file permissions, OAuth challenges, and stateless protocol methods. Claude.ai, Claude Code and Claude Desktop have each passed live reads. The Claude.ai organization pilot created and recovered an anchored comment, its reply and a real unresolved suggestion, then the Google Docs UI was inspected.
Security status
Local tokens are plaintext JSON stored outside the repository with mode
600.Docs tool calls construct requests only for the fixed
docs.googleapis.comorigin; local OAuth separately contacts Google’s documented authorization and token endpoints.Tool annotations mark writes as destructive, but approval behavior is enforced by the MCP client. Configure per-call approval for writes.
The remote uses separate MCP and Google tokens. Google grants are encrypted at rest; Claude never receives the Google refresh token.
The pilot proved one member’s flow. A second user and organizational unit have not been tested.
The pilot host and Redis resources are still developer-owned. Organization ownership, admin-led offboarding, rate limits, monitoring and security review remain.
Read SECURITY.md, the organization-owned deployment decision, and the full threat model.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceConnects Claude to Google Docs, allowing users to list, read, create, update, search, and delete documents in their Google Drive through natural language interactions.Last updated1,4181MIT
- Alicense-qualityDmaintenanceConnects Claude Desktop to Google Docs and Google Drive, enabling comprehensive document reading, writing, formatting, structuring, and complete Drive file management including shared drives support through OAuth 2.0 authentication.Last updated272MIT
- Alicense-qualityCmaintenanceEnables AI tools to append content to Google Docs and create Gmail drafts with human-in-the-loop approval.Last updatedApache 2.0
- Alicense-qualityBmaintenanceEnables adding inline, range-anchored comments to specific text fragments in Google Docs, overcoming the limitation that Google APIs cannot create anchored comments.Last updated3MIT
Related MCP Connectors
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alejoacelas/07-30-docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server