Google Docs/Sheets MCP Server
Provides tools for searching, reading, replacing text, appending text, inserting text at a specific location, and creating Google Docs documents.
Provides tools for searching, reading, updating cells, appending rows, and creating Google Sheets spreadsheets.
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/Sheets MCP Serverreplace 'draft' with 'final' in my proposal doc"
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/Sheets MCP Server
A remote MCP server that lets Claude actually edit your existing Google Docs and Sheets — not just read them or create new ones.
Tools it exposes:
docs_search,docs_read,docs_replace_text,docs_append_text,docs_insert_text_at,docs_createsheets_search,sheets_read,sheets_update_cells,sheets_append_rows,sheets_create
This server acts as your Google account only (whichever account you authorize in Step 2). It's meant for personal or single-team use, not as a multi-tenant public service.
Step 1 — Create a Google Cloud OAuth client
Go to https://console.cloud.google.com/ and create a project (or use an existing one).
Go to APIs & Services → Library and enable:
Google Docs API
Google Sheets API
Google Drive API
Go to APIs & Services → OAuth consent screen. Choose External, fill in the required fields, and add yourself as a test user. (You don't need to publish the app — test mode works fine for personal use.)
Go to APIs & Services → Credentials → Create Credentials → OAuth client ID.
Application type: Desktop app
Save the generated Client ID and Client Secret.
Related MCP server: google-workspace-mcp-with-script
Step 2 — Get a refresh token (run this on your own computer)
cd gdocs-mcp-server
npm install
GOOGLE_CLIENT_ID=your_client_id \
GOOGLE_CLIENT_SECRET=your_client_secret \
npm run get-tokenThis opens a URL for you to visit — log in and approve access. The script
prints a GOOGLE_REFRESH_TOKEN value in your terminal. Save it; you'll need
it in Step 3.
Step 3 — Deploy the server
Pick any host that runs a persistent Node.js process and gives you a public HTTPS URL. Render.com is a straightforward free option:
Push this folder to a GitHub repo (or use Render's "public Git repo" deploy).
On Render: New → Web Service, connect the repo.
Build command:
npm installStart command:
npm startAdd environment variables (from Environment tab):
GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRETGOOGLE_REFRESH_TOKEN(from Step 2)MCP_ACCESS_TOKEN— make up a long random secret (e.g. runopenssl rand -hex 32locally)
Deploy. Render will give you a URL like
https://your-app.onrender.com.
Your MCP endpoint is then: https://your-app.onrender.com/mcp
(Railway, Fly.io, or a small VPS all work the same way — the only requirement is a public HTTPS URL and the same environment variables.)
Step 4 — Connect it to Claude
In Claude, go to Settings → Connectors.
Click "+" → Add custom connector.
Paste in your server URL:
https://your-app.onrender.com/mcpClick Advanced settings → under Request headers, add:
Header name:
AuthorizationHeader value:
Bearer YOUR_MCP_ACCESS_TOKEN(the same secret from Step 3)
Click Add, then Connect.
In any chat, use the "+" button → Connectors → toggle this one on.
You can now ask Claude things like "update cell B2 in my Q3 budget sheet to 5000" or "replace 'draft' with 'final' throughout my proposal doc" and it will actually make the change.
Testing locally before you deploy
cp .env.example .env
# fill in .env with your values
npm install
npm startThe server listens on http://localhost:3000/mcp. You won't be able to point
Claude's hosted product at localhost directly (it needs a public URL), but
this is useful for catching errors before you deploy.
Notes and limitations
This server edits Docs/Sheets as whichever Google account you authorized in Step 2 — anyone using this connector acts as that account.
docs_replace_textreplaces plain text only; it won't preserve rich formatting differences between the old and new text.Sheets values are written with
USER_ENTEREDinput, so formulas like=SUM(A1:A10)are interpreted, not stored as literal text.If you ever want to revoke access, go to https://myaccount.google.com/permissions and remove the app.
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
- 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/BHRTEvents/gdocs-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server