
OpenSearch MCP
STDIOOfficialModel Context Protocol server enabling AI assistants to interact with OpenSearch clusters.
Model Context Protocol server enabling AI assistants to interact with OpenSearch clusters.
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 Server-Sent Events (SSE) protocols.
Key features:
Opensearch-mcp-server-py can be installed from PyPI via pip:
pip install opensearch-mcp-server-py
ListIndexTool
opensearch_url
(optional): The OpenSearch cluster URL to connect toIndexMappingTool
opensearch_url
(optional): The OpenSearch cluster URL to connect toindex
(required): The name of the index to retrieve mappings forSearchIndexTool
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 formatGetShardsTool
opensearch_url
(optional): The OpenSearch cluster URL to connect toindex
(required): The name of the index to get shard information forClusterHealthTool
opensearch_url
(optional): The OpenSearch cluster URL to connect toindex
(optional): Limit health reporting to a specific indexCountTool
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 documentsExplainTool
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 documentMsearchTool
opensearch_url
(optional): The OpenSearch cluster URL to connect toindex
(optional): Default index to search inbody
(required): Multi-search request body in NDJSON formatMore tools coming soon. Click here
For detailed usage instructions, configuration options, and examples, please see the User Guide.
Interested in contributing? Check out our:
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact [email protected] with any additional questions or comments.
This project is licensed under the Apache v2.0 License.
Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.