gdocs-mcp
Lets an AI agent treat a Google Doc like a local file.
$ npm install -g @dasasian/gdocs-mcp
Then a one-time Google Cloud OAuth client of your own — which is what keeps the credentials yours.
MIT · 1.0.0 · also on npm and the MCP registry
Why it exists
Google Docs is where writing goes to be reviewed. Not written — that happens in an editor, in a repo, wherever the work actually lives — but reviewed, by people who are never going to install anything and should not have to. So anything an agent does to help with real writing has to reach into a Google Doc eventually.
Most of the servers that do this treat a document as flat text: pull the whole string down, push a new string back. That holds up until the document has something in it. Tracked changes disappear. Comment threads are orphaned. Edits are addressed by integer index into a structure that shifts underneath you the moment you write to it.
This one is built on the assumption that an agent already knows how to edit: find a unique snippet of text and rewrite it, the way editing a local file works. Indices are never exposed at all. And the part that makes review genuinely possible — an edit can go in as a suggestion for a person to accept in Docs, and pending suggestions read as the change in its sentence, Pay within [30 → 45] days, each accepted or rejected on its own, as in Docs.
The more useful half is what it admits it cannot do. Google’s API cannot make an equation or a page number, and can make a link chip only for a Drive file, so the server refuses those and says what to write instead rather than letting you find out. Every limitation is documented as the API constraint it is, with the workaround next to it, and checked again each month. A tool that hides its edges has not removed the surprise, only moved it somewhere later and more expensive.
It also stops where it should. Wiring chapter files up to document tabs, walking a review, merging the result — that is the job this was built for, and it is deliberately not a feature. The server ships primitives; the agent composes them.
Under it
- Built with
- TypeScript in strict mode, the Model Context Protocol SDK, and Google’s Docs and Drive APIs. Node 18+.
- Surface
- Nineteen tools: reading, editing and writing, where styling, tables and images are part of the edit; page setup, suggestions, comments, sharing, and Drive navigation as a filesystem, down into a doc’s tabs.
- Reading
- What comes back is what is in the document. Colour, size, font and image dimensions read as inline HTML alongside the markdown, so a styling change shows up on the next read and survives being written back. Footnotes, people, dates and dropdowns read too, so an edit around them keeps them.
- Editing
- Text is located by a unique snippet rather than an index, so an edit reads like a local file edit and survives the document shifting under it.
- Accounts
- You bring your own Google Cloud OAuth client, so the credentials stay yours and there is no app to get verified. Several accounts can be authorized at once and a project picks its default.
- Status
- Version 1.0, published and listed in the MCP registry. The full tool surface is implemented and checked against the live API.
- License
- MIT
More open source
- firebase-mcp-server
- A schema-aware view of Firebase, for an agent.
- firebase-structured-logger
- Browser errors, symbolicated and structured.