Best for: verified machine install without prompts or config edits
npx -y @havesomecode/kibana-mcp-server bootstrap --client codex
Read-only MCP for Kibana-backed log investigation
Give agents structured access to source discovery, field inspection, and focused queries without relying on brittle UI automation.
Pick the install path that fits your workflow.
Best for: verified machine install without prompts or config edits
npx -y @havesomecode/kibana-mcp-server bootstrap --client codex
Best for: Codex users who want the repo-local plugin workflow
git clone https://github.com/Havesomecode/kibana-mcp-server.git
cd kibana-mcp-server
npm install
npm run build
node dist/src/index.js bootstrap --client none
Synthetic investigation example
This public example uses invented services and counts. It follows the supported flow from source selection to structured results without exposing an operator's logs.
Start from named sources instead of hunting through raw Kibana index structure.
When schema endpoints are available, agents can validate exact-match fields before pushing into grouped or filtered analysis.
Ask for hits, counts, histograms, terms, stats, or grouped top hits. The response keeps the query bounds and filters visible beside the result.
Why it exists
Kibana is powerful, but repeatable agent workflows break down when every investigation depends on UI state, local conventions, or one-off wrappers. This MCP adds a structured path on top of the log sources you already expose.
Read-only by design
No writes to Kibana, Elasticsearch, or data views.
Real install paths
Use `npx` directly or the repo-local Codex plugin workflow.
Maintained release path
Install from the package, inspect tagged releases, or review the repo directly.
Built for real investigation workflows
Discover sources
The operator controls a bounded catalog of sources, names, tags, and field hints. Agents investigate within that catalog instead of starting from raw index details.
Inspect fields
describe_fields helps when the deployment exposes schema metadata.
Without it, the rest of the query workflow still works.
Run tighter queries
Query and filter responses include a query_echo with the selected sources,
time bounds, filters, and mode, so their scope remains inspectable.
Reuse saved setup
Guided setup saves machine-level profile state so new threads do not need a manual
configure step just to get back to investigation work.
Install
Both paths work. Pick the one that matches how you work today. Bootstrap creates an
empty catalog. Ask the user which exact Kibana index or index pattern to use. Only then
call configure_index with that value.
npx -y @havesomecode/kibana-mcp-server bootstrap --client codex
Verifies only the Kibana connection, creates an empty catalog, and registers Codex without prompts.
git clone https://github.com/Havesomecode/kibana-mcp-server.git
cd kibana-mcp-server
npm install
npm run build
node dist/src/index.js bootstrap --client none
Install the local plugin, bootstrap a verified profile, and let Codex threads reuse it.
npx skills add Havesomecode/kibana-mcp-server --skill kibana-log-investigation --agent codex --global --yes
Teaches the agent to ask for an exact index before calling configure_index.
Environment notes
The main workflow works across deployments. Some features depend on schema metadata being exposed.
Read-only source discovery, field inspection, exact-field filtering, and structured queries over Kibana-backed logs.
It does not write to Kibana or Elasticsearch, and it does not try to turn log investigation into a broader automation product.
Schema-aware features depend on the deployment. If metadata endpoints are blocked, those features may be limited or unavailable.
Ready to use it?