Elasticsearch MCP Server
Provides tools for searching and analyzing logs stored in Elasticsearch clusters, including error pattern analysis, performance issue detection, cluster health monitoring, and index performance optimization through natural language queries.
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., "@Elasticsearch MCP Servershow me all 5xx errors from 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.
Elasticsearch MCP Server
An AI-powered log analysis tool that connects Claude Desktop directly to your Elasticsearch cluster. Ask Claude questions about your logs in plain English and get intelligent insights.
What it does
Instead of writing complex Elasticsearch queries, just ask Claude things like:
"Show me all 5xx errors from the last hour"
"What's causing the slow database queries?"
"Find unique IPs hitting my API in the last 5 minutes"
"Is my Elasticsearch cluster healthy?"
Claude will search your logs, analyze patterns, and give you actionable insights.
Related MCP server: elasticsearch-mcp
Quick setup
1. Install dependencies
cd mcp-elasticsearch
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt2. Build the extension
npm install -g @anthropic-ai/dxt
dxt init # Use 'mcp-elasticsearch-server.py' as entry point
dxt pack3. Install in Claude Desktop
Double-click the generated
mcp-elasticsearch.dxtfileClick "Install" when prompted
Restart Claude Desktop
That's it! Now you can chat with your logs.
Real examples
You: "Find unique public IPs for ingress traffic in the last 5 minutes"
Configuration
The extension connects to localhost:9200 by default. To change this, edit the ES_HOST in manifest.json:
"env": {
"ES_HOST": "your-elasticsearch-host:9200"
}For secured clusters, you can add username/password through environment variables.
Requirements
Elasticsearch 7.x or 8.x (tested with v8)
Python 3.8+
Claude Desktop (latest version)
Node.js (for building the extension)
Troubleshooting
Extension won't install?
Make sure you have the latest Claude Desktop
Try removing old extensions first
Connection errors?
Check if Elasticsearch is running
Verify the host/port in your config
Still having issues?
# Test the connection manually
source venv/bin/activate
python -c "from elasticsearch import Elasticsearch; print('Connected:', Elasticsearch(['localhost:9200']).ping())"What's included
The MCP server gives Claude these tools:
search_elasticsearch_logs- Basic log searchinganalyze_error_patterns- Find and categorize errorsanalyze_performance_issues- Detect slow operationsget_cluster_health- Monitor Elasticsearch healthanalyze_index_performance- Optimize index performance
Time ranges
Use natural language for time ranges:
"last 5 minutes", "1 hour", "2 days", "1 week"
Or shortcuts like "5m", "1h", "2d", "1w"
License
MIT - use it however you want.
Ready to chat with your logs? Install the extension and start asking Claude questions about your Elasticsearch data!
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect Claude, Cursor, or ChatGPT to your business data. Ask questions, get answers.
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Related MCP Servers
AlicenseBqualityDmaintenanceConnects Claude and other MCP clients to Elasticsearch data, allowing users to interact with their Elasticsearch indices through natural language conversations.31,413 npm711Apache 2.0- AlicenseAqualityDmaintenanceEnables AI assistants to search, analyze, and interact with Elasticsearch through natural language.18Apache 2.0
- -licenseNot gradedqualityNot gradedmaintenanceEnables querying Elasticsearch logs from AI assistants using natural language, with optional SSH tunnel support.-
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered business intelligence queries on Elasticsearch data using natural language and Claude integration via MCP.-