mcpField
G
gogcli-mcp-docs

gogcli-mcp-docs

Local
github.com/chrischallProductivity1Updated 4d ago

About gogcli-mcp-docs

gogcli-mcp-docs is an MCP server for operating Google Docs through gogcli, intended for Claude users automating document work. It adds tools for editing, formatting, exporting, and comments alongside authentication and core document operations.

Key features

  1. 01Read, create, and edit documents
  2. 02Insert, append, and delete content
  3. 03Apply character and paragraph formatting
  4. 04Export to multiple document formats
  5. 05List and manage comments

Use cases

  1. 01Make bulk changes to Google Docs
  2. 02Format documents and add comments
  3. 03Export documents as PDF or DOCX

MCP support

The MCP server exposes Google Docs tools to MCP clients, covering authentication, core document operations, editing, exporting, and comment management.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"chrischall-gogcli-mcp-docs": {
"command": "npx",
"args": [
"-y",
"gogcli-mcp-docs"
],
"env": {
"GOG_ACCOUNT": "<GOG_ACCOUNT>",
"GOG_PATH": "<GOG_PATH>",
"DISPLAY_TZ": "<DISPLAY_TZ>",
"GOG_READONLY": "<GOG_READONLY>",
"GOG_TIMEZONE": "<GOG_TIMEZONE>"
}
}
}
}
Run commandnpx -y gogcli-mcp-docs
Environment variables to set
GOG_ACCOUNTEmail address of the Google account to use (matches gogcli auth)
GOG_PATHOverride path to the gogcli binary (auto-discovered otherwise)
DISPLAY_TZzone for *Display fields and for interpreting naive gog values; defaults to America/New_York
GOG_READONLYblock all mutating gog API requests (injects gog's --readonly); set to 0/false/no/off (or unset) to allow writes
GOG_TIMEZONEzone gog formats naive dates in; unset, runner.ts hands gog DISPLAY_TZ so the two cannot diverge

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmgogcli-mcp-docs4.8.1

Tools

83

Saved tool list · updated 2w ago

This tool takes no parameters.

Details

From the project README

gogcli-mcp-docs

Warning

AI-developed project. This codebase was built and is actively maintained by Claude Code. Review all code and tool permissions before use.

Extended Google Docs MCP server via gogcli. Includes auth tools plus 18 additional dedicated Docs tools for editing, exporting, comments, and more.

Requirements

  • gogcli installed and authenticated
  • Node.js 22+
brew install gogcli
gog auth add [email protected] --services docs,drive

Installation

npm install -g gogcli-mcp-docs
Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "gogcli-docs": {
      "command": "gogcli-mcp-docs",
      "env": {
        "GOG_ACCOUNT": "[email protected]"
      }
    }
  }
}
Claude Code
claude mcp add gogcli-docs -- gogcli-mcp-docs

Extra Docs Tools (18)

Plus 5 auth tools and 7 base Docs tools (info, cat, create, write, find-replace, structure, run).

ToolDescription
gog_docs_appendAppend text or markdown to the end of a doc
gog_docs_copyCopy a document
gog_docs_deleteDelete content by character index range
gog_docs_editFind and replace with case-sensitivity control
gog_docs_exportExport as PDF, TXT, HTML, DOCX, RTF, ODT, or EPUB
gog_docs_formatApply character / paragraph formatting (bold, color, alignment, …)
gog_docs_insertInsert text at a specific position
gog_docs_list_tabsList all document tabs
gog_docs_readRead doc as plain text or raw JSON
gog_docs_sedStream-edit with sed-like regex expressions
gog_docs_trashMove a doc to Drive trash
gog_docs_updateUpdate document content at a specific position
gog_docs_comments_listList comments (open or resolved), optionally with each comment's tab and index ranges
gog_docs_comments_getGet a comment with its replies
gog_docs_comments_addAdd a comment with optional quoted text
gog_docs_comments_replyReply to a comment
gog_docs_comments_resolveResolve a comment
gog_docs_comments_deleteDelete a comment

Known limitations: gog_docs_append with markdown: true

These bugs live in gogcli's upstream markdown → Docs converter; the wrapper just passes --markdown through. Tracked upstream:

SymptomWorkaroundUpstream
3+ tables in one call reorders the trailing punctuation of the paragraph before the 3rd tableSplit into multiple calls with ≤2 tables eachopenclaw/gogcli#607
Inline **bold** / *italic* / `code` inside table cells renders as literal charactersInsert plain cell text, then apply formatting via gog_docs_formatopenclaw/gogcli#608
Tables with an empty header row leak the last data row as literal pipe textAlways supply a non-empty header rowopenclaw/gogcli#609

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.