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 "Deploy 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: MCP-Google-Doc
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 deployed
Maintenance
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
An agent-first office suite Claude & ChatGPT read and write over one MCP URL.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for Google Drive, Docs, and Sheets — built for Claude Code. Gives Claude Code direct read/write access to Google Sheets (cell-level edits, formatting, structure), Google Docs (insert, replace, append), and Drive (search).35 npm1MIT
- AlicenseNot gradedqualityFmaintenanceMCP server that allows you to connect to Google Docs through Claude, enabling listing, reading, creating, updating, searching, and deleting documents.885 npm47MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that lets Claude read, edit, and format Google Sheets in place, including cell updates, formula filling, row/column operations, and find & replace.568 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server connecting Claude to Google Sheets, Docs, and Drive, enabling cell-level editing, formatting, chart creation, and file management through natural language.1,091 npmMIT