Elasticsearch Sl MCP Server

Elasticsearch MCP Server with full version support (ES 5.x-9.x) and comprehensive API access

Local serverstdioGo

What is the Elasticsearch Sl MCP server?

Elasticsearch sl mcp server connects Elasticsearch Sl to AI assistants that speak the Model Context Protocol. Elasticsearch MCP Server with full version support (ES 5.x-9.x) and comprehensive API access.

What Elasticsearch Sl does

This is a professional security-focused solution maintained by TocharianOU. It enables comprehensive interaction with all Elasticsearch APIs, specifically optimized for security analysis, threat detection, and incident investigation. Features include advanced security monitoring, anomaly detection, threat hunting, root cause analysis, and comprehensive audit capabilities.

Tools it exposes

Once connected, the assistant can call these 7 tools directly:

  • list_indices — List indices with pattern filter, health filter, sorting and token-aware summary
  • get_mappings — Get field mappings with flat/tree/raw modes, field filtering and multi-index compare
  • es_search — Full Query DSL search with auto-highlight on text/vector fields
  • execute_es_api — Execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD)
  • get_shards — Shard info with health analysis, problem detection and recommendations
  • list_data_streams — List and analyze Data Streams with ILM info and backing index details
  • esql_query — Execute ES\

Installing the elasticsearch sl mcp server

The server is distributed via npm as @tocharianou/elasticsearch-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 6 environment variables: ES_URL, ES_USERNAME, ES_PASSWORD, NODE_TLS_REJECT_UNAUTHORIZED, ES_API_KEY, MCP_HTTP_HOST. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

  • An Elasticsearch instance * A valid Elasticsearch license (trial, platinum, enterprise) is required. * Elasticsearch authentication credentials (API key or username/password) * MCP Client (e.g. Claude Desktop) or HTTP client for remote access > ⚠️ This project requires your Elasticsearch cluster to have a valid license. If you do not have a license, you can activate a trial license as shown

Where it fits

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 Sl sits in that group, and the shape of its toolset — list_indices, get_mappings, es_search 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.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • With 7 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use Elasticsearch Sl.
  • Maintained by TocharianOU, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the elasticsearch sl mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
list_indicesList indices with pattern filter, health filter, sorting and token-aware summary
get_mappingsGet field mappings with flat/tree/raw modes, field filtering and multi-index compare
es_searchFull Query DSL search with auto-highlight on text/vector fields
execute_es_apiExecute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD)
get_shardsShard info with health analysis, problem detection and recommendations
list_data_streamsList and analyze Data Streams with ILM info and backing index details
esql_queryExecute ES\

How to install the Elasticsearch Sl MCP server

**For Source Installation:**
   ```json
   {
     "mcpServers": {
       "elasticsearch-mcp-server-local": {
         "command": "node",
         "args": [
           "/path/to/your/elasticsearch-mcp/dist/index.js"
         ],
         "env": {
           "ES_URL": "your-elasticsearch-url",
           "ES_USERNAME": "elastic",
           "ES_PASSWORD": "your_pass",
           "NODE_TLS_REJECT_UNAUTHORIZED": "0"
         }
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Configuration

  • An Elasticsearch instance * A valid Elasticsearch license (trial, platinum, enterprise) is required. * Elasticsearch authentication credentials (API key or username/password) * MCP Client (e.g. Claude Desktop) or HTTP client for remote access > ⚠️ This project requires your Elasticsearch cluster to have a valid license. If you do not have a license, you can activate a trial license as shown
VariableDescriptionRequired
ES_URLEndpoint or connection string the server talks to.Yes
ES_USERNAMEConfiguration value read at startup.Optional
ES_PASSWORDConfiguration value read at startup.Optional
NODE_TLS_REJECT_UNAUTHORIZEDConfiguration value read at startup.Optional
ES_API_KEYCredential the server authenticates with.Yes
MCP_HTTP_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Elasticsearch Sl to list indices.
  • Use Elasticsearch Sl to get mappings.
  • Use Elasticsearch Sl to es search.

Frequently asked questions

It connects Elasticsearch Sl to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (list_indices, get_mappings, es_search, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Elasticsearch Sl directly.