drio
Open app

Elasticsearch MCP Server

Source

Mirror of

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 through a set of tools.

To use the Elasticsearch MCP Server, start the Elasticsearch cluster using Docker Compose and configure it with Claude Desktop to interact with the server using natural language commands.

  • Index Operations: List all 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 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": {
    "cr7258-elasticsearch-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cr7258-elasticsearch-mcp-server-mcp-mirror"
      ]
    }
  }
}

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": {
    "cr7258-elasticsearch-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cr7258-elasticsearch-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Can I use Elasticsearch MCP Server with any version of Elasticsearch?

Yes, as long as the version is compatible with the features provided by the MCP server.

Is there a graphical interface for managing Elasticsearch?

Yes, you can access Kibana for a graphical interface to manage your Elasticsearch cluster.

How do I secure my Elasticsearch cluster?

Use the provided username and password, and consider additional security measures like IP whitelisting.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1034,"uuid":"cd2297cb-79e7-4fbe-977d-381d98bc0c96","name":"cr7258_elasticsearch-mcp-server","title":"Elasticsearch MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:27:17.449Z","updated_at":"2025-02-23T07:19:42.160Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"elasticsearch,mcp-server,data-management","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/cr7258_elasticsearch-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]