Elasticsearch MCP Server
Elasticsearch mcp mcp server lets Claude, Cursor and other MCP clients work with Elasticsearch MCP directly. Elasticsearch MCP Server.
MCP Server for connecting to your Elasticsearch cluster directly from any MCP Client (like Claude Desktop, Cursor).
Once connected, the assistant can call these 14 tools directly:
elasticsearch_health — Get Elasticsearch cluster health status, optionally including index-level detailslist_indices — List available Elasticsearch indices, support regexcreate_index — Create Elasticsearch index with optional settings and mappingsreindex — Reindex data from a source index to a target index with optional query and scriptget_mappings — Get field mappings for a specific Elasticsearch indexcreate_mapping — Create or update mapping structure for an Elasticsearch indexsearch — Perform an Elasticsearch search with the provided query DSLbulk — Bulk data into an Elasticsearch indexcreate_index_template — Create or update an index templateget_index_template — Get information about index templatesdelete_index_template — Delete an index templateES_HOST — Your Elasticsearch instance URL(s) - supports single URL or comma-separated multiple URLs (also supports legacy HOST)ES_API_KEY — Elasticsearch API key for authentication (also supports legacy API_KEY)ES_USERNAME — Elasticsearch username for basic authentication (also supports legacy USERNAME)Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.
Before the server will start you need to supply 2 environment variables: ES_HOST, ES_API_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.
Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Elasticsearch MCP sits in that group, and the shape of its toolset — elasticsearch_health, list_indices, create_index among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| elasticsearch_health | Get Elasticsearch cluster health status, optionally including index-level details |
| list_indices | List available Elasticsearch indices, support regex |
| create_index | Create Elasticsearch index with optional settings and mappings |
| reindex | Reindex data from a source index to a target index with optional query and script |
| get_mappings | Get field mappings for a specific Elasticsearch index |
| create_mapping | Create or update mapping structure for an Elasticsearch index |
| search | Perform an Elasticsearch search with the provided query DSL |
| bulk | Bulk data into an Elasticsearch index |
| create_index_template | Create or update an index template |
| get_index_template | Get information about index templates |
| delete_index_template | Delete an index template |
| ES_HOST | Your Elasticsearch instance URL(s) - supports single URL or comma-separated multiple URLs (also supports legacy HOST) |
| ES_API_KEY | Elasticsearch API key for authentication (also supports legacy API_KEY) |
| ES_USERNAME | Elasticsearch username for basic authentication (also supports legacy USERNAME) |
{
"mcpServers": {
"elasticsearch-mcp": {
"command": "npx",
"args": [
"-y",
"@awesome-ai/elasticsearch-mcp"
],
"env": {
"ES_HOST": "your-elasticsearch-host",
"ES_API_KEY": "your-api-key"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| ES_HOST | Endpoint or connection string the server talks to. | Optional |
| ES_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.