Registry / ai-ml / opensearch-mcp-server-py

opensearch-mcp-server-py

JSON →
library0.10.0pypypi✓ verified 79d ago

An MCP (Model Context Protocol) server for OpenSearch, enabling AI agents to interact with OpenSearch clusters for search, indexing, and management operations. Current version: 0.10.0. Release cadence: active development with frequent updates.

pip install opensearch-mcp-server-py
INSTALL
IMPORT
SIG · OPENSEARCH-MCP-SER
O
opensearch-mcp-server-py
ai-mlpythonv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main
from mcp_server_opensearch import main
from opensearch_mcp_server import run

Requires environment variables: OPENSEARCH_HOST, OPENSEARCH_PORT, OPENSEARCH_USER, OPENSEARCH_PASSWORD (or appropriate auth).

import os from opensearch_mcp_server import run if __name__ == "__main__": run()
Debug
Known issues
breakingIn version 0.9.0, the run() function was moved from opensearch_mcp_server.server to opensearch_mcp_server. The old import path will raise ImportError.
fix
Use 'from opensearch_mcp_server import run' instead of 'from opensearch_mcp_server.server import run'.
affects: >=0.9.0
gotchaThe server expects environment variables for OpenSearch connection (OPENSEARCH_HOST, OPENSEARCH_PORT, etc.). If not set, the server may fail silently or connect to localhost with default credentials.
fix
Always set OPENSEARCH_HOST and required auth environment variables before starting.
affects: all
Upgrade
Version history
0.10.0latest on PyPI · released Jun 2, 2026
Audit
Dependencies
opensearch-pyrequiredOfficial OpenSearch Python client for cluster communication
mcprequiredMCP framework for building servers
Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
opensearch-mcp-server-py — pip install opensearch-mcp-server-py · libregistry