Link Search Menu Expand Document Documentation Menu

AI agent integrations

OpenSearch integrates with AI agents so you can use it as a data source for external AI tools or run agents inside the cluster. 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.
  • An MCP connector that lets OpenSearch agents call tools hosted on external MCP servers.
  • An in-cluster MCP server that lets external MCP clients call tools registered in your cluster.

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
Register and run agents inside the cluster Agents and tools

To compare all MCP options, including the in-cluster MCP server and the MCP connector, see MCP servers and clients.

350 characters left

Have a question? .

Want to contribute? or .