Back to MCP Servers

Elasticsearch Server

Search, index, and analyze data in Elasticsearch clusters with natural language queries

searchelasticsearchanalyticsloggingcommunity

Installation

npm install -g @elastic/mcp-server

Configuration

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": ["-y", "@elastic/mcp-server"],
      "env": {
        "ELASTICSEARCH_URL": "http://localhost:9200",
        "ELASTICSEARCH_API_KEY": "your-elasticsearch-api-key"
      }
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes