KosmoKrator

data

Dgraph MCP Gateway for AI Agents

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

9 functions 6 read 2 write API token auth

Dgraph MCP Gateway

Expose Dgraph to MCP clients with `kosmokrator mcp:serve --integration=dgraph`.

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

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__dgraph__dgraph_list_schema dgraph.dgraph_list_schema Read read
integration__dgraph__dgraph_get_schema dgraph.dgraph_get_schema Read read
integration__dgraph__dgraph_list_types dgraph.dgraph_list_types Read read
integration__dgraph__dgraph_list_indexes dgraph.dgraph_list_indexes Read read
integration__dgraph__dgraph_get_node dgraph.dgraph_get_node Read read
integration__dgraph__dgraph_mutate dgraph.dgraph_mutate Write write
integration__dgraph__dgraph_drop_mutation dgraph.dgraph_drop_mutation Write write
integration__dgraph__dgraph_query dgraph.dgraph_query action action
integration__dgraph__dgraph_get_current_user dgraph.dgraph_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.