OpenSearch

OpenSearch

MCP server that enables AI agents to perform search and analytics use cases on data stored in OpenSearch.

76
Stars
49
Forks
6
Releases

Overview

OpenSearch MCP Server is a Model Context Protocol (MCP) server for OpenSearch that enables AI assistants to interact with OpenSearch clusters. It exposes a standardized MCP interface allowing AI models to perform core OpenSearch operations such as searching indices, retrieving mappings, listing indices, and shard management through both stdio and streaming transports (SSE and Streamable HTTP). The server ships with built-in core tools (enabled by default) for common tasks and supports additional tools (disabled by default) that can be enabled as needed via a tool filter. Tools expose configurable parameters for OpenSearch connections and operations (e.g., opensearch_url, index, body) and include a flexible GenericOpenSearchApiTool to call arbitrary endpoints, reducing tool proliferation. It integrates seamlessly with Claude Desktop and LangChain, and offers secure authentication via basic auth or IAM roles. Comprehensive usage and configuration guidance are provided in the User Guide, with development guidance in the Developer Guide. The project envisions ongoing expansion with more tools and capabilities.

Details

Owner
opensearch-project
Language
Python
License
Apache License 2.0
Updated
2025-12-07

Features

MCP protocol integration with AI assistants and LLMs

Seamless integration with the MCP protocol enabling AI models to perform OpenSearch operations like search, mappings, and shards.

Transport support: stdio and streaming

Supports both stdio and streaming transports (SSE and Streamable HTTP) for flexible interaction.

Built-in OpenSearch operation tools

Core tools for listing indices, index mappings, searching, shards, cluster health, counting, explaining, multi-search, and a flexible GenericOpenSearchApiTool.

Tool categorization and configurability

Core tools enabled by default; additional tools available but disabled by default; configurable via tool filter.

Easy integration with Claude Desktop and LangChain

Out-of-the-box support for Claude Desktop and LangChain.

Secure authentication options

Supports basic authentication or IAM roles for secure access.

Audience

AI developersIntegrate OpenSearch operations via MCP for AI assistants and LLMs.
LLM vendorsProvide standardized MCP-based OpenSearch access for model-driven agents.
Data engineersEnable AI-enabled automation of search and analytics workflows on OpenSearch.
Claude Desktop usersPlug MCP server into Claude Desktop workflows to interact with OpenSearch.
LangChain usersIntegrate LangChain pipelines with OpenSearch operations through the MCP server.

Tags

OpenSearchMCPAI assistantsLLMsStreamingSSEStreamable HTTPOpenSearch toolsIndexingMappingsShardsClaude DesktopLangChainAuthIAM