Link Search Menu Expand Document Documentation Menu

AI agent integrations

OpenSearch supports AI agents in two ways:

  • External agents connecting to OpenSearch (this section) – AI tools run outside of your OpenSearch cluster and use OpenSearch as a data source. Examples include Claude Desktop with the MCP Server or Cursor with agent skills. Install these tools on your machine and configure your client.
  • Internal agents running in OpenSearch – OpenSearch agents run inside the OpenSearch cluster and can call both internal tools and external MCP servers. Register these agents through ML Commons Agent APIs and configure cluster settings. For more information, see Agents and tools.

The following diagram illustrates how external and internal agents integrate with OpenSearch.

Diagram showing how external and internal agents integrate with OpenSearch

External agent integrations

External AI agents and coding assistants can connect to OpenSearch by using the following open-source projects that run outside the cluster:

  • OpenSearch MCP Server – A Model Context Protocol (MCP) server that exposes OpenSearch to MCP-compatible clients such as Claude Desktop, Cursor, and Kiro. The AI client makes natural-language requests; the server translates them into OpenSearch REST calls.
  • Agent skills – Installable skill bundles that teach AI coding assistants how to build search applications, analyze logs and traces, and deploy OpenSearch to AWS. Skills run inside the assistant and follow the Agent Skills specification; no server is required.

OpenSearch also provides the following agent capabilities configured inside the cluster:

  • Agents (flow, conversational, and plan-execute-reflect) registered through the ML Commons Agent APIs.
  • Tools such as VectorDBTool, ListIndexTool, and PPLTool that OpenSearch agents can use.
  • The in-cluster MCP connector that lets an OpenSearch agent call tools hosted on an external MCP server.

The following table describes when to use each feature.

Use case Feature
Let an external AI assistant query OpenSearch OpenSearch MCP Server
Teach a coding assistant how to work with OpenSearch Agent skills
Run an agent that calls external tools inside OpenSearch Using MCP tools
Register and run agents inside the cluster Agents and tools
350 characters left

Have a question? .

Want to contribute? or .