Overview
Elasticsearch 7.x MCP Server is a server that provides an MCP protocol interface for interacting with Elasticsearch 7.x, enabling users to perform various operations and queries on Elasticsearch.
To use the server, you can install it via Smithery or manually using pip. After installation, set the required environment variables and start the server using Docker Compose or directly through Python.
- Provides an MCP protocol interface for Elasticsearch 7.x. - Supports basic operations like ping and info. - Enables complete search functionality, including aggregation queries and advanced features. - Compatible with any MCP client for easy access.
- Interacting with Elasticsearch for data retrieval and management.
- Performing complex search queries and aggregations on large datasets.
- Integrating with applications that require Elasticsearch functionalities through MCP protocol.
Add to your AI client
Use these steps to connect Elasticsearch 7.x 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": {
"elasticsearch7-mcp-server-imlewc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch7-mcp-server-imlewc"
]
}
}
}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": {
"elasticsearch7-mcp-server-imlewc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch7-mcp-server-imlewc"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"elasticsearch7-mcp-server-imlewc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch7-mcp-server-imlewc"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"elasticsearch7-mcp-server-imlewc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch7-mcp-server-imlewc"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"elasticsearch7-mcp-server-imlewc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch7-mcp-server-imlewc"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"elasticsearch7-mcp-server-imlewc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch7-mcp-server-imlewc"
]
}
}
}FAQ
What are the requirements to run the server?
You need Python 3.10+ and Elasticsearch 7.x (7.17.x recommended).
How can I install the server?
You can install it via Smithery or manually using pip.
What environment variables are needed?
You need to set ELASTIC_HOST, ELASTIC_USERNAME, ELASTIC_PASSWORD, and optionally MCP_PORT.