Back to Home
elastic icon

mcp-server-elasticsearch

Verified Safe

by elastic

Overview

Enables AI clients to interact with Elasticsearch data through natural language conversations using the Model Context Protocol (MCP) by exposing a set of predefined tools.

Installation

Run Command
docker run -i --rm -e ES_URL='<elasticsearch-cluster-url>' -e ES_API_KEY='<elasticsearch-API-key>' docker.elastic.co/mcp/elasticsearch stdio

Environment Variables

  • ES_URL
  • ES_API_KEY
  • ES_USERNAME
  • ES_PASSWORD
  • ES_SSL_SKIP_VERIFY
  • CONTAINER_MODE
  • HTTP_ADDRESS
  • CLI_ARGS

Security Notes

The server is written in Rust, leveraging type and memory safety. It uses established libraries for Elasticsearch client interactions and MCP protocol handling. Input parameters for tools are strongly typed, reducing injection risks. Authentication relies on securely managed API keys or username/password via environment variables or HTTP headers. The `ES_SSL_SKIP_VERIFY` option, while a potential risk if misused, is explicitly documented and defaults to false. No apparent 'eval' or direct arbitrary command execution from user input.

Similar Servers

Stats

Interest Score98
Security Score9
Cost ClassLow
Avg Tokens3000
Stars560
Forks116
Last Update2025-12-04

Tags

ElasticsearchMCPAI ToolsData QueryRust