Three options depending on your setup. All use the claude mcp add CLI command.
Requires Node.js 22+. The server is downloaded and run automatically by Claude Code.
claude mcp add elastic-security \
-e ELASTICSEARCH_URL=https://your-cluster.es.cloud.example.com \
-e ELASTICSEARCH_API_KEY=your-api-key \
-e KIBANA_URL=https://your-cluster.kb.cloud.example.com \
-- npx -y https://github.com/elastic/example-mcp-app-security/releases/latest/download/elastic-security-mcp-app.tgz --stdioPinning a version: Replace
elastic-security-mcp-app.tgzwithelastic-security-mcp-app-<version>.tgz(e.g.,elastic-security-mcp-app-0.2.0.tgz).Required credentials: Set
ELASTICSEARCH_URL,ELASTICSEARCH_API_KEY, andKIBANA_URL. See Creating an API key for how to generate your credentials.
Requires the project to be built locally. Claude Code launches the server process directly.
claude mcp add elastic-security \
-e ELASTICSEARCH_URL=https://your-cluster.es.cloud.example.com \
-e ELASTICSEARCH_API_KEY=your-api-key \
-e KIBANA_URL=https://your-cluster.kb.cloud.example.com \
-- node /path/to/example-mcp-app-security/dist/main.js --stdioRequires the server to be running locally at http://localhost:3001/mcp. Claude Code connects over HTTP — the server process runs independently.
claude mcp add elastic-security \
--transport http \
--url http://localhost:3001/mcpclaude mcp list # List registered servers
claude mcp remove elastic-security # Remove the serverScope: Add
-s userto register the server globally across all projects, or-s project(the default) to scope it to the current project.