
Elasticsearch
The Elasticsearch MCP Server (now deprecated in favor of Elastic Agent Builder) provides AI agents with natural language access to Elasticsearch indices through the Model Context Protocol, enabling agents to query, analyze, and retrieve data without requiring custom APIs. The server offers tools for connecting AI clients to Elasticsearch clusters via stdio or streamable-HTTP protocols, supporting authentication through API keys or username/password credentials. It solves the problem of integrating Elasticsearch data sources with AI agents, allowing them to interact with indexed data through natural language conversations rather than direct API calls.
- GitHub stars
- 662
- tools
- 5
- last updated
- Mar 6, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
list_indicesList all available Elasticsearch indices
List all available Elasticsearch indices
No parameter schema in public metadata yet.
get_mappingsGet field mappings for a specific Elasticsearch index
Get field mappings for a specific Elasticsearch index
No parameter schema in public metadata yet.
searchPerform an Elasticsearch search using query DSL
Perform an Elasticsearch search using query DSL
No parameter schema in public metadata yet.
esqlExecute an ES|QL query
Execute an ES|QL query
No parameter schema in public metadata yet.
get_shardsGet shard information for all or specific indices
Get shard information for all or specific indices
No parameter schema in public metadata yet.
Sponsors
Readme
Elasticsearch MCP Server
[!CAUTION] This MCP server is deprecated and will only receive critical security updates going forward. It has been superseded by the Elastic Agent Builder MCP endpoint, which is available in Elastic 9.2.0+ and Elasticsearch Serverless projects.
Use the Elasticsearch MCP Server for AI Agents
The Elasticsearch MCP Server connects your AI agents to Elasticsearch data using the Model Context Protocol (MCP). It enables natural language interactions with your Elasticsearch indices, allowing agents to query, analyze, and retrieve data without custom APIs.
Follow these steps to deploy and configure the Elasticsearch MCP Server container image from AWS Marketplace.
Before you begin
Before you start, ensure you have:
Details
- Repository
- github.com/elastic/mcp-server-elasticsearch
- Categories
- Databases, Search & Web Crawling, Data & Analytics