mcp-for-kibana

An MCP server for Kibana: an LLM works with Kibana through 143 purpose-built tools in 10 toolboxes you enable per deployment, instead of about 610 raw REST endpoints.

Measured: MCP against Direct API

Claude Code did one long Kibana job 600 times, with three models, either through this server's tools (MCP) or by calling Kibana's REST API itself from the shell with the pinned API reference (Direct API). Every run passed every check. Median per run, MCP ÷ Direct API; below 1, MCP is cheaper or faster.

ModelCost ratioTime ratio
Haiku 5.50.3195%: 0.29–0.320.3595%: 0.33–0.36
Sonnet 5.50.7695%: 0.73–0.790.6895%: 0.67–0.69
Opus 5.50.5695%: 0.55–0.590.6295%: 0.58–0.66

Limits: one job, Kibana 9.5.5, server 0.4.0, list-price cost. 593 of 600 runs started with the prompt already cached, so the ratios describe repeated use; on a cold cache (one run each) MCP cost more for Sonnet 5.5 and Opus 5.5. Medians with 95% bootstrap intervals, from analysis.json.

The full study: method, charts, data and harness

What it does

ToolboxToolsCovers
dashboards16Lens visualizations and dashboards from a declarative spec
data-management11Data views and short URLs
alerting15Alerting rules and connectors
cases6Cases: create, comment, update status
security-detections25Detection rules, exception lists, value lists
fleet35Agents, agent and package policies, outputs, enrollment
streams12Streams: list, summary, ingest and processing (Technical Preview)
observability10Synthetics monitors, Uptime settings, APM agent configuration
platform-admin10Spaces, roles, upgrade readiness
platform-health3Cluster and Kibana status and health

Arguments and return shape of every tool: tool reference.

Install

From PyPI, with a Kibana API key:

export KIBANA_URL=https://your-kibana.example.com
export KIBANA_API_KEY=<your Kibana API key>
uvx mcp-for-kibana
# or: pip install mcp-for-kibana

It runs on stdio by default. Connecting Claude Code, LM Studio or an HTTP client, and a disposable local Kibana with sample data: user guide, configuration, deployment.

Studies