Elasticsearch 7
elasticsearch7 mcp server
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
Maintainer
Works with
Installation
Manual Installation
npx elasticsearch7Configuration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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 claudeManual 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 .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 # optionalConfigure 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"
}
}
}
}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.
Elasticsearch 7 Alternatives — Similar Databases Servers
Looking for alternatives to Elasticsearch 7? Here are other popular databases servers you can use with Claude, Cursor, and VS Code.
Excelize
★ 20.6kGo language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
MCP Toolbox for Databases
★ 15.3kOpen source MCP server specializing in easy, fast, and secure tools for Databases.
DBHub
★ 2.8kA universal database gateway MCP server that enables AI assistants to connect to and query multiple databases (PostgreSQL, MySQL, MariaDB, SQL Server, SQLite) with support for schema exploration, SQL execution, and secure connections via SSH tunnels.
Tabularis
★ 2.1kA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
Postgres AI Guide
★ 1.7kMCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
Anyquery
★ 1.7k🏎️ 🏠 ☁️ - Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.
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.
Set Up Elasticsearch 7 in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.