drio
Open app

Elasticsearch/OpenSearch MCP Server

Source

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.

Catalog onlyCatalog onlySTDIO

Overview

Elasticsearch MCP Server is a Model Context Protocol (MCP) server implementation that facilitates interaction with Elasticsearch, allowing users to search documents, analyze indices, and manage clusters.

To use the server, you can start an Elasticsearch cluster using Docker Compose and then install the server via Smithery or configure it in Claude Desktop's config file.

  • Index Operations: List indices, retrieve mapping and settings for specific indices. - Document Operations: Search documents using Elasticsearch Query DSL. - Cluster Operations: Get health status and statistical information about the cluster.
  1. Managing and analyzing large datasets in Elasticsearch.
  2. Performing complex searches across multiple indices.
  3. Monitoring the health and performance of Elasticsearch clusters.

Add to your AI client

Use these steps to connect Elasticsearch/OpenSearch MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "elasticsearch-mcp-server-cr7258": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch-mcp-server-cr7258"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "elasticsearch-mcp-server-cr7258": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch-mcp-server-cr7258"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "elasticsearch-mcp-server-cr7258": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch-mcp-server-cr7258"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "elasticsearch-mcp-server-cr7258": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch-mcp-server-cr7258"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "elasticsearch-mcp-server-cr7258": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch-mcp-server-cr7258"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "elasticsearch-mcp-server-cr7258": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch-mcp-server-cr7258"
      ]
    }
  }
}

FAQ

**How do I start the Elasticsearch cluster?**

You can start it using Docker Compose with the command `docker-compose up -d`.

**What is the default username and password?**

The default username is `elastic` and the password is `test123`.

**Can I use this server with Claude Desktop?**

Yes, you can install it via Smithery or configure it in Claude Desktop's config file.

Elasticsearch/OpenSearch MCP Server — MCP Registry