An Elasticsearch MCP (Model Context Protocol) server
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"elasticsearch": {
"env": {
"ES_VERSION": "8",
"ES_ADDRESSES": "http://localhost:9200"
},
"command": "mcp-elasticsearch"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Read this in other languages: English, 中文
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data / search
Web and local search using Brave Search API
Query and manage PostgreSQL databases directly from AI assistants
Production ready MCP server with real-time search, extract, map & crawl.
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP Security Weekly
Get CVE alerts and security updates for Mcp Elasticsearch and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Read this in other languages: English, 中文
An Elasticsearch MCP (Model Context Protocol) server built on github.com/modelcontextprotocol/go-sdk, providing seamless integration with Elasticsearch 7, 8, and 9 versions.
es_cluster_info: Get cluster information and version detailses_cluster_health: Get cluster health status and metricses_index_create: Create new indices with settings and mappingses_index_delete: Delete existing indiceses_index_exists: Check if an index existses_index_list: List all indices with metadataes_document_index: Index documents with optional IDes_document_get: Retrieve documents by IDes_document_update: Update existing documentses_document_delete: Delete documents by IDes_search: Execute search queries with filters, sorting, and field selection
index, query, size, from, sort, _sourcees_bulk: Execute multiple operations in a single requestChoose one of the following methods to run the Elasticsearch MCP server:
# Basic usage with local Elasticsearch
docker run --rm \
-e ES_ADDRESSES=http://localhost:9200 \
ghcr.io/aeazer/mcp-elasticsearch:latest
# HTTP mode for remote access
docker run -d -p 8080:8080 \
-e MCP_PROTOCOL=http \
-e ES_ADDRESSES=http://your-elasticsearch:9200 \
ghcr.io/aeazer/mcp-elasticsearch:latest
# With authentication
docker run -d -p 8080:8080 \
-e MCP_PROTOCOL=http \
-e ES_ADDRESSES=https://your-elasticsearch:9200 \
-e ES_USERNAME=elastic \
-e ES_PASSWORD=your-password \
-e ES_SSL=true \
ghcr.io/aeazer/mcp-elasticsearch:latest
# Clone the repository
git clone https://github.com/AeaZer/mcp-elasticsearch.git
cd mcp-elasticsearch
# Build Docker image
docker build -t mcp-elasticsearch .
# Run the container
docker run -e ES_ADDRESSES=http://localhost:9200 -e ES_VERSION=8 mcp-elasticsearch
# Clone the repository
git clone https://github.com/AeaZer/mcp-elasticsearch.git
cd mcp-elasticsearch
# Download dependencies and build
go mod download
go build -o mcp-elasticsearch main.go
# Run with environment variables
export ES_ADDRESSES=http://localhost:9200
export ES_VERSION=8
export MCP_PROTOCOL=stdio
./mcp-elasticsearch
For integration with desktop applications that support MCP, you can configure the server through a configuration file:
First, ensure you have the mcp-elasticsearch executable available:
# Option A: Install directly from GitHub (Recommended)
go install github.com/AeaZer/mcp-elasticsearch@latest
# Option B: Build from source
git clone https://github.com/AeaZer/mcp-elasticsearch.git
cd mcp-elasticsearch
go mod download
go build -o mcp-elasticsearch main.go
# Option C: Download pre-built binary (Windows only)
# Download mcp-elasticsearch.exe from GitHub Releases
# macOS and Linux users should use Option A or B
Note: Docker is not suitable for desktop application integration as it doesn't support stdio mode pr