Search and analyze data with Elasticsearch
npx -y @modelcontextprotocol/server-elasticsearch-mcp-server
Paste this into your MCP client configuration (Cursor, Windsurf, etc).
Connect to Elasticsearch for search and analytics.
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": ["-y", "@elastic/mcp-server-elasticsearch"],
"env": {
"ELASTICSEARCH_URL": "http://localhost:9200",
"ELASTICSEARCH_API_KEY": "your-api-key"
}
}
}
}
search: Full-text searchindex: Index documentsdelete: Remove documentsaggregate: Run aggregationsMCP (Model Context Protocol) servers extend your AI assistant with external tools and data sources. Follow these steps to install Elasticsearch MCP Server in your preferred AI coding tool.
claude_desktop_config.json