OpenSearch MCP Server с поддержкой Dashboards API
Форк от: opensearch-project/opensearch-mcp-server-py
Основные улучшения:
- ✅ Поддержка OpenSearch Dashboards API
- ✅ Подключение когда прямой API недоступен
- ✅ Полная совместимость с оригинальным MCP сервером
OpenSearch MCP Server
opensearch-mcp-server-py is a Model Context Protocol (MCP) server for OpenSearch that enables AI assistants to interact with OpenSearch clusters. It provides a standardized interface for AI models to perform operations like searching indices, retrieving mappings, and managing shards through both stdio and streaming (SSE/Streamable HTTP) protocols.
Key features:
- Seamless integration with AI assistants and LLMs through the MCP protocol
- Support for both stdio and streaming server transports (SSE and Streamable HTTP)
- Built-in tools for common OpenSearch operations
- Easy integration with Claude Desktop and LangChain
- Secure authentication using basic auth or IAM roles
- NEW: OpenSearch Dashboards API support - connect when direct OpenSearch API is not available
- NEW: Connection diagnostic tool with detailed troubleshooting and error resolution
Installing opensearch-mcp-server-py
Using uv (recommended)
# Clone the forked repository with Dashboards API support
git clone https://github.com/VladMain/opensearch-mcp-server-py.git
cd opensearch-mcp-server-py
# Install with uv
uv sync
# Run the server
uv run mcp-server-opensearch --config your_config.yml
Using pip
Opensearch-mcp-server-py can be installed from PyPI via pip:
pip install opensearch-mcp-server-py
OpenSearch Dashboards Support
This fork includes support for connecting through OpenSearch Dashboards API when direct OpenSearch access is not available. See FORT_OPENSEARCH_SETUP.md for detailed setup instructions.
Available Tools
- ConnectionDiagnosticTool: 🔧 Diagnose OpenSearch connection issues and provide detailed troubleshooting information with step-by-step resolution guidance.
- ListIndexTool: Lists all indices in OpenSearch.
- IndexMappingTool: Retrieves index mapping and setting information for an index in OpenSearch.
- SearchIndexTool: Searches an index using a query written in query domain-specific language (DSL) in OpenSearch.
- GetShardsTool: Gets information about shards in OpenSearch.
- ClusterHealthTool: Returns basic information about the health of the cluster.
- CountTool: Returns number of documents matching a query.
- ExplainTool: Returns information about why a specific document matches (or doesn't match) a query.
- MsearchTool: Allows to execute several search operations in one request.
Tool Parameters
-
ConnectionDiagnosticTool
opensearch_cluster_name(optional): The name of the OpenSearch cluster to diagnose
-
ListIndexTool
opensearch_url(optional): The OpenSearch cluster URL to connect to
-
IndexMappingTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(required): The name of the index to retrieve mappings for
-
SearchIndexTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(required): The name of the index to search inquery(required): The search query in OpenSearch Query DSL format
-
GetShardsTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(required): The name of the index to get shard information for
-
ClusterHealthTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(optional): Limit health reporting to a specific index
-
CountTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(optional): The name of the index to count documents inbody(optional): Query in JSON format to filter documents
-
ExplainTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(required): The name of the index to retrieve the document fromid(required): The document ID to explainbody(required): Query in JSON format to explain against the document
-
MsearchTool
opensearch_url(optional): The OpenSearch cluster URL to connect toindex(optional): Default index to search inbody(required): Multi-search request body in NDJSON format
More tools coming soon. Click here
User Guide
For detailed usage instructions, configuration options, and examples, please see the User Guide.
Contributing
Interested in contributing? Check out our:
- Development Guide - Setup your development environment
- Contributing Guidelines - Learn how to contribute
Code of Conduct
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact opensource-codeofconduct@amazon.com with any additional questions or comments.
License
This project is licensed under the Apache v2.0 License.
Copyright
Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Metadata
Release files for gg-mcp-os 0.4.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 | |
|---|---|---|---|---|
| gg_mcp_os-0.4.0.tar.gz | 30.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gg_mcp_os-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.3 kB
Release files / gg_mcp_os-0.4.0.tar.gz
| Download URL | gg_mcp_os-0.4.0.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f45cb1cee61691415c538a855e742dd44d08373cf8e6bc2ec30b363b88254f66
|
|
BLAKE2b-256 checksum How to use checksums |
b047a97ffa6f4eca3281581efb9abf027694b1d539e4eaf69a44d87e179bc91c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / gg_mcp_os-0.4.0-py3-none-any.whl
| Download URL | gg_mcp_os-0.4.0-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d13377550f403434cf7150b9f976b0196ec8a6184e13e3e6a282243d91631d9
|
|
BLAKE2b-256 checksum How to use checksums |
1bd04416076dfa134b79fc5ac0c7eb516f643fbec16f3eb1e922b6984ee49da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for gg-mcp-os 0.4.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.