360 Secure SkillHub
360 安全技能中心

Tmp.7SpQQuUu6P

基于 gogcli 的 Google Docs MCP 服务器,暴露 30 个工具:读取/追加/插入/删除文档内容,查找替换与 sed 式正则编辑、字符与段落格式设置、标签页管理、复制与移入回收站、导出为 PDF/TXT/HTML/DOCX/RTF/ODT/EPUB,以及评论与回复的增删查改和解决。需先安装并认证 gogcli,Node.js 18+。

chrischall
chrischall
热度 50.04
最近更新 2026-06-12 21:45:15
分类:效率依赖:MCP 服务 / 第三方 API应用场景:文件转换 / 工作流 / 校对润色

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gogcli-mcp-docs
Metadata
name
gogcli-mcp-docs
description
Use when the user asks to read, write, edit, export, or comment on Google Docs. Triggers for requests involving document editing, inserting text, exporting as PDF/HTML/DOCX/RTF/ODT/EPUB, sed-like find-replace, managing document tabs, or working with comments and replies. Includes auth and Docs tools only.

gogcli-mcp-docs

Extended Google Docs MCP server via gogcli — 30 tools: auth + 7 base Docs + 18 extra dedicated Docs tools.

Requirements

  • gogcli installed and authenticated
  • Node.js 18 or later

Setup

{
  "mcpServers": {
    "gogcli-docs": {
      "command": "npx",
      "args": ["-y", "gogcli-mcp-docs"],
      "env": {
        "GOG_ACCOUNT": "you@gmail.com"
      }
    }
  }
}

Extra Docs Tools

Tool What it does
gog_docs_append Append text or markdown to the end of a doc
gog_docs_copy Copy a document
gog_docs_delete Delete content by character index range
gog_docs_edit Find and replace with case-sensitivity
gog_docs_export Export as PDF, TXT, HTML, DOCX, RTF, ODT, or EPUB
gog_docs_format Apply character / paragraph formatting
gog_docs_insert Insert text at a specific position
gog_docs_list_tabs List all document tabs
gog_docs_read Read doc as plain text or raw JSON
gog_docs_sed Stream-edit with sed-like regex
gog_docs_trash Move a doc to Drive trash
gog_docs_update Update content at a specific position
gog_docs_comments_list List comments (open or resolved)
gog_docs_comments_get Get a comment with replies
gog_docs_comments_add Add a comment with optional quoted text
gog_docs_comments_reply Reply to a comment
gog_docs_comments_resolve Resolve a comment
gog_docs_comments_delete Delete a comment

Plus 5 auth tools and 7 base Docs tools.

gog_docs_append with markdown: true — known limitations

Three bugs in gogcli's upstream markdown→Docs converter to be aware of:

  • 3+ tables in one call reorders the trailing punctuation of the paragraph before the 3rd table — split into multiple calls with ≤2 tables each (openclaw/gogcli#607).
  • Inline **bold** / *italic* / `code` inside table cells renders as literal characters — insert plain cell text, then apply formatting via gog_docs_format (openclaw/gogcli#608).
  • Empty-header tables leak the last data row as literal pipe text — always supply a non-empty header row (openclaw/gogcli#609).