About cr7258/elasticsearch-mcp-server
cr7258/elasticsearch-mcp-server is an MCP server published by cr7258 in the Data category: a Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction. Conduid read 20 tools from its source: analyze_text, create_data_stream, create_index, delete_alias, delete_by_query, delete_data_stream and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 324 stars and 69 forks, is licensed Apache-2.0, and its last commit was on 11 Nov 2026. The latest release is v2.1.9 (11 Nov 2026): Changelog 2.1.9 - 2026-11-11 🐛 Bug Fixes support ES7 exceptions in error reporting - (fed0ada) - @cr7258 📚 Documentation add focused pull request template - (45f9f92) -… It follows v2.1.8 (10 Nov 2026), and the 5 most recent releases go back to v2.1.5 (13 Oct 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions.
Install
git clone https://github.com/cr7258/elasticsearch-mcp-serverTools (20)
analyze_textAnalyze text to see how it would be tokenized.| Parameter | Type | Description |
|---|---|---|
| analyzer | string | Name of the analyzer to use (e.g., 'standard', 'korean', 'korean_search'). If index is specified, you can use custom analyzers defined in that index. |
| attributes | array | List of token attributes to return when explain=True (e.g., ['keyword', 'type']). If not specified, all attributes are returned. |
| char_filter | array | List of character filters to apply before tokenization. Used with 'tokenizer' for custom analysis chain. |
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| explain | boolean | If True, returns detailed information about each token including all token attributes and filter transformations. Useful for debugging complex analyzer chains. |
| filter | array | List of token filters to apply (e.g., ['lowercase', 'stop']). Used with 'tokenizer' for custom analysis chain. |
| index | string | Index name to use its configured analyzer. If not specified, uses cluster-level analysis with built-in analyzers only. |
| text * | string | The text to analyze |
| tokenizer | string | Tokenizer to use for custom analysis chain. Cannot be used together with 'analyzer'. |
create_data_streamCreate a new data stream.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| name * | string | Name of the data stream to create |
create_indexCreate a new index.| Parameter | Type | Description |
|---|---|---|
| body | object | Optional index configuration including mappings and settings |
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
delete_aliasDelete an alias for a specific index.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
| name * | string | Name of the alias |
delete_by_queryDeletes documents matching the provided query.| Parameter | Type | Description |
|---|---|---|
| body * | object | Query to match documents for deletion |
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
delete_data_streamDelete one or more data streams.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| name * | string | Name of the data stream(s) to delete. Can be a comma-separated list or wildcard pattern. |
delete_documentDelete a document by ID.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| id * | string | Document ID |
| index * | string | Name of the index |
delete_indexDelete an index.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
general_api_requestPerform a general HTTP API request.| Parameter | Type | Description |
|---|---|---|
| body | object | Request body |
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| method * | string | HTTP method (GET, POST, PUT, DELETE, etc.) |
| params | object | Query parameters |
| path * | string | API endpoint path |
get_aliasGet alias information for a specific index.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
get_cluster_healthReturns basic information about the health of the cluster.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
get_cluster_statsReturns high-level overview of cluster statistics.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
get_data_streamGet information about one or more data streams.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| name | string | Name of the data stream(s) to retrieve. Can be a comma-separated list or wildcard pattern. If not provided, retrieves all data streams. |
get_documentGet a document by ID.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| id * | string | Document ID |
| index * | string | Name of the index |
get_indexReturns information (mappings, settings, aliases) about one or more indices.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
index_documentCreates or updates a document in the index.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| document * | object | Document data |
| id | string | Optional document ID |
| index * | string | Name of the index |
list_aliasesList all aliases.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
list_indicesList all indices.| Parameter | Type | Description |
|---|---|---|
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
put_aliasCreate or update an alias for a specific index.| Parameter | Type | Description |
|---|---|---|
| body * | object | Alias configuration |
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
| name * | string | Name of the alias |
search_documentsSearch for documents.| Parameter | Type | Description |
|---|---|---|
| body * | object | Search query |
| cluster | string | Optional cluster name. Uses the default cluster if omitted. |
| index * | string | Name of the index |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.9K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 32 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/server.py:200, src/server.py:166, src/server.py:166
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 6 callssrc/clients/base.py:210, src/clients/error_report.py:183, src/clients/error_report.py:217
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 32 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.9K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README