opensearch-mcp-server-py
Verified Safeby opensearch-project
Overview
Enables AI assistants and LLMs to interact with OpenSearch clusters by providing a standardized Model Context Protocol (MCP) interface through built-in and dynamic tools.
Installation
uvx opensearch-mcp-server-pyEnvironment Variables
- OPENSEARCH_URL
- OPENSEARCH_USERNAME
- OPENSEARCH_PASSWORD
- AWS_REGION
- AWS_IAM_ARN
- AWS_PROFILE
- AWS_OPENSEARCH_SERVERLESS
- OPENSEARCH_NO_AUTH
- OPENSEARCH_HEADER_AUTH
- OPENSEARCH_TIMEOUT
- OPENSEARCH_SSL_VERIFY
- OPENSEARCH_MAX_RESPONSE_SIZE
- OPENSEARCH_ENABLED_TOOLS
- OPENSEARCH_DISABLED_TOOLS
- OPENSEARCH_TOOL_CATEGORIES
- OPENSEARCH_ENABLED_CATEGORIES
- OPENSEARCH_DISABLED_CATEGORIES
- OPENSEARCH_ENABLED_TOOLS_REGEX
- OPENSEARCH_DISABLED_TOOLS_REGEX
- OPENSEARCH_SETTINGS_ALLOW_WRITE
Security Notes
The server employs robust input validation through Pydantic models, structured authentication methods (IAM, Basic, AWS credentials, Header-based), configurable SSL verification, and active response size limiting to prevent memory exhaustion. Write operations via the GenericOpenSearchApiTool are protected by an explicit configuration setting (OPENSEARCH_SETTINGS_ALLOW_WRITE). No obvious 'eval' or hardcoded production secrets were found. The primary security consideration is user misconfiguration (e.g., enabling OPENSEARCH_NO_AUTH in production or allowing unrestricted write operations via GenericOpenSearchApiTool if not needed).
Similar Servers
mcp-server-elasticsearch
Connects Model Context Protocol (MCP) clients to Elasticsearch instances, enabling natural language queries and interactions with Elasticsearch indices and data.
mcp-omnisearch
Provides a unified interface for various search, AI response, content processing, and enhancement tools via Model Context Protocol (MCP).
mcp-openapi-server
A Model Context Protocol (MCP) server that exposes OpenAPI endpoints as MCP tools, along with optional support for MCP prompts and resources, enabling Large Language Models to interact with REST APIs.
meilisearch-mcp
Connect LLMs to Meilisearch for natural language interaction and management of search indices and data.