SCD MCP Docs
Provides tools to read, write, format, and manage Google Documents, including text manipulation, table creation, image insertion, comment handling, and markdown conversion.
Enables listing, searching, creating, moving, copying, renaming, and deleting files and folders in Google Drive, with support for all file types and metadata retrieval.
Offers tools to read, write, format, and manage Google Sheets, including cell formatting, conditional rules, chart creation, table operations, and data validation.
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., "@SCD MCP DocsRead the document 'Project Plan' from my Drive"
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.
SCD MCP Docs

Connect Claude Code, Claude Desktop, Cursor, or any MCP client to Google Docs, Google Sheets, and Google Drive through the SCD Docs MCP.
Quick Start
1. Create a Google Cloud OAuth Client
Go to the Google Cloud Console
Create or select a project
Enable the Google Docs API, Google Sheets API, and Google Drive API
Configure the OAuth consent screen (External, add your email as a test user)
Create an OAuth client ID (Desktop app type)
Copy the Client ID and Client Secret from the confirmation screen
Need more detail? See step-by-step instructions at the bottom of this page.
2. Authorize
GOOGLE_CLIENT_ID="your-client-id" \
GOOGLE_CLIENT_SECRET="your-client-secret" \
npx -y scd-mcp-docs authThis opens your browser for Google authorization. After you approve, the refresh token is saved to ~/.config/scd-mcp-docs/token.json.
3. Add to Your MCP Client
Claude Code / Claude Desktop / Cursor / Windsurf:
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "scd-mcp-docs"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}The server starts automatically when your MCP client needs it.
For Claude Code, use the same server command in your MCP configuration and point it at this package or repo after publishing.
Remote Deployment (Cloud Run)
Deploy once for your team -- no local installs required. The server uses MCP OAuth 2.1 so your MCP client handles authentication automatically.
gcloud run deploy scd-mcp-docs \
--source . \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-env-vars "^|^MCP_TRANSPORT=httpStream|BASE_URL=https://your-service.run.app|GOOGLE_CLIENT_ID=...|GOOGLE_CLIENT_SECRET=...|TOKEN_STORE=firestore|JWT_SIGNING_KEY=your-secret-key"Then each user just adds the URL to their MCP client -- no npx, no tokens, no local setup:
{
"mcpServers": {
"google-docs": {
"type": "streamableHttp",
"url": "https://your-service.run.app/mcp"
}
}
}Your MCP client will prompt for Google sign-in on first connection. See Remote Deployment for details.
Related MCP server: GDrive MCP Server
What Can It Do?
Tools across Google Docs, Sheets, and Drive:
Google Docs
Tool | Description |
| Read content as plain text, JSON, or markdown |
| Append text to a document |
| Insert text at a specific position |
| Remove content by index range |
| Replace, prepend, or transform text in a document |
| Find and replace text across a document |
| List all tabs in a multi-tab document |
| Add a new tab to a document |
| Rename a document tab |
| Replace entire document content from markdown |
| Replace a specific range with markdown content |
| Append markdown-formatted content |
| Bold, italic, colors, font size, links |
| Alignment, spacing, indentation |
| Create an empty table |
| Create a table pre-filled with data |
| Merge a rectangular range of table cells |
| Set background color on one or more table cells |
| Insert page breaks |
| Insert images from URLs or local files |
Comments
Tool | Description |
| View all comments with author and date |
| Get a specific comment with replies |
| Create a comment anchored to text |
| Reply to an existing comment |
| Mark a comment as resolved |
| Remove a comment |
Google Sheets
Tool | Description |
| Read data from a range (A1 notation) |
| Write data to a range |
| Write to multiple ranges in one call |
| Add rows to a sheet |
| Clear cell values |
| Create a new spreadsheet |
| Add a sheet/tab |
| Remove a sheet/tab |
| Copy a sheet within or across spreadsheets |
| Rename a sheet/tab |
| Get metadata and sheet list |
| Find spreadsheets |
| Bold, colors, alignment on cell ranges |
| Copy formatting from one range to another |
| Read formatting details of a cell range |
| Pin header rows/columns |
| Add/remove dropdown lists on cells |
| Set column widths in pixels |
| Auto-fit column widths to content |
| Add conditional formatting rules |
| Group rows for collapsible sections |
| Remove all row groupings |
| Create a chart from data |
| Remove a chart |
Google Sheets Tables
Tool | Description |
| Create a new named table with column types |
| List all tables in a spreadsheet or sheet |
| Get detailed table metadata by name or ID |
| Delete a table (optionally clear data) |
| Modify table dimensions (add/remove rows/cols) |
| Append rows to a table (table-aware insertion) |
Google Drive
Tool | Description |
| List documents, optionally filtered by date |
| Search by name or content |
| Get document metadata |
| Create a new document |
| Create from an existing template |
| Create a folder |
| List folder contents |
| Get folder metadata |
| Move a file to another folder |
| Duplicate a file |
| Rename a file |
| Move to trash or permanently delete |
| List any file type in Drive with filters |
| Search all Drive files by name or content |
| Download a file's content |
Usage Examples
Google Docs
"Read document ABC123 as markdown"
"Append 'Meeting notes for today' to document ABC123"
"Make the text 'Important' bold and red in document ABC123"
"Replace the entire document with this markdown: # Title\n\nNew content here"
"Insert a 3x4 table at index 50 in document ABC123"Google Sheets
"Read range A1:D10 from spreadsheet XYZ789"
"Write [[Name, Score], [Alice, 95], [Bob, 87]] to range A1 in spreadsheet XYZ789"
"Create a new spreadsheet titled 'Q1 Report'"
"Format row 1 as bold with a light blue background in spreadsheet XYZ789"
"Freeze the first row in spreadsheet XYZ789"
"Add a dropdown with options [Open, In Progress, Done] to range C2:C100"
"Create a table named 'Tasks' in range A1:D10 with columns: Task (TEXT), Status (DROPDOWN: 'Not Started','In Progress','Done'), Priority (NUMBER)"Google Drive
"List my 10 most recent Google Docs"
"Search for documents containing 'project proposal'"
"Create a folder called 'Meeting Notes' and move document ABC123 into it"Markdown Workflow
The server supports a full round-trip markdown workflow:
Read a document as markdown:
readDocumentwithformat='markdown'Edit the markdown locally
Push changes back:
replaceDocumentWithMarkdown
Supported: headings, bold, italic, strikethrough, links, bullet/numbered lists, horizontal rules.
Remote Deployment
Deploy the server centrally on Google Cloud Run (or any container host) so your team can use it without local installs. The server uses MCP OAuth 2.1 with FastMCP's built-in GoogleProvider -- MCP clients handle the auth flow automatically.
Visit the server root URL (/) for setup instructions and a ready-to-copy client config.
Environment Variables
Variable | Description |
| Set to |
| Public URL of the deployed server (required for OAuth redirects) |
| OAuth client ID (Web application type) |
| OAuth client secret |
| Comma-separated list of allowed Google Workspace domains (optional) |
| HTTP port (default: |
| Set to |
| Fixed signing key so tokens survive restarts (auto-generated if not set) |
| Refresh token lifetime in seconds (default: |
| GCP project ID for Firestore (required when |
Setup
Create a GCP project and enable Docs, Sheets, and Drive APIs
Create an OAuth client (Web application type, not Desktop)
Set the authorized redirect URI to
{BASE_URL}/oauth/callbackDeploy to Cloud Run:
gcloud run deploy scd-mcp-docs \
--source . \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-env-vars "^|^MCP_TRANSPORT=httpStream|BASE_URL=https://your-service.run.app|ALLOWED_DOMAINS=yourdomain.com|GOOGLE_CLIENT_ID=...|GOOGLE_CLIENT_SECRET=...|TOKEN_STORE=firestore|JWT_SIGNING_KEY=your-secret-key"Note: The
^|^prefix changes the env var delimiter from,to|becauseALLOWED_DOMAINScontains commas.
How It Works
By default, OAuth sessions are stored in memory and lost on restart
For production, set
TOKEN_STORE=firestoreandJWT_SIGNING_KEYfor persistent auth across deploys and cold startsALLOWED_DOMAINSrestricts access to specific Google Workspace domainsAccess tokens refresh automatically; inactive sessions expire after 30 days
Users can revoke access at any time via Google Account permissions
Updating Your Deployment
Merging changes to main does not automatically update your Cloud Run service. Each deployment is independent — you need to redeploy manually when you want new features or fixes.
To update:
Pull the latest code:
git pull origin mainRedeploy to Cloud Run:
gcloud run deploy your-service-name --source . --region your-regionYour existing environment variables are preserved — no need to pass
--set-env-varsagain.
When to redeploy:
Bug fixes and security patches — redeploy as soon as possible
New features — redeploy at your convenience
Breaking changes — check the release notes before redeploying
You can check your current version against the latest release on the releases page.
Authentication Options
OAuth (Default)
Pass your Google Cloud OAuth client credentials as environment variables:
Variable | Description |
| OAuth client ID from Google Cloud Console |
| OAuth client secret from Google Cloud Console |
Service Account (Enterprise)
For Google Workspace with domain-wide delegation:
Variable | Description |
| Path to the service account JSON key file |
| Email of the user to impersonate (optional) |
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "scd-mcp-docs"],
"env": {
"SERVICE_ACCOUNT_PATH": "/path/to/service-account-key.json",
"GOOGLE_IMPERSONATE_USER": "user@yourdomain.com"
}
}
}
}Token Storage
OAuth refresh tokens are stored in ~/.config/scd-mcp-docs/token.json (respects XDG_CONFIG_HOME). To re-authorize, run the auth command again or delete the token file.
Multiple Google Accounts
Set GOOGLE_MCP_PROFILE to store tokens in a profile-specific subdirectory. This allows using different Google accounts for different projects:
Variable | Description |
| Profile name for isolated token storage (optional) |
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "scd-mcp-docs"],
"env": {
"GOOGLE_CLIENT_ID": "...",
"GOOGLE_CLIENT_SECRET": "...",
"GOOGLE_MCP_PROFILE": "work"
}
}
}
}Tokens are stored per profile:
~/.config/scd-mcp-docs/
├── token.json # default (no profile)
├── work/token.json # GOOGLE_MCP_PROFILE=work
├── personal/token.json # GOOGLE_MCP_PROFILE=personalWithout GOOGLE_MCP_PROFILE, behavior is unchanged.
Known Limitations
Comment anchoring: Programmatically created comments appear in the comment list but aren't visibly anchored to text in the Google Docs UI. This is a Google Drive API limitation.
Comment resolution: Resolved status may not persist in the Google Docs UI.
Converted documents: Docs converted from Word may not support all API operations.
Markdown tables/images: Not yet supported in the markdown-to-Docs conversion.
Deeply nested lists: Lists with 3+ nesting levels may have formatting quirks.
Troubleshooting
Server won't start:
Verify
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETare set in theenvblock of your MCP config.Try running manually:
npx scd-mcp-docsand check stderr for errors.
Authorization errors:
Ensure Docs, Sheets, and Drive APIs are enabled in Google Cloud Console.
Confirm your email is listed as a Test User on the OAuth consent screen.
Re-authorize:
npx scd-mcp-docs authDelete
~/.config/scd-mcp-docs/token.jsonand re-authorize if upgrading.
Tab errors:
Use
listTabsto see available tab IDs.Omit
tabIdfor single-tab documents.
High CPU with multiple MCP sessions: Some clients call
tools/listvery often. FastMCP otherwise recomputes JSON Schema for every tool on every request, which can pin a CPU core per process. This server precomputes the payload once before stdio starts and replaces thetools/listhandler with a cached snapshot. If you still see sustained load, capture a few seconds withsample <pid> 1 10(macOS) ornode --cpu-profand report it.
Google Cloud Setup Details
For remote deployment, create an OAuth client of type Web application (not Desktop app). Use Desktop app only for local stdio usage.
Go to Google Cloud Console: Open console.cloud.google.com
Create or Select a Project: Click the project dropdown > "NEW PROJECT". Name it (e.g., "MCP Docs Server") and click "CREATE".
Enable APIs:
Navigate to "APIs & Services" > "Library"
Search for and enable: Google Docs API, Google Sheets API, Google Drive API
Configure OAuth Consent Screen:
Go to "APIs & Services" > "OAuth consent screen"
Choose "External" and click "CREATE"
Fill in: App name, User support email, Developer contact email
Click "SAVE AND CONTINUE"
Add scopes:
documents,spreadsheets,driveClick "SAVE AND CONTINUE"
Add your Google email as a Test User
Click "SAVE AND CONTINUE"
Create Credentials:
Go to "APIs & Services" > "Credentials"
Click "+ CREATE CREDENTIALS" > "OAuth client ID"
Application type: "Desktop app"
Click "CREATE"
Copy the Client ID and Client Secret
Contributing
Contributions are welcome! See CONTRIBUTING.md for development setup, architecture overview, and guidelines.
License
MIT -- see LICENSE for details.
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.
Latest Blog Posts
- 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/FabrizioID/sc-mcp-google-workspace'
If you have feedback or need assistance with the MCP directory API, please join our Discord server