Elasticsearch 7.X MCP Server

elasticsearch7 mcp server

Local serverstdioPython

What is the Elasticsearch 7.X MCP server?

elasticsearch7 mcp server. That is what the elasticsearch 7.x mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

An MCP server for Elasticsearch 7.x, providing compatibility with Elasticsearch 7.x versions.

  • Provides an MCP protocol interface for interacting with Elasticsearch 7.x
  • Supports basic Elasticsearch operations (ping, info, etc.)
  • Supports complete search functionality, including aggregation queries, highlighting, sorting, and other advanced features
  • Easily access Elasticsearch functionality through any MCP client

The tools it exposes

The server publishes 3 tools. What each one is for:

  • es-ping — Check Elasticsearch connection
  • es-info — Get Elasticsearch cluster information
  • es-search — Search documents in Elasticsearch index

What it needs from you

Configuration is passed through the environment: ELASTIC_HOST. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Python 3.10+ - Elasticsearch 7.x (7.17.x recommended)

Getting it running

@smithery/cli on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Elasticsearch 7.X's toolset — es-ping, es-info, es-search — is a fair guide to whether it matches your workflow. It is maintained by imlewc; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
es-pingCheck Elasticsearch connection
es-infoGet Elasticsearch cluster information
es-searchSearch documents in Elasticsearch index

How to install the Elasticsearch 7.X MCP server

{
  "mcpServers": {
    "elasticsearch7": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "ELASTIC_HOST": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.10+ - Elasticsearch 7.x (7.17.x recommended)
VariableDescriptionRequired
ELASTIC_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Elasticsearch 7.X to es-ping.
  • Use Elasticsearch 7.X to es-info.
  • Use Elasticsearch 7.X to es-search.

Frequently asked questions

Elasticsearch 7.x is required; version 7.17.x is recommended.