KosmoKrator

productivity

Google Docs MCP Gateway for AI Agents

Expose Google Docs tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

14 functions 11 read 3 write OAuth browser flow auth

Google Docs MCP Gateway

Expose Google Docs to MCP clients with `kosmokrator mcp:serve --integration=google_docs`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=google_docs --write=deny --json
{
  "mcpServers": {
    "kosmokrator-google_docs": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=google_docs",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=google_docs --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP Tool Names (14 tools)
MCP toolSource functionType
integration__google_docs__google_docs_add_bullets google_docs.google_docs_add_bullets Write write
integration__google_docs__google_docs_create google_docs.google_docs_create Read read
integration__google_docs__google_docs_delete_range google_docs.google_docs_delete_range Write write
integration__google_docs__google_docs_format_text google_docs.google_docs_format_text Read read
integration__google_docs__google_docs_get google_docs.google_docs_get Read read
integration__google_docs__google_docs_get_structure google_docs.google_docs_get_structure Read read
integration__google_docs__google_docs_insert_image google_docs.google_docs_insert_image Read read
integration__google_docs__google_docs_insert_page_break google_docs.google_docs_insert_page_break Read read
integration__google_docs__google_docs_insert_table google_docs.google_docs_insert_table Read read
integration__google_docs__google_docs_insert_text google_docs.google_docs_insert_text Read read
integration__google_docs__google_docs_remove_bullets google_docs.google_docs_remove_bullets Write write
integration__google_docs__google_docs_replace_all google_docs.google_docs_replace_all Read read
integration__google_docs__google_docs_search_text google_docs.google_docs_search_text Read read
integration__google_docs__google_docs_set_heading google_docs.google_docs_set_heading Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.