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.

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

Practical notes

  • Maintained by TocharianOU, 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
querythe ES|QL string (required)
paramspositional parameters replacing ? placeholders (optional)
include_typesinclude column type info in output (optional, default false)
break_token_rulebypass token limit for large results (optional, default false)
skip_lintbypass harness field validation (optional, default false)
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, plus harness field validation / auto-fix
lookup_fieldsFind the right field names: ECS vocabulary intersected with the index's real 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

{
  "mcpServers": {
    "elasticsearch-mcp-server": {
      "command": "npx",
      "args": [
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "your-elasticsearch-url",
        "ES_USERNAME": "elastic",
        "ES_PASSWORD": "YOUR_ES_PASSWORD",
        "NODE_TLS_REJECT_UNAUTHORIZED": "0"
      }
    }
  }
}

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

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_URLDeclared in the maintainer’s client configuration.Check documentation
ES_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
ES_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
NODE_TLS_REJECT_UNAUTHORIZEDDeclared in the maintainer’s client configuration.Check documentation

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

Elasticsearch MCP Server with full version support (ES 5.x-9.x) and comprehensive API access Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.