kibana-mcp

v0.1.1
io.github.mshegolev/kibana-mcp Checked 17 hours ago Published 7 months ago

Kibana/Elasticsearch MCP — log search, aggregations, index discovery, dashboards.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
KIBANA_URLrequired Kibana base URL (e.g. https://kibana.example.com)
ELASTICSEARCH_URLoptional Direct Elasticsearch URL. If unset, ES requests route through the Kibana Console proxy.
KIBANA_API_KEYoptional secret Elasticsearch API key (ApiKey base64(id:api_key) format). Takes priority over Basic auth.
KIBANA_USERNAMEoptional HTTP Basic auth username. Used only when KIBANA_API_KEY is not set.
KIBANA_PASSWORDoptional secret HTTP Basic auth password.
KIBANA_SSL_VERIFYoptional Verify SSL certificates (true/false). Set to 'false' for self-signed certs. Default: true

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add kibana-mcp -e 'KIBANA_URL=<KIBANA_URL>' -- uvx --with 'mcp<2' kibana-mcp==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kibana-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "kibana-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "KIBANA_URL": "<KIBANA_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kibana-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "kibana-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "KIBANA_URL": "<KIBANA_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "KIBANA_URL",
      "id": "kibana-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "kibana-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "kibana-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "KIBANA_URL": "${input:kibana-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kibana-mcp]
command = "uvx"
args = ["--with", "mcp<2", "kibana-mcp==0.1.1"]
env = { "KIBANA_URL" = "<KIBANA_URL>" }

For AI agents

  1. Ask the user for: KIBANA_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: kibana_list_indices, kibana_search_logs, kibana_aggregate_logs, kibana_list_dashboards, kibana_get_dashboard.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json