Add your description here
Project description
- OpenSearch MCP Server
- Installing opensearch-mcp-server-py
- Available tools
- User Guide
- Contributing
- Code of Conduct
- License
- Copyright
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
Installing opensearch-mcp-server-py
Opensearch-mcp-server-py can be installed from PyPI via pip:
pip install opensearch-mcp-server-py
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 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opensearch_mcp_server_py-0.2.0.tar.gz.
File metadata
- Download URL: opensearch_mcp_server_py-0.2.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c6142f0ea780b7a4cdbb73b2da3790f9d052a6111b21b51a0359becd7b80f7e
|
|
| MD5 |
7b107fd089792aab5c7c35acf027d4cb
|
|
| BLAKE2b-256 |
e839015bf6036af40e6d0d6174ccdb923f16c07a4797db5f894731b8449e6fb2
|
Provenance
The following attestation bundles were made for opensearch_mcp_server_py-0.2.0.tar.gz:
Publisher:
publish-release.yml on opensearch-project/opensearch-mcp-server-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opensearch_mcp_server_py-0.2.0.tar.gz -
Subject digest:
9c6142f0ea780b7a4cdbb73b2da3790f9d052a6111b21b51a0359becd7b80f7e - Sigstore transparency entry: 252100048
- Sigstore integration time:
-
Permalink:
opensearch-project/opensearch-mcp-server-py@8e7ba99b6b29454e178cd23b595c8883e221a19e -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/opensearch-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-release.yml@8e7ba99b6b29454e178cd23b595c8883e221a19e -
Trigger Event:
push
-
Statement type:
File details
Details for the file opensearch_mcp_server_py-0.2.0-py3-none-any.whl.
File metadata
- Download URL: opensearch_mcp_server_py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b800299b2187dd0184e4131130300e8cb6480da9719cfa1b97aef713e0378ba2
|
|
| MD5 |
ac65fd70196f83d084c792841911cd51
|
|
| BLAKE2b-256 |
415722a4c0fbf8c7d5f5d236b39e9f82c4490cc63d7a9b137b1e58556cefa6d4
|
Provenance
The following attestation bundles were made for opensearch_mcp_server_py-0.2.0-py3-none-any.whl:
Publisher:
publish-release.yml on opensearch-project/opensearch-mcp-server-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opensearch_mcp_server_py-0.2.0-py3-none-any.whl -
Subject digest:
b800299b2187dd0184e4131130300e8cb6480da9719cfa1b97aef713e0378ba2 - Sigstore transparency entry: 252100050
- Sigstore integration time:
-
Permalink:
opensearch-project/opensearch-mcp-server-py@8e7ba99b6b29454e178cd23b595c8883e221a19e -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/opensearch-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-release.yml@8e7ba99b6b29454e178cd23b595c8883e221a19e -
Trigger Event:
push
-
Statement type: