productivity
Google Docs MCP Integration for Claude Code
Connect Google Docs to Claude Code through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Google Docs to Claude Code
Connect local KosmoKrator integrations to Claude Code through one scoped MCP gateway entry.
Add KosmoKrator as a stdio MCP server in the Claude Code project config and select the integrations that should be visible. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Code can inspect read-capable tools without receiving write access by default.
Google Docs MCP Config for Claude Code
Claude Code can launch the local kosmo binary directly from the project MCP config.
{
"mcpServers": {
"kosmokrator-google-docs": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=google-docs",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=google-docs --write=deny Why Use KosmoKrator Here
Expose only Google Docs instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Google Docs Tools Visible to Claude Code
Claude Code sees stable MCP tool names generated from the Google Docs integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__google_docs__gdocs_list_documents | google-docs.gdocs_list_documents | Read | List Google Docs documents visible to the authenticated user. Returns document IDs, names, owners, and modification times. Supports pagination and custom Drive API query filters. |
integration__google_docs__gdocs_get_document | google-docs.gdocs_get_document | Read | Get the full content and structure of a Google Docs document by its ID. Returns the document title, body content (paragraphs, text runs), and styling information. |
integration__google_docs__gdocs_create_document | google-docs.gdocs_create_document | Write | Create a new Google Docs document with a given title. Returns the document ID and a link to edit the document in the browser. |
integration__google_docs__gdocs_batch_update | google-docs.gdocs_batch_update | Write | Send batch update requests to a Google Docs document. Supports inserting text, updating text styles, creating paragraphs, and other document modifications. Each request in the array is a Google Docs API request object. |
integration__google_docs__gdocs_list_permissions | google-docs.gdocs_list_permissions | Read | List all permissions (sharing settings) for a Google Docs document. Returns who has access, their roles (owner, writer, reader), and their email addresses. |
integration__google_docs__gdocs_get_permission | google-docs.gdocs_get_permission | Read | Get details of a specific permission for a Google Docs document. Returns the permission type, role, and email address for a single permission entry. |
integration__google_docs__gdocs_get_current_user | google-docs.gdocs_get_current_user | Read | Get the authenticated Google user's profile information. Returns user ID, email address, display name, and profile picture URL. Use this to verify which Google account is being used. |