Skip to main content
Glama
opensearch-project

opensearch-mcp-server-py

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AWS_REGIONNoAWS region.
AWS_IAM_ARNNoIAM role ARN.
AWS_PROFILENoAWS profile name.
OPENSEARCH_URLNoOpenSearch endpoint URL.
OPENSEARCH_NO_AUTHNoConnect without authentication.
OPENSEARCH_TIMEOUTNoConnection timeout in seconds.
OPENSEARCH_PASSWORDNoPassword for basic auth.
OPENSEARCH_USERNAMENoUsername for basic auth.
MEMORY_TOOLS_ENABLEDNoEnable memory tools.
OPENSEARCH_SSL_VERIFYNoSSL certificate verification.
AWS_OPENSEARCH_SERVERLESSNoUse OpenSearch Serverless.
OPENSEARCH_ENABLED_CATEGORIESNoCategories to enable.
OPENSEARCH_DISABLED_CATEGORIESNoCategories to disable.
OPENSEARCH_MEMORY_CONTAINER_IDNoMemory container ID for agentic memory.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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