MCP Server
Elasticsearch MCP Server
by Elastic
Connect Elasticsearch indices to any MCP client.
About Elasticsearch
Connects agents to Elasticsearch data via MCP, allowing interaction with Elasticsearch indices through natural language. Users can ask questions about their data, list indices, inspect field mappings, and execute Elasticsearch queries using full Query DSL capabilities.
Tags
searchelasticsearchindexingquery-dsl
How to install Elasticsearch
Add the following entry to your MCP client config (e.g. claude_desktop_config.json or .mcp.json). Refer to the official repository for the exact command, package name, and required environment variables.
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-elasticsearch"]
}
}
}Example shape only — see the repository for the canonical install command.