KosmoKrator

ai

Google Gemini MCP Gateway for AI Agents

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

7 functions 6 read 1 write API key auth

Google Gemini MCP Gateway

Expose Google Gemini to MCP clients with `kosmokrator mcp:serve --integration=google-gemini`.

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

Serve Manually

kosmokrator mcp:serve --integration=google-gemini --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__google_gemini__gemini_list_models google-gemini.gemini_list_models Read read
integration__google_gemini__gemini_get_model google-gemini.gemini_get_model Read read
integration__google_gemini__gemini_generate_content google-gemini.gemini_generate_content Write write
integration__google_gemini__gemini_list_files google-gemini.gemini_list_files Read read
integration__google_gemini__gemini_get_file google-gemini.gemini_get_file Read read
integration__google_gemini__gemini_list_tuned_models google-gemini.gemini_list_tuned_models Read read
integration__google_gemini__gemini_get_current_user google-gemini.gemini_get_current_user 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.