elastic-mcp
Click on "Install 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., "@elastic-mcpdiagnose issue in payment service"
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 Elasticsearch Logs
Servidor MCP pequeno y orientado a produccion para diagnosticar incidencias desde logs en Elasticsearch con esquema desconocido.
Que hace
Conexion a Elasticsearch con cliente async oficial.
Descubrimiento dinamico de schema con
_field_caps+ validacion opcional con documento reciente.Tools MCP enfocadas en diagnostico de logs.
Respuesta normalizada (no devuelve hits crudos como salida principal).
Related MCP server: Elasticsearch MCP Server
Tools soportadas
pingdiscover_log_schemaget_latest_logsget_logs_for_serviceget_logs_by_correlation_iddiagnose_issue
Referencia detallada de cada tool en tools.md.
Variables de entorno
ELASTICSEARCH_URL(requerida)ELASTICSEARCH_API_KEY(opcional, preferida si el cluster usa auth)ELASTICSEARCH_USERNAME(opcional)ELASTICSEARCH_PASSWORD(opcional)ELASTICSEARCH_INDEX_PATTERN(default:logs-*)ELASTICSEARCH_VERIFY_CERTS(default:true)ELASTICSEARCH_CA_CERTS(opcional)
Reglas de autenticacion:
Si existe
ELASTICSEARCH_API_KEY, se usa esa.Si no, y existen
ELASTICSEARCH_USERNAME+ELASTICSEARCH_PASSWORD, se usa basic auth.Si no hay credenciales, el cliente conecta sin autenticacion.
Como funciona el schema discovery
Consulta
_field_capssobre el index pattern configurado.Detecta campos candidatos para timestamp, message, level, service y correlation.
Aplica listas ordenadas de prioridad.
Si hay sample document, prioriza campos realmente poblados.
Devuelve schema parcial (
nullen lo no encontrado).
Filtro temporal
Se soporta:
lastrelativo (15m,1h,24h,7d)start/endexplicitos (ISO datetime)
Reglas:
lastno se puede combinar constart/end.formatos invalidos se rechazan.
start > endse rechaza.
Ejecucion local
python3.14 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"Configura entorno (ejemplo):
cp .env.example .envArranque en stdio (default):
mcp-elastic-logsArranque en red (streamable-http):
python -m mcp_elastic_logs.server --transport streamable-http --host 0.0.0.0 --port 8093Ejecucion con Docker
Preparar variables:
cp .env.example .envBuild de imagen:
docker build -t mcp-elastic-logs:latest .Ejecutar contenedor:
docker run --rm -p 8093:8093 --env-file .env mcp-elastic-logs:latestEjecucion con Docker Compose
docker compose up --buildEl servicio queda escuchando en http://localhost:8093 con transporte streamable-http.
Entorno de test (Elastic + Kibana + Logstash + MCP)
Tambien tienes un stack de test completo en docker-compose.test.yml, basado en tu plantilla, con un servicio extra seed-logs que carga documentos de ejemplo en logs-test-000001 para poder probar tools inmediatamente.
Arranque:
docker compose -f docker-compose.test.yml up --buildServicios disponibles:
Elasticsearch:
http://localhost:9200Kibana:
http://localhost:5601MCP server:
http://localhost:8093
Nota: este stack de test usa Elasticsearch con seguridad deshabilitada (xpack.security.enabled=false).
El MCP puede conectar sin credenciales en ese escenario, asi que el compose de test no necesita valores dummy.
Configuracion de cliente MCP (ejemplo)
{
"mcpServers": {
"elastic-logs": {
"command": "mcp-elastic-logs",
"env": {
"ELASTICSEARCH_URL": "https://localhost:9200",
"ELASTICSEARCH_API_KEY": "<your-api-key>",
"ELASTICSEARCH_INDEX_PATTERN": "logs-*",
"ELASTICSEARCH_VERIFY_CERTS": "false"
}
}
}
}Documentacion auxiliar
tools.md: detalle de tools, parametros y comportamiento.Agents.md: objetivo del proyecto, stack usado y guia de lectura.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables interaction with Elasticsearch and OpenSearch clusters for searching documents and managing indices. It provides tools for cluster health monitoring, index configuration, and general API requests.Last updated16Apache 2.0
- Alicense-qualityDmaintenanceMCP server that provides tools and resources to interact with Elasticsearch clusters, including listing indices, searching, and retrieving mappings.Last updated3MIT
- AlicenseAqualityCmaintenanceMCP server that transforms raw log query results into structured incident reports (Markdown, JSON, HTML) with correlation to git commits and tickets.Last updated5191MIT
- Alicense-qualityBmaintenanceA read-only MCP server that exposes Quickwit log search and aggregations to LLM clients, enabling natural language log investigation.Last updatedApache 2.0
Related MCP Connectors
MCP server for hex.pm and hexdocs.pm: search, inspect, compare, and audit Elixir packages
An MCP server for deep research or task groups
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jrvalinas/elastic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server