loading…
Search for a command to run...
loading…
Enables LLMs to interact with OpenSearch clusters to monitor cluster health, manage indices, and perform data searches. It provides a standardized interface for
Enables LLMs to interact with OpenSearch clusters to monitor cluster health, manage indices, and perform data searches. It provides a standardized interface for real-time OpenSearch operations within MCP-compatible environments like Open WebUI.
This repository starts everything with one Docker Compose command:
http://localhost:9200http://localhost:5601http://localhost:3001/mcphttp://localhost:3002docker-compose.yml..env file with secrets.copy .env.example .env
Edit .env and set:
WEBUI_SECRET_KEY to a long random value (required)OPENAI_API_KEY (optional)docker compose up -d --build
Check status:
docker compose ps
http://localhost:3002 and sign in as admin.Admin Panel -> Settings -> Tools (or Tool Servers, depending on Open WebUI version).MCPOpenSearch MCPopensearch_mcphttp://opensearch-mcp:3001/mcpNonecluster_health, list_indices, search_indices).If your environment cannot resolve Docker service names from Open WebUI, use:
http://host.docker.internal:3001/mcpModels and select gpt-4o-mini (or create a custom model entry mapped to gpt-4o-mini).opensearch_mcp tool server.gpt-4o-mini.opensearch_mcp is active.Note: exact menu labels differ slightly by Open WebUI version, but the flow is always: Tool Server setup -> Model tool enablement -> Enable tools in chat.
Use the configured model (gpt-4o-mini) and send:
Use MCP tools only.
Call cluster_health and return cluster_name, status, number_of_nodes, active_primary_shards.
Do not answer from memory.
Expected behavior:
cluster_health.docker compose down
To remove volumes too:
docker compose down -v
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"opensearch-mcp-server": {
"command": "npx",
"args": []
}
}
}