KosmoKrator

other

Elastic MCP Gateway for AI Agents

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

7 functions 5 read 2 write Username and password auth

Elastic MCP Gateway

Expose Elastic to MCP clients with `kosmokrator mcp:serve --integration=elastic`.

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

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__elastic__elastic_list_indices elastic.elastic_list_indices Read read
integration__elastic__elastic_get_index elastic.elastic_get_index Read read
integration__elastic__elastic_create_index elastic.elastic_create_index Write write
integration__elastic__elastic_search_documents elastic.elastic_search_documents Read read
integration__elastic__elastic_index_document elastic.elastic_index_document Write write
integration__elastic__elastic_get_document elastic.elastic_get_document Read read
integration__elastic__elastic_cluster_health elastic.elastic_cluster_health 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.