Elasticsearch MCP Server

Elasticsearch MCP Server

Local serverstdioGo

What is the Elasticsearch MCP Server?

Elasticsearch MCP lets Claude, Cursor and other MCP clients work with Elasticsearch MCP directly. Elasticsearch MCP Server.

What Elasticsearch MCP does

MCP Server for connecting to your Elasticsearch cluster directly from any MCP Client (like Claude Desktop, Cursor).

Requirements

  • An Elasticsearch instance * Elasticsearch authentication credentials (API key or username/password) * MCP Client (e.g. Claude Desktop, Cursor)

Practical notes

  • Maintained by awesimon, written in Go.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
elasticsearch_healthGet Elasticsearch cluster health status, optionally including index-level details
list_indicesList available Elasticsearch indices, support regex
create_indexCreate Elasticsearch index with optional settings and mappings
reindexReindex data from a source index to a target index with optional query and script
get_mappingsGet field mappings for a specific Elasticsearch index
create_mappingCreate or update mapping structure for an Elasticsearch index
searchPerform an Elasticsearch search with the provided query DSL
bulkBulk data into an Elasticsearch index
create_index_templateCreate or update an index template
get_index_templateGet information about index templates
delete_index_templateDelete an index template

How to install the Elasticsearch MCP Server

{
  "mcpServers": {
    "elasticsearch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@awesome-ai/elasticsearch-mcp"
      ],
      "env": {
        "ES_HOST": "your-elasticsearch-host",
        "ES_API_KEY": "YOUR_ES_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • An Elasticsearch instance * Elasticsearch authentication credentials (API key or username/password) * MCP Client (e.g. Claude Desktop, Cursor)
VariableDescriptionRequired
ES_HOSTDeclared in the maintainer’s client configuration.Check documentation
ES_API_KEYDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Elasticsearch MCP to elasticsearch health.”
  • “Use Elasticsearch MCP to list indices.”
  • “Use Elasticsearch MCP to create index.”

Frequently asked questions

Elasticsearch MCP Server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.