opensearch-mcp-server-py
OpenSearch MCP Server
What it is and what it does
opensearch-mcp-server-py is a bridge between AI assistants (like Claude) and OpenSearch clusters, implemented as a Model Context Protocol server. It exposes OpenSearch operations—index listing, searching, mapping retrieval, shard inspection, cluster health checks, and more—as tools that LLMs can call during conversations. The server handles authentication (basic auth, IAM roles, header-based, mTLS) and supports dynamic per-call connection parameters, allowing a single agent to work with multiple clusters without reconfiguration.
The package ships with nine core tools enabled by default (search, list indices, get mappings, cluster health, etc.) and ten additional tools available on demand (node info, segment details, query insights, memory management). It supports both traditional stdio transport and streaming protocols (SSE, Streamable HTTP), making it compatible with Claude Desktop, LangChain, and other MCP clients. The agentic memory tools expose OpenSearch's server-side memory API for production pipelines that want centralized memory management.
Use it for:
- Enable Claude or other LLMs to search OpenSearch indices and retrieve results during multi-turn conversations without manual API calls.
- Build agentic systems where AI assistants autonomously query cluster health, shard allocation, and node metrics to diagnose operational issues.
- Integrate OpenSearch into LangChain workflows where agents need structured access to search, mapping, and cluster state APIs.
- Deploy multi-cluster discovery where a single agent dynamically connects to different OpenSearch endpoints based on runtime parameters.
- Centralize memory management in production AI pipelines using OpenSearch's agentic memory API for session and fact extraction.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Model Context Protocol (MCP) server that enables AI assistants and LLMs to query and manage OpenSearch clusters through a standardized interface supporting both stdio and streaming transports.
Yes, if you are building AI assistants or LLM agents that need to query or manage OpenSearch clusters. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and provides a clean MCP abstraction over OpenSearch APIs. Install friction is low and Python 3.10+ support is current. Not relevant if you do not use OpenSearch or do not need LLM integration.
Install
opensearch-mcp-server-py on PyPI
pip
pip install opensearch-mcp-server-pyuv
uv add opensearch-mcp-server-pypoetry
poetry add opensearch-mcp-server-pyInstalling opensearch-mcp-server-py
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release (16 days old) and steady repository activity. Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most deployment contexts.
Quickstart
pip install opensearch-mcp-server-py
from opensearch_mcp_server_py import OpenSearchMCPServer
server = OpenSearchMCPServer()
server.start()
Requires Python 3.10 or later; an OpenSearch cluster endpoint must be provided either via environment variables or dynamically per tool call.
Verify before relying
- Whether the package includes a CLI entry point or requires programmatic initialization via Python code.
- Whether all 16 runtime dependencies are required for basic operation or if some are optional based on feature selection.
- Performance characteristics and latency overhead when routing queries through the MCP protocol layer.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 16 — aiohttp, boto3, click, idna, mcp, numpy, opensearch-py, pydantic, pyyaml, requests, requests-aws4auth, scikit-learn, scipy, semver, pyjwt, urllib3 |
| Maintenance | actively maintained — 16 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 214,974/month — #9,408 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opensearch_mcp_server_py-0.11.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
awslabs.eks-mcp-serverConnects AI code assistants to Amazon EKS…
permissive · top 15,000 on PyPI
dbt-mcpExposes dbt project metadata and operations…
permissive · top 15,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
opensearch-pyPython client library for connecting to and…
permissive · top 1,000 on PyPI
opensearch-dslA Python client library for building and…
permissive · top 15,000 on PyPI
django-opensearch-dslIndexes Django model instances into OpenSearch…
permissive · top 15,000 on PyPI
wikipedia-mcpExposes Wikipedia search, article retrieval,…
permissive · top 15,000 on PyPI
cli-mcp-serverProvides a secure Model Context Protocol (MCP)…
unclear · top 15,000 on PyPI
excel-mcp-serverProvides a Model Context Protocol server that…
unclear · top 15,000 on PyPI
awslabs.redshift-mcp-serverProvides a Model Context Protocol (MCP) server…
permissive · top 15,000 on PyPI