Skip to main content

OpenSearch MCP Server с поддержкой Dashboards API - форк с дополнительной функциональностью для подключения через OpenSearch Dashboards

Project description

OpenSearch logo

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

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

  • 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

  • ListIndexTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
  • IndexMappingTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (required): The name of the index to retrieve mappings for
  • SearchIndexTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (required): The name of the index to search in
    • query (required): The search query in OpenSearch Query DSL format
  • GetShardsTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (required): The name of the index to get shard information for
  • ClusterHealthTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (optional): Limit health reporting to a specific index
  • CountTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (optional): The name of the index to count documents in
    • body (optional): Query in JSON format to filter documents
  • ExplainTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (required): The name of the index to retrieve the document from
    • id (required): The document ID to explain
    • body (required): Query in JSON format to explain against the document
  • MsearchTool

    • opensearch_url (optional): The OpenSearch cluster URL to connect to
    • index (optional): Default index to search in
    • body (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:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gg_mcp_os-0.3.2.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gg_mcp_os-0.3.2-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file gg_mcp_os-0.3.2.tar.gz.

File metadata

  • Download URL: gg_mcp_os-0.3.2.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for gg_mcp_os-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6692b1d00c0df3c977d3e10c205a5a3722a2d1fd08a32c53e5e3959ed63adbb7
MD5 5d8d563898d055c4bd071260a1655e36
BLAKE2b-256 7ac584a7f437c857fc29c4bc8c178611c5ad7ccc67949bd1fd7f3d7540cc0f7c

See more details on using hashes here.

File details

Details for the file gg_mcp_os-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: gg_mcp_os-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for gg_mcp_os-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52764eea16972a1e310585094b0be6679af8194973d5b2f83590cfe7b890a718
MD5 2b404c62b8dcbb69c30eee22c999e5ea
BLAKE2b-256 a45a1fab61cc80082884342460d440f23da3e11276f7b445c90c275bffbb4fb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page