KosmoKrator

productivity

Google Drive MCP Gateway for AI Agents

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

15 functions 13 read 2 write OAuth browser flow auth

Google Drive MCP Gateway

Expose Google Drive to MCP clients with `kosmokrator mcp:serve --integration=google_drive`.

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_drive --write=deny --json
{
  "mcpServers": {
    "kosmokrator-google_drive": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=google_drive",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP Tool Names (15 tools)
MCP toolSource functionType
integration__google_drive__google_drive_copy google_drive.google_drive_copy Read read
integration__google_drive__google_drive_create_file google_drive.google_drive_create_file Write write
integration__google_drive__google_drive_create_folder google_drive.google_drive_create_folder Write write
integration__google_drive__google_drive_delete google_drive.google_drive_delete Read read
integration__google_drive__google_drive_move google_drive.google_drive_move Read read
integration__google_drive__google_drive_rename google_drive.google_drive_rename Read read
integration__google_drive__google_drive_get_file google_drive.google_drive_get_file Read read
integration__google_drive__google_drive_list_permissions google_drive.google_drive_list_permissions Read read
integration__google_drive__google_drive_search_files google_drive.google_drive_search_files Read read
integration__google_drive__google_drive_share_file google_drive.google_drive_share_file Read read
integration__google_drive__google_drive_unshare_file google_drive.google_drive_unshare_file Read read
integration__google_drive__google_drive_star google_drive.google_drive_star Read read
integration__google_drive__google_drive_trash google_drive.google_drive_trash Read read
integration__google_drive__google_drive_unstar google_drive.google_drive_unstar Read read
integration__google_drive__google_drive_untrash google_drive.google_drive_untrash 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.