opensearch-mcp-server
Verified Safeby thabiso-m-absa
Overview
This server integrates OpenSearch clusters with AI systems via the Model Context Protocol (MCP), enabling AI to perform search, indexing, aggregation, and management tasks across multiple clusters.
Installation
npm startEnvironment Variables
- OPENSEARCH_URL
- OPENSEARCH_USERNAME
- OPENSEARCH_PASSWORD
- OPENSEARCH_CLUSTERS
- OPENSEARCH_CLUSTER_NAME
- OPENSEARCH_DEFAULT_CLUSTER
- OPENSEARCH_REJECT_UNAUTHORIZED
- OPENSEARCH_CA_CERT_PATH
- OPENSEARCH_REQUEST_TIMEOUT
- OPENSEARCH_DEFAULT_INDEX
- OPENSEARCH_INDEX_PREFIX
- OPENSEARCH_ADMIN_PASSWORD
- AWS_REGION
- AWS_SERVICE
Security Notes
The source code, specifically `src/mcp.json`, contains hardcoded OpenSearch production-like credentials (URL, username, and password). While this might be intended as an example for VS Code configuration, storing such secrets directly in the repository is a critical security vulnerability if the repository is public or accessed by unauthorized individuals. The application itself relies on environment variables for configuration, which is a better practice, but the presence of this example reduces the overall security posture due to potential misuse. Additionally, `aws-sdk` is `require`d dynamically for AWS authentication but is not listed as a dependency in `package.json`, which could lead to runtime errors in AWS-configured environments.
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).
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
opensearch-mcp-server-py
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.