This MCP server provides a security-focused solution for interacting with Elasticsearch APIs, optimized for security analysis, threat detection, and incident investigation.
From the registry: Elasticsearch MCP Server with multi-version support (ES 5.x-9.x) and comprehensive API access
Please install the `elasticsearch` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Node.js and npx** — Requires Node.js runtime with npx to run the package. (https://nodejs.org/)
- **Elasticsearch instance with valid license** — An accessible Elasticsearch cluster (5.x-9.x) with a valid trial/platinum/enterprise license.
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["@tocharianou/elasticsearch-mcp"]
- required environment variables:
- `ES_URL`: Your Elasticsearch instance URL. (example: `<your-elasticsearch-url>`)
- optional environment variables:
- `ES_API_KEY`: Elasticsearch API key for authentication (preferred alternative to username/password). (example: `<your-elasticsearch-api-key>`)
- `ES_USERNAME`: Elasticsearch username for basic auth. (example: `<your-elasticsearch-username>`)
- `ES_PASSWORD`: Elasticsearch password for basic auth. (example: `<your-elasticsearch-password>`)
- `ES_CA_CERT`: Path to custom CA certificate for Elasticsearch SSL/TLS. (example: `<path-to-ca-cert>`)
- `NODE_TLS_REJECT_UNAUTHORIZED`: Set to 0 to disable SSL certificate validation (dev/test only). (example: `0`)
- `MCP_TRANSPORT`: Transport mode: stdio (default) or http. (example: `stdio`)
- `MCP_HTTP_PORT`: HTTP server port when using HTTP transport. (example: `3000`)
- `MCP_HTTP_HOST`: HTTP server host when using HTTP transport. (example: `localhost`)
Note: Supports ES 5.x-9.x with automatic version detection. Also supports HTTP streamable mode via MCP_TRANSPORT=http. Requires valid Elasticsearch license.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.ES_URLrequiredYour Elasticsearch instance URLMCP server for interacting with the Supabase platform