stdio · one caller
A local tool
agentserverKibana
- Bootstrap it from Codex or any MCP client, in one command.
- Credentials stay in the secret store of your operating system.
- Also runs from a cloned repository (Repo + Codex).
Read-onlyModel Context Protocolstdio & HTTP
A read-only MCP server that turns Kibana logs into sources an agent can discover, fields it can inspect and results it can read.
{ "query": "checkout" }{ "source_id": "app-logs", "query": "service" }{ "mode": "histogram", "text": "timeout", "histogram_interval": "5m" }Get started
Bootstrap verifies the connection and registers the server. It does not pick an index. The agent follows one rule: "Ask the user which exact Kibana index or index pattern to use." Only then does it call configure_index with that value.
export KIBANA_BASE_URL='https://kibana.example.com'
export KIBANA_USERNAME='elastic'
export KIBANA_PASSWORD='use-a-secret-provider'
npx -y @havesomecode/kibana-mcp-server bootstrap --client codexnpx skills add Havesomecode/kibana-mcp-server --skill kibana-log-investigation# One process for every caller of your gateway, each with their own catalog
kibana-mcp-server serve --http --config ./kibana.mcp.config.tsWhy this server
An operator exposes a short catalog of named sources. The agent starts there instead of wandering through every index of the cluster.
The agent sees which fields exist and which ones match exactly, so a filter on service.name means what it says.
Hits, counts, histograms and statistics come back typed. Query and filter responses include a query_echo of what was actually searched.
No source is configured until a person names the index, and nothing is ever written to Elasticsearch or Kibana.
Choose your path
stdio · one caller
agentserverKibana
HTTP · many callers
agentsgatewayserverKibana
Looking for a tool input or an option? Go to the reference. Schema-aware features depend on the deployment: when Kibana does not expose field metadata, fields are sampled through search instead.
Built for agents
The whole site is published for language models: an llms.txt index, one full file, and a Markdown twin of every page.
Install the skill and the MCP server together from the Claude Code marketplace, or register it in Codex with one command.
The investigation workflow and its safety rules, installable with skills.sh for Cursor, Gemini CLI and others.