Overview
Elasticsearch MCP Server Summary
Overview
The Octodet Elasticsearch MCP Server is a comprehensive Model Context Protocol (MCP) server that provides LLM-powered applications with full access to Elasticsearch operations. It serves as a bridge between AI assistants and Elasticsearch clusters through the standardized MCP interface.
Key Features
🔍 Complete Elasticsearch Operations
- Full CRUD Operations: Create, Read, Update, Delete documents and indices
- Advanced Search: Full Elasticsearch DSL query support with highlighting
- Bulk Operations: Process multiple operations in a single API call for better performance
- Query-Based Operations: Update or delete documents based on complex queries
🛠️ Cluster Management
- Health Monitoring: Real-time cluster health information
- Shard Management: Monitor and manage shard distribution
- Template Management: Handle index templates and aliases
- Index Administration: Create, delete, and manage indices with custom settings
🔧 16 Comprehensive Tools
- List Indices - Browse all available indices with filtering
- Get Mappings - Retrieve field mappings for indices
- Search - Perform advanced searches with DSL queries
- Get Cluster Health - Monitor cluster status
- Get Shards - View shard information
- Add Document - Insert new documents
- Update Document - Modify existing documents
- Delete Document - Remove specific documents
- Update By Query - Batch update documents matching criteria
- Delete By Query - Batch delete documents matching criteria
- Bulk Operations - Execute multiple operations efficiently
- Create Index - Set up new indices with custom configurations
- Delete Index - Remove indices permanently
- Count Documents - Count documents with optional filtering
- Get Templates - Manage index templates
- Get Aliases - Handle index aliases
Server Config
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": [
"-y",
"@octodet/elasticsearch-mcp"
],
"env": {
"ES_URL": "http://localhost:9200",
"ES_API_KEY": "your_api_key",
"ES_VERSION": "8"
}
}
}
}