strawgate_es_mcp
Strawgate's Unofficial MCP Server for Elasticsearch.
Use at your own risk. This is not an official Elasticsearch product. This MCP Server will probably break your Elasticsearch cluster. Do not use it.
This project provides a Model Context Protocol (MCP) server implemented in Python using fastmcp. Its primary purpose is to expose a wide range of Elasticsearch client functionalities as callable MCP tools, allowing for interaction with an Elasticsearch cluster via the MCP.
Features
- Elasticsearch Tooling: Exposes numerous Elasticsearch client APIs as MCP tools, including:
- CAT APIs (allocation, aliases, count, indices, nodes, shards, etc.)
- Cluster APIs (health, state, stats)
- Nodes APIs (info, stats)
- Indices APIs (create/get data stream, stats, resolve index)
- ILM and SLM APIs (get/explain lifecycle, get status, get stats)
- Shutdown APIs (get node)
- Search API
- CLI: A CLI for the MCP Server.
- Extensible: Easily add new Elasticsearch client methods as MCP tools or integrate with other MCP tools.
- Sample Script: Includes
sample_multisearch.pyto demonstrate using the Elasticsearch Python client for multi-searches. - Testing: Includes unit tests for the exposed tools and sample scripts using
pytest.
Setup in Windsurf
On the right in the cascade window press the hammer icon and add a server with the following configuration:
{
"mcpServers": {
"es-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/strawgate/py-mcp-collection.git#subdirectory=es-mcp",
"es-mcp"
],
"env": {
"ES_HOST": "https://my-cloud-cluster:443",
"ES_API_KEY": "MYCOOLAPIKEY"
}
}
}
}
VS Code McpServer Usage
- Open the command palette (Ctrl+Shift+P or Cmd+Shift+P).
- Type "Settings" and select "Preferences: Open User Settings (JSON)".
- Add the following MCP Server configuration
{
"mcp": {
"servers": {
"Es Mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/strawgate/py-mcp-collection.git#subdirectory=es_mcp",
"es-mcp"
]
}
}
}
}
Roo Code / Cline McpServer Usage
Simply add the following to your McpServer configuration. Edit the AlwaysAllow list to include the tools you want to use without confirmation.
"es-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/strawgate/py-mcp-collection.git#subdirectory=es_mcp",
"es-mcp"
]
}
License
See LICENSE.
Metadata
Release files for strawgate_es_mcp 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| strawgate_es_mcp-0.6.0.tar.gz | 83.3 kB | Without provenance | Details for strawgate_es_mcp-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strawgate_es_mcp-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for strawgate_es_mcp-0.6.0-py3-none-any.whl |
Total release size: 107.3 kB
Release files / strawgate_es_mcp-0.6.0.tar.gz
| Download URL | strawgate_es_mcp-0.6.0.tar.gz |
|---|---|
| Size | 83.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3373ae9cc842a6148cb7dd34ea972d1c8b6e4b478de0b1ac46a9bb69f2691405
|
|
BLAKE2b-256 checksum How to use checksums |
350450865517fe8b26029a79aed284f3c86308cff1a5fdd9089a481d19ed1997
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.4
|
Release files / strawgate_es_mcp-0.6.0-py3-none-any.whl
| Download URL | strawgate_es_mcp-0.6.0-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c67514ef1cb3a4b3604f78a72717a2c4ea417f3c5e89fd875313c27a0607891
|
|
BLAKE2b-256 checksum How to use checksums |
d2fcd5e1aebb504e486567b44b3f895dce85b583096967b39d19c16bafa19f5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.4
|
Security for strawgate_es_mcp 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.