mcp-server-elasticsearch
Verified Safeby 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
docker run -i --rm -e ES_URL='<elasticsearch-cluster-url>' -e ES_API_KEY='<elasticsearch-API-key>' docker.elastic.co/mcp/elasticsearch stdioEnvironment 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
mcp-omnisearch
Provides a unified interface for LLMs to access multiple web search, AI response, content processing, and enhancement tools from various providers through the Model Context Protocol (MCP).
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
opensearch-mcp-server-py
Enables AI assistants to interact with OpenSearch clusters, providing a standardized interface for search, mapping, and shard management.