Requires the runtime declared in the upstream repo — check the README before running. Claude Code persists MCP servers via its CLI — no config file to edit, just run the command below once. Paste the config below, then follow the reload step to register io.github.cr7258/elasticsearch-mcp-server.
Run the command below in your terminal — Claude Code persists it for you.claude mcp add elasticsearch-mcp-server --env ELASTICSEARCH_CLUSTERS={"prod": {"hosts": ["https://prod-es:9200"], "api_key": "<PROD_API_KEY>", "verify_certs": true}, "staging": {"hosts": ["https://staging-es:9200"], "username": "elastic", "password": "<STAGING_PASSWORD>"}} --env DEFAULT_CLUSTER=prod -- uvx elasticsearch-mcp-server