opensearch-mcp-server-py
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AWS_REGION | No | AWS region. | |
| AWS_IAM_ARN | No | IAM role ARN. | |
| AWS_PROFILE | No | AWS profile name. | |
| OPENSEARCH_URL | No | OpenSearch endpoint URL. | |
| OPENSEARCH_NO_AUTH | No | Connect without authentication. | |
| OPENSEARCH_TIMEOUT | No | Connection timeout in seconds. | |
| OPENSEARCH_PASSWORD | No | Password for basic auth. | |
| OPENSEARCH_USERNAME | No | Username for basic auth. | |
| MEMORY_TOOLS_ENABLED | No | Enable memory tools. | |
| OPENSEARCH_SSL_VERIFY | No | SSL certificate verification. | |
| AWS_OPENSEARCH_SERVERLESS | No | Use OpenSearch Serverless. | |
| OPENSEARCH_ENABLED_CATEGORIES | No | Categories to enable. | |
| OPENSEARCH_DISABLED_CATEGORIES | No | Categories to disable. | |
| OPENSEARCH_MEMORY_CONTAINER_ID | No | Memory container ID for agentic memory. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ListIndexToolA | Lists indices in the OpenSearch cluster. If an index name or pattern is specified, return only information about the provided index or index pattern. The include_detail flag controls output: if False, returns only index name(s); if True (default), returns full metadata. |
| IndexMappingToolB | Retrieves index mapping and setting information for an index in OpenSearch |
| SearchIndexToolB | Searches an index using a query written in query domain-specific language (DSL) in OpenSearch. PREREQUISITE: You need to know the mappings of the index before constructing queries. |
| GetShardsToolB | Gets information about shards in OpenSearch |
| GenericOpenSearchApiToolA | A flexible tool for calling any OpenSearch API endpoint. Supports all HTTP methods with custom paths, query parameters, request bodies, and headers. Use this when you need to access OpenSearch APIs that don't have dedicated tools, or when you need more control over the request. Leverages your knowledge of OpenSearch API documentation to construct appropriate requests. |
| ClusterHealthToolC | Returns basic information about the health of the cluster. |
| CountToolC | Returns number of documents matching a query. |
| MsearchToolC | Allows to execute several search operations in one request. |
| ExplainToolB | Returns information about why a specific document matches (or doesn't match) a query. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/opensearch-project/opensearch-mcp-server-py'
If you have feedback or need assistance with the MCP directory API, please join our Discord server