KosmoKrator

ai

Hugging Face MCP Gateway for AI Agents

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

7 functions 7 read 0 write Bearer token auth

Hugging Face MCP Gateway

Expose Hugging Face to MCP clients with `kosmokrator mcp:serve --integration=huggingface`.

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

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__huggingface__huggingface_list_models huggingface.huggingface_list_models Read read
integration__huggingface__huggingface_get_model huggingface.huggingface_get_model Read read
integration__huggingface__huggingface_list_datasets huggingface.huggingface_list_datasets Read read
integration__huggingface__huggingface_get_dataset huggingface.huggingface_get_dataset Read read
integration__huggingface__huggingface_list_spaces huggingface.huggingface_list_spaces Read read
integration__huggingface__huggingface_get_space huggingface.huggingface_get_space Read read
integration__huggingface__huggingface_get_current_user huggingface.huggingface_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.