Elastic Model Context Protocol (MCP) servers
Serverless Stack
Elastic offers two MCP server options for connecting agents to your Elasticsearch data. The Agent Builder MCP server is the recommended approach for Elasticsearch 9.2+ and Serverless deployments, offering full access to built-in and custom tools. For older Elasticsearch versions without Agent Builder, you can use the mcp-elasticsearch server which has a limited tool set.
Serverless Stack
Elastic 9.2.0+ and Serverless deployments provide an Agent Builder MCP server endpoint that exposes all built-in and custom tools you can use to power agentic workflows.
If you're running older versions of Elasticsearch without Agent Builder, you can use elastic/mcp-server-elasticsearch. This MCP server enables connecting agents to your Elasticsearch data and allows you to interact with your Elasticsearch indices through natural language conversations, though with a more limited tool set compared to the Agent Builder MCP server.