mcp-kibana
Provides tools for exploring Kibana APM data through Kibana's internal /internal/apm/* routes, mirroring the aggregates shown in the APM UI. Supports listing APM services (latency, error rate, throughput) over a time window, listing transaction groups of a service with avg/p95/p99 latency, listing error groups (name, occurrences, culprit, type), fetching trace samples (traceId, transactionId) filtered by min/max duration to find slow requests, and retrieving a full trace waterfall of transactions and spans with durationUs/offsetUs. Typical flow: inspect slow transaction groups, pull slow trace samples for a transaction name, then fetch the trace waterfall.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-kibanawhich APM services have the highest error rate in the last hour?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-kibana
MCP-сервер для Kibana APM в Cursor и Claude Code: сервисы, группы транзакций, группы ошибок, сэмплы трейсов и водопад трейса.
Сервер ходит во внутренние роуты Kibana /internal/apm/* — те же агрегаты, что показывает UI APM. Сырые логи и документы traces-apm* ищут другими средствами (например, MCP Gateway logs); здесь только то, что считает Kibana.
Быстрый старт (npx, без клона)
Добавить в MCP-конфиг (~/.cursor/mcp.json, .mcp.json или project config):
{
"mcpServers": {
"kibana": {
"command": "npx",
"args": ["-y", "github:CynepHy6/mcp-kibana#semver:^1"],
"env": {
"KIBANA_BASE_URL": "https://kibana.example.com",
"KIBANA_API_KEY": "your_api_key"
}
}
}
}Креды передаются только через env в MCP-конфиге (файл .env рядом с репозиторием при npx не используется).
Переменная | Нужна | Примечание |
| всегда | адрес Kibana, не кластера Elasticsearch |
| или логин с паролем | уходит как |
| если нет API key | Basic auth |
| нет | таймаут запроса, по умолчанию |
Без кредов сервер стартует, а каждый tool отвечает текстом ошибки конфигурации.
Версия в args
npx скачивает пакет из GitHub по адресу github:CynepHy6/mcp-kibana. Суффикс после # выбирает, какую версию установить:
каждый релиз помечен git-тегом вида
v1.0.0(история — в CHANGELOG.md);npxсохраняет установку в~/.npm/_npx/<hash>/, где hash зависит от строки вargs.
Ref | Пример | Когда использовать |
диапазон |
| по умолчанию; при старте MCP подтягивает максимальный git-тег |
конкретный тег |
| зафиксировать версию |
Обновление: с #semver:^1 новый релиз v1.x обычно подтягивается при старте MCP — reload клиента чаще всего достаточно. С #v1.0.0 версия зафиксирована: смените ref. Если не помогло — npx clear-npx-cache и снова reload MCP.
Related MCP server: Kibana Dashboard Builder
Альтернатива: локальный клон
git clone https://github.com/CynepHy6/mcp-kibana.git
cd mcp-kibana
cp .env.example .env # заполнить креды
npm install && npm run compile{
"mcpServers": {
"kibana": {
"command": "node",
"args": ["/absolute/path/to/mcp-kibana/build/index.js"]
}
}
}Что умеет
Tool | Что отдаёт |
| сервисы за окно: |
| группы транзакций сервиса; latency |
| группы ошибок сервиса: |
|
|
| водопад трейса: транзакции и спаны с |
Типичная цепочка для медленной ручки: list-apm-transactions (p95) → list-apm-trace-samples с именем транзакции → get-apm-trace.
Окно —
start/endв ISO-8601; без зоны — UTC. Без границ — последние 15 минут.latencyMs— миллисекунды;durationUsиoffsetUs— микросекунды.Элементы
get-apm-traceидут не по времени, сортировать поoffsetUs.Пустой список — за окно ничего нет, не ошибка. Сэмплируется не каждый запрос.
truncatedилиexceedsMax— список или водопад неполный.
Разработка
npm install
npm test
npm run compile
./test-tool.sh list-apm-services '{"limit": 5}'Релиз: поднять version в package.json, дописать CHANGELOG.md, push в master. CI прогоняет тесты, собирает build/, публикует ветку dist и тег v{version}.
This server cannot be deployed
Maintenance
Related MCP Connectors
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
- SuperlogOAuthsh.superlog
Open-source agent that observes and fixes your application. Query logs, traces, metrics, incidents.
Read-only analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.
Monitoring + status pages set up by talking to Claude. Auto-detects 30+ SDKs and your URLs.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Kibana dashboards, visualizations, and Elasticsearch data through read-only resources and executable tools for searching logs, exporting dashboards, and querying data.719 npm3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to create and manage Kibana dashboards, Lens visualizations, and data views via the Kibana Saved Objects API. It allows for programmatically listing existing resources and assembling new visualizations into dashboards through natural language commands.-
- FlicenseAqualityDmaintenanceEnables AI agents to access New Relic logs and APM data through the NerdGraph API. It allows users to execute NRQL queries, retrieve application performance metrics, and analyze transaction traces using natural language.61-
- AlicenseAqualityDmaintenanceEnables AI assistants to search Elasticsearch logs, retrieve log details, analyze service health, scan local codebases for APIs, and create Kibana dashboards.519 npmMIT