Back to Browse

Opensearch MCP Server

Developer ToolsModerate6.8Local
$7.00/mo

Search OpenSearch indices, manage documents, check health and stats.

About

Search OpenSearch indices, manage documents, check health and stats.

Security Report

6.8
Moderate6.8Moderate Risk

This OpenSearch MCP server is well-structured with appropriate authentication mechanisms and reasonable permission scope for its intended purpose. Authentication is properly handled through environment variables (API keys or Basic auth), credentials are not hardcoded, and input validation is present via Zod schemas and URL encoding. Minor code quality issues exist around broad error handling and the @ts-nocheck directive, but these do not introduce security vulnerabilities. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

5 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

OpenSearch server URL (default: http://localhost:9200)Optional

Environment variable: OPENSEARCH_URL

OpenSearch API key for authenticationRequired

Environment variable: OPENSEARCH_API_KEY

OpenSearch username for basic authOptional

Environment variable: OPENSEARCH_USERNAME

OpenSearch password for basic authRequired

Environment variable: OPENSEARCH_PASSWORD

How to Install

Install instructions and configuration are available after purchase.

Documentation

View on GitHub

From the project's GitHub README.

OpenSearch MCP

An MCP server for OpenSearch, the community-driven, Apache 2.0 search and analytics suite.

What it does

Search through OpenSearch indices, manage documents, create/delete indexes, check cluster health, and monitor statistics. Perfect for AI agents that need to query search indexes.

Tools

  • check_health - Check cluster health status
  • list_indices - List all indices
  • get_index - Get index details
  • create_index - Create a new index
  • delete_index - Delete an index
  • search_index - Search documents in an index
  • search_raw - Search with raw OpenSearch query DSL
  • get_documents - List documents in an index
  • get_document - Get a single document by ID
  • index_document - Add a document to an index
  • delete_document - Delete a document by ID
  • get_stats - Get instance-wide statistics
  • get_cluster_stats - Get cluster statistics
  • get_tasks - List async tasks
  • get_mappings - Get index mappings
  • list_shards - List all shards
  • list_nodes - List all cluster nodes

Install

npx opensearch-mcp

Environment Variables

  • OPENSEARCH_URL - OpenSearch server URL (default: http://localhost:9200)
  • OPENSEARCH_API_KEY - API key for authentication (preferred)
  • OPENSEARCH_USERNAME / OPENSEARCH_PASSWORD - Basic auth credentials

Claude Desktop setup

{
  "mcpServers": {
    "opensearch": {
      "command": "npx",
      "args": ["-y", "opensearch-mcp"],
      "env": {
        "OPENSEARCH_URL": "http://localhost:9200",
        "OPENSEARCH_API_KEY": "your-api-key"
      }
    }
  }
}

Example usage

"Search my products index for 'wireless headphones'" "Check if my OpenSearch cluster is healthy" "Create a new index called 'blog-posts'" "How many documents are in my logs index?"

License

MIT

Reviews

No reviews yet

Be the first to review this server!