Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"kibana": {
"env": {
"KIBANA_URL": "https://my-kibana.example.com",
"KIBANA_PASSWORD": "changeme",
"KIBANA_USERNAME": "elastic"
},
"command": "/path/to/kibana-mcp-server"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for accessing logs in Kibana/Elasticsearch.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'kibana-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked kibana-mcp-server against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in analytics / devops
MCP server for using the GitLab API
MCP Server for GCP environment for interacting with various Observability APIs.
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
Enhanced MCP server for GitLab: group projects listing and activity tracking
MCP Security Weekly
Get CVE alerts and security updates for Kibana Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server for accessing logs in Kibana/Elasticsearch.
Standalone binary that exposes log search tools over MCP (Model Context Protocol) via stdio or HTTP transport using JSON-RPC 2.0. Supports both Elasticsearch and Kibana backends with automatic detection.
search_logs — search logs using Elasticsearch query string syntax with time range filtering and paginationget_indices — list available indices (ES) or index patterns (Kibana)get_log_context — get surrounding log entries for a specific document--http flagSingle crate, six source modules:
| Module | Responsibility |
|---|---|
src/main.rs | Entry point, transport selection |
src/cli.rs | CLI argument parsing |
src/config.rs | Configuration from environment variables |
src/mcp.rs | JSON-RPC 2.0 dispatch, MCP tool definitions, async stdio read/write loop |
src/http.rs | HTTP transport: axum server, Bearer auth, session management |
src/kibana.rs | HTTP client for Elasticsearch/Kibana REST API |
src/tools.rs | MCP tool implementations, log entry formatting |
kibana-mcp-server [COMMAND]
Commands:
--stdio Run in stdio mode (default)
--http Run in HTTP mode
--version Print version and exit
--help Print this help and exit
| Variable | Description | Mode | Required |
|---|---|---|---|
KIBANA_URL | Kibana or Elasticsearch base URL | Both | Yes |
KIBANA_INSECURE | Skip TLS verification ("true" or "1") | Both | No |
KIBANA_USERNAME | Username for basic authentication | Stdio only | No |
KIBANA_PASSWORD | Password for basic authentication | Stdio only | No |
KIBANA_API_KEY | API key for Elasticsearch authentication | Stdio only | No |
MCP_HOST | Host to bind HTTP server [default: 127.0.0.1] | HTTP only | No |
MCP_PORT | Port for HTTP server [default: 8080] | HTTP only | No |
MCP_AUTH_TOKEN | Bearer token for HTTP authentication | HTTP only | No |
In HTTP mode, Kibana credentials are not configured via environment variables. Instead, each client provides its own credentials through HTTP headers on the initialize request:
| Header | Description |
|---|---|
X-Kibana-Username + X-Kibana-Password | Basic authentication |
X-Kibana-API-Key | API key authentication |
The two schemes are mutually exclusive. Credentials are stored per-session and used for all subsequent requests within that session.
cargo build --release
| Crate | Purpose |
|---|---|
reqwest | HTTP client for Elasticsearch/Kibana API |
serde, serde_json | JSON serialization for MCP protocol and ES queries |
tracing, tracing-subscriber | Structured logging to stderr |
axum | HTTP server framework for MCP HTTP transport |
tokio | Async runtime |
uuid | Session ID generation (UUID v4) |
The server supports two transport mod