Elasticsearch 7

v1.0.0Databasesstable

elasticsearch7 mcp server

elasticsearch7mcpai-integration
Share:
10
Stars
0
Downloads
0
Weekly
0/5

What is Elasticsearch 7?

Elasticsearch 7 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to elasticsearch7 mcp server

elasticsearch7 mcp server

This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • elasticsearch7 mcp server

Use Cases

Query and manage Elasticsearch 7 indices through MCP.
imlewc

Maintainer

LicenseApache-2.0
Languagepython
Versionv1.0.0
UpdatedApr 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx elasticsearch7

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Elasticsearch 7

The Elasticsearch 7 MCP server exposes three core tools — es-ping, es-info, and es-search — allowing AI assistants to query and inspect Elasticsearch 7.x clusters through natural language. It supports full Elasticsearch query DSL including bool queries, aggregations, highlighting, and sorting, making it suitable for log analysis and document retrieval workflows.

Prerequisites

  • Python 3.8+ with pip installed
  • A running Elasticsearch 7.x instance (local or remote)
  • Elasticsearch host URL, username, and password
  • Claude Desktop or another MCP-compatible client
  • Node.js 18+ if using the Smithery automated installer
1

Install via Smithery (recommended)

Use the Smithery CLI to automatically install and configure the server for Claude Desktop. This handles dependency installation and config file updates in one command.

npx -y @smithery/cli install @imlewc/elasticsearch7-mcp-server --client claude
2

Manual installation with pip

Alternatively, clone the repository and install the Python package manually for more control over the environment.

git clone https://github.com/imlewc/elasticsearch7-mcp-server.git
cd elasticsearch7-mcp-server
pip install -e .
3

Set required environment variables

The server requires three environment variables to connect to your Elasticsearch cluster. ELASTIC_HOST should include the protocol and port. MCP_PORT is optional and defaults to 9999.

export ELASTIC_HOST=http://localhost:9200
export ELASTIC_USERNAME=elastic
export ELASTIC_PASSWORD=your_password
export MCP_PORT=9999  # optional
4

Configure Claude Desktop manually

If you skipped Smithery, add the server entry to claude_desktop_config.json. Pass the environment variables in the env block so Claude Desktop can read them.

{
  "mcpServers": {
    "elasticsearch7": {
      "command": "python",
      "args": ["-m", "elasticsearch7_mcp_server"],
      "env": {
        "ELASTIC_HOST": "http://localhost:9200",
        "ELASTIC_USERNAME": "elastic",
        "ELASTIC_PASSWORD": "your_password"
      }
    }
  }
}
5

Restart Claude Desktop and test the connection

Restart Claude Desktop to load the new MCP server. Ask Claude to ping the Elasticsearch cluster to verify the connection before running queries.

Elasticsearch 7 Examples

Client configuration

claude_desktop_config.json entry for the Elasticsearch 7 MCP server with connection credentials supplied via the env block.

{
  "mcpServers": {
    "elasticsearch7": {
      "command": "python",
      "args": ["-m", "elasticsearch7_mcp_server"],
      "env": {
        "ELASTIC_HOST": "http://localhost:9200",
        "ELASTIC_USERNAME": "elastic",
        "ELASTIC_PASSWORD": "changeme"
      }
    }
  }
}

Prompts to try

Sample prompts for interacting with Elasticsearch 7 through Claude Desktop after the MCP server is connected.

- "Ping the Elasticsearch cluster and tell me if it is healthy"
- "Get the Elasticsearch cluster info including version and node count"
- "Search the logs index for documents matching 'timeout error' in the last 24 hours, return the top 10 results"
- "Search the products index for items where category is 'electronics', sort by price descending"

Troubleshooting Elasticsearch 7

Connection refused when pinging Elasticsearch

Verify ELASTIC_HOST is correct and includes the port (e.g., http://localhost:9200). Confirm Elasticsearch 7.x is running with curl http://localhost:9200 from the same machine.

Authentication failed errors

Check ELASTIC_USERNAME and ELASTIC_PASSWORD are correct. For Elasticsearch clusters with security disabled, omit the username and password environment variables entirely.

MCP server not appearing in Claude Desktop

Restart Claude Desktop after editing the config file. Ensure Python is on the PATH used by Claude Desktop by checking which python in your shell matches the one in the config.

Frequently Asked Questions about Elasticsearch 7

What is Elasticsearch 7?

Elasticsearch 7 is a Model Context Protocol (MCP) server that elasticsearch7 mcp server It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Elasticsearch 7?

Follow the installation instructions on the Elasticsearch 7 GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Elasticsearch 7?

Elasticsearch 7 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Elasticsearch 7 free to use?

Yes, Elasticsearch 7 is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Databases MCP Servers

Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "elasticsearch7": { "command": "npx", "args": ["-y", "elasticsearch7"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Elasticsearch 7?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides