elasticsearch-mcp-server 2.0.17__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,555 @@
1
+ Metadata-Version: 2.4
2
+ Name: elasticsearch-mcp-server
3
+ Version: 2.0.17
4
+ Summary: MCP Server for interacting with Elasticsearch and OpenSearch
5
+ License: Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright [2025] [cr7258]
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
206
+ License-File: LICENSE
207
+ Requires-Python: >=3.10
208
+ Requires-Dist: anthropic==0.49.0
209
+ Requires-Dist: elasticsearch==8.17.2
210
+ Requires-Dist: fastmcp==2.8.0
211
+ Requires-Dist: mcp==1.9.2
212
+ Requires-Dist: opensearch-py==2.8.0
213
+ Requires-Dist: pydantic<2.12.0,>=2.11.0
214
+ Requires-Dist: python-dotenv==1.1.0
215
+ Requires-Dist: tomli-w==1.2.0
216
+ Requires-Dist: tomli==2.2.1
217
+ Description-Content-Type: text/markdown
218
+
219
+
220
+ <!-- mcp-name: io.github.cr7258/elasticsearch-mcp-server -->
221
+
222
+ # Elasticsearch/OpenSearch MCP Server
223
+
224
+ [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/cr7258-elasticsearch-mcp-server-badge.png)](https://mseep.ai/app/cr7258-elasticsearch-mcp-server)
225
+
226
+ [![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/cr7258/elasticsearch-mcp-server)](https://archestra.ai/mcp-catalog/cr7258__elasticsearch-mcp-server)
227
+
228
+ [MCP Official Registry]( https://registry.modelcontextprotocol.io/v0/servers?search=io.github.cr7258/elasticsearch-mcp-server)
229
+
230
+ ## Overview
231
+
232
+ A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction. This server enables searching documents, analyzing indices, and managing cluster through a set of tools.
233
+
234
+ <a href="https://glama.ai/mcp/servers/b3po3delex"><img width="380" height="200" src="https://glama.ai/mcp/servers/b3po3delex/badge" alt="Elasticsearch MCP Server" /></a>
235
+
236
+ ## Demo
237
+
238
+ https://github.com/user-attachments/assets/f7409e31-fac4-4321-9c94-b0ff2ea7ff15
239
+
240
+ ## Features
241
+
242
+ ### General Operations
243
+
244
+ - `general_api_request`: Perform a general HTTP API request. Use this tool for any Elasticsearch/OpenSearch API that does not have a dedicated tool.
245
+
246
+ ### Index Operations
247
+
248
+ - `list_indices`: List all indices.
249
+ - `get_index`: Returns information (mappings, settings, aliases) about one or more indices.
250
+ - `create_index`: Create a new index.
251
+ - `delete_index`: Delete an index.
252
+ - `create_data_stream`: Create a new data stream (requires matching index template).
253
+ - `get_data_stream`: Get information about one or more data streams.
254
+ - `delete_data_stream`: Delete one or more data streams and their backing indices.
255
+
256
+ ### Document Operations
257
+
258
+ - `search_documents`: Search for documents.
259
+ - `index_document`: Creates or updates a document in the index.
260
+ - `get_document`: Get a document by ID.
261
+ - `delete_document`: Delete a document by ID.
262
+ - `delete_by_query`: Deletes documents matching the provided query.
263
+
264
+ ### Cluster Operations
265
+
266
+ - `get_cluster_health`: Returns basic information about the health of the cluster.
267
+ - `get_cluster_stats`: Returns high-level overview of cluster statistics.
268
+
269
+ ### Alias Operations
270
+
271
+ - `list_aliases`: List all aliases.
272
+ - `get_alias`: Get alias information for a specific index.
273
+ - `put_alias`: Create or update an alias for a specific index.
274
+ - `delete_alias`: Delete an alias for a specific index.
275
+
276
+ ## Configure Environment Variables
277
+
278
+ The MCP server supports the following environment variables:
279
+
280
+ ### Basic Authentication (Username/Password)
281
+ - `ELASTICSEARCH_USERNAME`: Username for basic authentication
282
+ - `ELASTICSEARCH_PASSWORD`: Password for basic authentication
283
+ - `OPENSEARCH_USERNAME`: Username for OpenSearch basic authentication
284
+ - `OPENSEARCH_PASSWORD`: Password for OpenSearch basic authentication
285
+
286
+ ### API Key Authentication (Elasticsearch only) - Recommended
287
+ - `ELASTICSEARCH_API_KEY`: API key for [Elasticsearch](https://www.elastic.co/docs/deploy-manage/api-keys/elasticsearch-api-keys) or [Elastic Cloud](https://www.elastic.co/docs/deploy-manage/api-keys/elastic-cloud-api-keys) Authentication.
288
+
289
+ ### Connection Settings
290
+ - `ELASTICSEARCH_HOSTS` / `OPENSEARCH_HOSTS`: Comma-separated list of hosts (default: `https://localhost:9200`)
291
+ - `ELASTICSEARCH_VERIFY_CERTS` / `OPENSEARCH_VERIFY_CERTS`: Whether to verify SSL certificates (default: `false`)
292
+
293
+ ### Disable High-Risk Operations
294
+
295
+ - `DISABLE_HIGH_RISK_OPERATIONS`: Set to `true` to disable all write operations (default: `false`)
296
+ - `DISABLE_OPERATIONS`: Comma-separated list of specific operations to disable (optional, uses default write operations list if not set)
297
+
298
+ When `DISABLE_HIGH_RISK_OPERATIONS` is set to true, all MCP tools that perform write operations are completely hidden from the MCP client. In this mode, the following MCP tools are disabled by default.
299
+
300
+ - **Index Operations:**
301
+ - `create_index`
302
+ - `delete_index`
303
+
304
+ - **Document Operations:**
305
+ - `index_document`
306
+ - `delete_document`
307
+ - `delete_by_query`
308
+
309
+ - **Data Stream Operations:**
310
+ - `create_data_stream`
311
+ - `delete_data_stream`
312
+
313
+ - **Alias Operations:**
314
+ - `put_alias`
315
+ - `delete_alias`
316
+
317
+ - **General API Operations:**
318
+ - `general_api_request`
319
+
320
+ Optionally, you can specify a comma-separated list of operations to disable in the `DISABLE_OPERATIONS` environment variable.
321
+
322
+ ```bash
323
+ # Disable High-Risk Operations
324
+ export DISABLE_HIGH_RISK_OPERATIONS=true
325
+ # Disable specific operations only
326
+ export DISABLE_OPERATIONS="delete_index,delete_document,delete_by_query"
327
+ ```
328
+
329
+ ## Start Elasticsearch/OpenSearch Cluster
330
+
331
+ Start the Elasticsearch/OpenSearch cluster using Docker Compose:
332
+
333
+ ```bash
334
+ # For Elasticsearch
335
+ docker-compose -f docker-compose-elasticsearch.yml up -d
336
+
337
+ # For OpenSearch
338
+ docker-compose -f docker-compose-opensearch.yml up -d
339
+ ```
340
+
341
+ The default Elasticsearch username is `elastic` and password is `test123`. The default OpenSearch username is `admin` and password is `admin`.
342
+
343
+ You can access Kibana/OpenSearch Dashboards from http://localhost:5601.
344
+
345
+ ## Stdio
346
+
347
+ ### Option 1: Using uvx
348
+
349
+ Using `uvx` will automatically install the package from PyPI, no need to clone the repository locally. Add the following configuration to 's config file `claude_desktop_config.json`.
350
+
351
+ ```json
352
+ // For Elasticsearch with username/password
353
+ {
354
+ "mcpServers": {
355
+ "elasticsearch-mcp-server": {
356
+ "command": "uvx",
357
+ "args": [
358
+ "elasticsearch-mcp-server"
359
+ ],
360
+ "env": {
361
+ "ELASTICSEARCH_HOSTS": "https://localhost:9200",
362
+ "ELASTICSEARCH_USERNAME": "elastic",
363
+ "ELASTICSEARCH_PASSWORD": "test123"
364
+ }
365
+ }
366
+ }
367
+ }
368
+
369
+ // For Elasticsearch with API key
370
+ {
371
+ "mcpServers": {
372
+ "elasticsearch-mcp-server": {
373
+ "command": "uvx",
374
+ "args": [
375
+ "elasticsearch-mcp-server"
376
+ ],
377
+ "env": {
378
+ "ELASTICSEARCH_HOSTS": "https://localhost:9200",
379
+ "ELASTICSEARCH_API_KEY": "<YOUR_ELASTICSEARCH_API_KEY>"
380
+ }
381
+ }
382
+ }
383
+ }
384
+
385
+ // For OpenSearch
386
+ {
387
+ "mcpServers": {
388
+ "opensearch-mcp-server": {
389
+ "command": "uvx",
390
+ "args": [
391
+ "opensearch-mcp-server"
392
+ ],
393
+ "env": {
394
+ "OPENSEARCH_HOSTS": "https://localhost:9200",
395
+ "OPENSEARCH_USERNAME": "admin",
396
+ "OPENSEARCH_PASSWORD": "admin"
397
+ }
398
+ }
399
+ }
400
+ }
401
+ ```
402
+
403
+ ### Option 2: Using uv with local development
404
+
405
+ Using `uv` requires cloning the repository locally and specifying the path to the source code. Add the following configuration to Claude Desktop's config file `claude_desktop_config.json`.
406
+
407
+ ```json
408
+ // For Elasticsearch with username/password
409
+ {
410
+ "mcpServers": {
411
+ "elasticsearch-mcp-server": {
412
+ "command": "uv",
413
+ "args": [
414
+ "--directory",
415
+ "path/to/elasticsearch-mcp-server",
416
+ "run",
417
+ "elasticsearch-mcp-server"
418
+ ],
419
+ "env": {
420
+ "ELASTICSEARCH_HOSTS": "https://localhost:9200",
421
+ "ELASTICSEARCH_USERNAME": "elastic",
422
+ "ELASTICSEARCH_PASSWORD": "test123"
423
+ }
424
+ }
425
+ }
426
+ }
427
+
428
+ // For Elasticsearch with API key
429
+ {
430
+ "mcpServers": {
431
+ "elasticsearch-mcp-server": {
432
+ "command": "uv",
433
+ "args": [
434
+ "--directory",
435
+ "path/to/elasticsearch-mcp-server",
436
+ "run",
437
+ "elasticsearch-mcp-server"
438
+ ],
439
+ "env": {
440
+ "ELASTICSEARCH_HOSTS": "https://localhost:9200",
441
+ "ELASTICSEARCH_API_KEY": "<YOUR_ELASTICSEARCH_API_KEY>"
442
+ }
443
+ }
444
+ }
445
+ }
446
+
447
+ // For OpenSearch
448
+ {
449
+ "mcpServers": {
450
+ "opensearch-mcp-server": {
451
+ "command": "uv",
452
+ "args": [
453
+ "--directory",
454
+ "path/to/elasticsearch-mcp-server",
455
+ "run",
456
+ "opensearch-mcp-server"
457
+ ],
458
+ "env": {
459
+ "OPENSEARCH_HOSTS": "https://localhost:9200",
460
+ "OPENSEARCH_USERNAME": "admin",
461
+ "OPENSEARCH_PASSWORD": "admin"
462
+ }
463
+ }
464
+ }
465
+ }
466
+ ```
467
+
468
+ ## SSE
469
+
470
+ ### Option 1: Using uvx
471
+
472
+ ```bash
473
+ # export environment variables (with username/password)
474
+ export ELASTICSEARCH_HOSTS="https://localhost:9200"
475
+ export ELASTICSEARCH_USERNAME="elastic"
476
+ export ELASTICSEARCH_PASSWORD="test123"
477
+
478
+ # OR export environment variables (with API key)
479
+ export ELASTICSEARCH_HOSTS="https://localhost:9200"
480
+ export ELASTICSEARCH_API_KEY="<YOUR_ELASTICSEARCH_API_KEY>"
481
+
482
+ # By default, the SSE MCP server will serve on http://127.0.0.1:8000/sse
483
+ uvx elasticsearch-mcp-server --transport sse
484
+
485
+ # The host, port, and path can be specified using the --host, --port, and --path options
486
+ uvx elasticsearch-mcp-server --transport sse --host 0.0.0.0 --port 8000 --path /sse
487
+ ```
488
+
489
+ ### Option 2: Using uv
490
+
491
+ ```bash
492
+ # By default, the SSE MCP server will serve on http://127.0.0.1:8000/sse
493
+ uv run src/server.py elasticsearch-mcp-server --transport sse
494
+
495
+ # The host, port, and path can be specified using the --host, --port, and --path options
496
+ uv run src/server.py elasticsearch-mcp-server --transport sse --host 0.0.0.0 --port 8000 --path /sse
497
+ ```
498
+
499
+ ## Streamable HTTP
500
+
501
+ ### Option 1: Using uvx
502
+
503
+ ```bash
504
+ # export environment variables (with username/password)
505
+ export ELASTICSEARCH_HOSTS="https://localhost:9200"
506
+ export ELASTICSEARCH_USERNAME="elastic"
507
+ export ELASTICSEARCH_PASSWORD="test123"
508
+
509
+ # OR export environment variables (with API key)
510
+ export ELASTICSEARCH_HOSTS="https://localhost:9200"
511
+ export ELASTICSEARCH_API_KEY="<YOUR_ELASTICSEARCH_API_KEY>"
512
+
513
+ # By default, the Streamable HTTP MCP server will serve on http://127.0.0.1:8000/mcp
514
+ uvx elasticsearch-mcp-server --transport streamable-http
515
+
516
+ # The host, port, and path can be specified using the --host, --port, and --path options
517
+ uvx elasticsearch-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000 --path /mcp
518
+ ```
519
+
520
+ ### Option 2: Using uv
521
+
522
+ ```bash
523
+ # By default, the Streamable HTTP MCP server will serve on http://127.0.0.1:8000/mcp
524
+ uv run src/server.py elasticsearch-mcp-server --transport streamable-http
525
+
526
+ # The host, port, and path can be specified using the --host, --port, and --path options
527
+ uv run src/server.py elasticsearch-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000 --path /mcp
528
+ ```
529
+
530
+ ## Compatibility
531
+
532
+ The MCP server is compatible with Elasticsearch 7.x, 8.x, and 9.x. By default, it uses the Elasticsearch 8.x client (without a suffix).
533
+
534
+ | MCP Server | Elasticsearch |
535
+ | --- | --- |
536
+ | elasticsearch-mcp-server-es7 | Elasticsearch 7.x |
537
+ | elasticsearch-mcp-server | Elasticsearch 8.x |
538
+ | elasticsearch-mcp-server-es9 | Elasticsearch 9.x |
539
+ | opensearch-mcp-server | OpenSearch 1.x, 2.x, 3.x |
540
+
541
+ To use the Elasticsearch 7.x client, run the `elasticsearch-mcp-server-es7` variant. For Elasticsearch 9.x, use `elasticsearch-mcp-server-es9`. For example:
542
+
543
+ ```bash
544
+ uvx elasticsearch-mcp-server-es7
545
+ ```
546
+
547
+ If you want to run different Elasticsearch variants (e.g., 7.x or 9.x) locally, simply update the `elasticsearch` dependency version in `pyproject.toml`, then start the server with:
548
+
549
+ ```bash
550
+ uv run src/server.py elasticsearch-mcp-server
551
+ ```
552
+
553
+ ## License
554
+
555
+ This project is licensed under the Apache License Version 2.0 - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,28 @@
1
+ src/__init__.py,sha256=aNKcThftSLh9IjOTA-UUpoRzIm4R0WwXKGAzykwecmU,211
2
+ src/risk_config.py,sha256=x2v05KQG0NrhyKL48jaxwPS-10NkR2V8MMQEBtpA44o,2624
3
+ src/server.py,sha256=VDp65H4uiscYlyzrCiRornKknVvj5EmHqAE3YkMWCcI,5342
4
+ src/version.py,sha256=TNyDgG-zP4zmz__Q4W-BKUVCbs8m_XkRe9NZdZEm5AI,23
5
+ src/clients/__init__.py,sha256=MUKeCxvAFzzVfQr4x1seB7cRVLtWAk7pb1-5tLG0T8g,1299
6
+ src/clients/base.py,sha256=8HQ7YCOQXly_abbUpcMGOlz_-ShmJ4nF3yfa5SqT3cU,5535
7
+ src/clients/exceptions.py,sha256=NYF3KVw-9aAgCViin5OuBI6miMEPS5QsdHx6bcis1wc,2493
8
+ src/clients/common/__init__.py,sha256=VgvgxFpESn2wAuJmH0XM_Ej2izI7dxK7QJe9wG4fmW0,211
9
+ src/clients/common/alias.py,sha256=rB53TSld5x2vZyDNAwyEdnh1KWUXMSD7h5fSv_ubR2Q,759
10
+ src/clients/common/client.py,sha256=xXsCab5H3360lF4SXSVXiZY-F4XTAMljGIFl-PyNdG0,1119
11
+ src/clients/common/cluster.py,sha256=pd5BVpqqDU6Lck3K704eEdhgFgzt9NstotWQLyG9zFM,401
12
+ src/clients/common/data_stream.py,sha256=2zFCekGxF9f6kxFSRmb8qP8nzONf7IrLzb4vO0bHjfs,741
13
+ src/clients/common/document.py,sha256=ZzZiXDf_UhlN2FCmqW3drVjIZ07kGYP9yth_sgsJGPc,1623
14
+ src/clients/common/general.py,sha256=_1eS11Ha-JC1x1YoSu63zUWXKvYkwvN8RQOUM1fx39M,469
15
+ src/clients/common/index.py,sha256=vyH5iXlJe5JLcDK6fhCCEPN-tgGm6zP5ilwGPdWCXbY,776
16
+ src/tools/__init__.py,sha256=PGsXXpPubVnUbzXJG4keDhgjr0j6EnMNDs0aLqNIb4A,387
17
+ src/tools/alias.py,sha256=p9TD4gXkGRGWHTYfvCg7G2hj-Uch9jwDXJNUY1hSD0Y,1376
18
+ src/tools/cluster.py,sha256=XRAG-uxdfrieYX1ov_cBb66IYXaa8OoSWCUfXvNauy0,587
19
+ src/tools/data_stream.py,sha256=l9VItmvIkkffF2g3kLaRU-4VytzWteorB7vnpvovcdE,1825
20
+ src/tools/document.py,sha256=XZTVuk4di9VEwWMZN7jyDVnzoOiXkb4FBrXF44sVXTs,2052
21
+ src/tools/general.py,sha256=whj1spjIb8SS75h843X6c3RTsrZcSm-66KVLlY7OEh0,817
22
+ src/tools/index.py,sha256=7KNPtElTFelkjRSvdMqPBx9nx_9Uk01OnTMeVo7YeCs,1345
23
+ src/tools/register.py,sha256=Q5iZA4kq_fAckIAvolg0QtITO04m-cKEypn-4hkTXmA,3362
24
+ elasticsearch_mcp_server-2.0.17.dist-info/METADATA,sha256=phNj5lvj8_0lD-yRgaPlhFp3Rnia6iNXhv1NrRHWxHI,24391
25
+ elasticsearch_mcp_server-2.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ elasticsearch_mcp_server-2.0.17.dist-info/entry_points.txt,sha256=ImfJnUwMpQUBmu-1MeBG_P0dwamfXKQh82mBKW7tWNY,138
27
+ elasticsearch_mcp_server-2.0.17.dist-info/licenses/LICENSE,sha256=DBsjuP5FR51d9kaUdXlVBuBv3cQ_I_adq9gefYQ9FcY,11339
28
+ elasticsearch_mcp_server-2.0.17.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ elasticsearch-mcp-server = src.server:elasticsearch_mcp_server
3
+ opensearch-mcp-server = src.server:opensearch_mcp_server