loading…
Search for a command to run...
loading…
Exposes Elasticsearch semantic search capabilities as MCP tools, enabling ELSER, kNN, and hybrid search with automatic index setup.
Exposes Elasticsearch semantic search capabilities as MCP tools, enabling ELSER, kNN, and hybrid search with automatic index setup.
A Model Context Protocol (MCP) server that exposes Elasticsearch semantic search capabilities as MCP tools. This server is optimized for Elasticsearch Serverless and managed Elastic Cloud clusters.
Edit the .env file with your connection details:
ELASTICSEARCH_HOSTS=https://your-serverless-endpoint.es.us-east-1.aws.elastic.cloud:443
ELASTICSEARCH_API_KEY=your_api_key
Run the verification suite to ensure your cluster is reachable and tools are registered:
.\venv\Scripts\python.exe verify_server.py
Start the web server with a simple command:
elasticsearch-api
http://localhost:8000http://localhost:8000/docsStart the MCP server with a simple command:
elasticsearch-mcp
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"elasticsearch": {
"command": "C:\\Users\\birar\\Desktop\\elasticsearch-mcp-server\\venv\\Scripts\\python.exe",
"args": ["-m", "elasticsearch_mcp"],
"env": {
"ELASTICSEARCH_HOSTS": "https://your-cluster-url.es.aws.elastic.cloud:443",
"ELASTICSEARCH_API_KEY": "your_api_key_here"
}
}
}
}
es_ping: Check connectivity.es_setup_elser_index: Create a semantic index for ELSER.es_setup_dense_index: Create a semantic index for dense vectors (kNN).es_index_document: Index data through a pipeline.es_semantic_search_elser: Perform sparse semantic search.es_semantic_search_knn: Perform dense kNN search.es_semantic_search_hybrid: Combined keyword and semantic search.es_delete_index: Safely remove indices.Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.