Elasticsearch 7.x
About
Integrates with Elasticsearch 7.x, providing efficient data management and search capabilities for projects requiring robust analytics within the ecosystem.
Details
- Author
- imlewc
- Repository
- imlewc/elasticsearch7-mcp-server
- GitHub stars
- 5
- Downloads
- 249
- License
- Apache License 2.0
- Categories
- Design, Developer Tools, Search, AI, Project Management, Database
- Tags
- #analytics, #integration
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Elasticsearch 7.xCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
To install Elasticsearch 7.x MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @imlewc/elasticsearch7-mcp-server --client claude
pip install -e .
The server requires the following environment variables:
- ELASTIC_HOST: Elasticsearch host address (e.g., http://localhost:9200)
- ELASTIC_USERNAME: Elasticsearch username
- ELASTIC_PASSWORD: Elasticsearch password
- MCP_PORT: (Optional) MCP server listening port, default 9999
es-ping
Check Elasticsearch connection.
es-info
Get Elasticsearch cluster information.
es-search
Search documents in Elasticsearch index. Parameters: index (string), query (object), size (optional integer), from (optional integer).
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"elasticsearch 7.x": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
Elasticsearch 7.x MCP Server
An MCP server for Elasticsearch 7.x, providing compatibility with Elasticsearch 7.x versions.
<a href="https://glama.ai/mcp/servers/zxwxozvlme">
</a>
Features
- 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
Requirements
- Python 3.10+
- Elasticsearch 7.x (7.17.x recommended)
Installation
Installing via Smithery
To install Elasticsearch 7.x MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @imlewc/elasticsearch7-mcp-server --client claude
Manual Installation
pip install -e .
Environment Variables
The server requires the following environment variables:
- ELASTIC_HOST: Elasticsearch host address (e.g., http://localhost:9200)
- ELASTIC_USERNAME: Elasticsearch username
- ELASTIC_PASSWORD: Elasticsearch password
- MCP_PORT: (Optional) MCP server listening port, default 9999
Using Docker Compose
1. Create a .env file and set ELASTIC_PASSWORD:
ELASTIC_PASSWORD=your_secure_password
2. Start the services:
docker-compose up -d
This will start a three-node Elasticsearch 7.17.10 cluster, Kibana, and the MCP server.
Using an MCP Client
You can use any MCP client to connect to the MCP server:
from mcp import MCPClient
client = MCPClient("localhost:9999")
response = client.call("es-ping")
print(response) # {"success": true}
API Documentation
Currently supported MCP methods:
- es-ping: Check Elasticsearch connection
- es-info: Get Elasticsearch cluster information
- es-search: Search documents in Elasticsearch index
Search API Examples
Basic Search
```pythonSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




