elastic avatar

Elasticsearch

elastic/mcp-server-elasticsearchOfficial

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 tools

Public 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:


View the full README on GitHub

Details

Repository
github.com/elastic/mcp-server-elasticsearch
Categories
Databases, Search & Web Crawling, Data & Analytics

Related Databases MCP servers

View all
1richardhan avatarMicrosoft SQL Serverrichardhan/mssql_mcp_serverProvides MCP access to Microsoft SQL Server databases with multi-method authentication and SQL operations via Claude Desktop.345stars
2cr7258 avatarElasticsearch Mcp Servercr7258/elasticsearch-mcp-serverMCP server for interacting with Elasticsearch289stars
3tocharianou avatarElasticsearchtocharianou/elasticsearch-mcpElasticsearch MCP Server for ES 5.x-9.x with a query harness, field validation and full API access8stars
4timescale avatarTiger Skillstimescale/tiger-skills-mcp-serverProvider agnostic skills implementation, with skills sourced from local paths or GitHub repositories7stars
5neverinfamous avatarMysql Mcpneverinfamous/mysql-mcpEnterprise-grade MySQL MCP Server with OAuth 2.0, 106 tools, and Docker deployment5stars
6marcelo-ochoa avatarMysqlmarcelo-ochoa/serversAn MCP server for MySQL databases.0stars