Integration

OpenSearch integration

OpenSearch is a community-driven, open-source search and analytics suite. It provides distributed search, aggregations, and analytics capabilities for log analysis, real-time application monitoring, and clickstream analytics. Features include full-text search, structured queries, aggregations, alerting, anomaly detection, and vector search for AI applications. Compatible with Elasticsearch clients and APIs.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in OpenSearch.Built from the 25 OpenSearch tools below, on the connection you add once.

Common OpenSearch use cases

  • disaster recovery
  • data archival
  • regular backups
  • bulk data import
  • full-text search
  • adding new fields
  • capacity planning
  • dashboard metrics
  • dashboard queries
  • bulk field updates

What you can do with OpenSearch

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Document, 11 operations

  • bulk_operationsBulk operationsPOSTAgents: ask firstExecutes multiple index, create, update, and delete operations in a single request. Each operation requires an action line and optional data line in NDJSON format. Significantly more efficient than individual API calls for batch processing.
  • count_documentsCount documentsPOSTAgents: ask firstReturns the count of documents matching a query without retrieving the documents. More efficient than search when only the count is needed. Supports full Query DSL.
  • delete_by_queryDelete by queryPOSTAgents: ask firstDeletes all documents matching a query. Processes documents in batches using scroll. Returns count of deleted documents and any failures. Set wait_for_completion=false for async execution.
  • delete_documentDelete documentDELETEAgents: ask firstDeletes a document from an index by its ID. The document is permanently removed. Returns the deletion result including version information and whether the document was found.
  • get_documentGet documentGETAgents: ask firstRetrieves a document by its ID from the specified index. Returns the document source (_source) along with metadata including version and index information. Use _source parameter to limit returned fields.
  • index_documentIndex documentPOSTAgents: ask firstIndexes a JSON document into the specified index. Creates the document if it doesn't exist or replaces it if it does (when ID is provided). Returns the document ID, version, and index result status.
  • multi_searchMulti searchPOSTAgents: ask firstExecutes multiple search requests in a single API call using NDJSON format. Each search has a header line (index, preferences) and body line (query). Returns array of responses corresponding to each search request.
  • scroll_searchScroll searchPOSTAgents: ask firstContinues scrolling through search results using a scroll context. First search with scroll parameter returns scroll_id. Subsequent calls with scroll_id retrieve next batch of results. Use for processing large result sets.
  • searchSearchPOSTAgents: ask firstExecutes a search query against one or more indices. Supports Query DSL for full-text search, term queries, range filters, boolean logic, and nested queries. Returns matching documents with scores, total hits, and optional aggregations.
  • update_by_queryUpdate by queryPOSTAgents: ask firstUpdates all documents matching a query using a script. Processes in batches with scroll. Script can modify, add, or remove fields. Returns count of updated documents and failures.
  • update_documentUpdate documentPOSTAgents: ask firstUpdates an existing document with partial changes or using a script. The doc field contains fields to merge with the existing document. Scripts enable complex transformations like incrementing counters.

Index, 3 operations

  • create_indexCreate indexPUTAgents: ask firstCreates a new OpenSearch index with specified settings, mappings, and aliases. Settings control shard configuration, replicas, and analyzers. Mappings define field types and indexing behavior. Returns acknowledgment with index name on success.
  • delete_indexDelete indexDELETEAgents: ask firstPermanently deletes one or more indices including all documents, mappings, and settings. Supports wildcards and comma-separated lists. This operation cannot be undone - all data is permanently lost.
  • get_indexGet indexGETAgents: ask firstRetrieves detailed information about one or more indices including settings, mappings, and aliases. Supports wildcards and comma-separated lists. Use for inspecting index configuration and field definitions.

Snapshot, 3 operations

  • create_snapshotCreate snapshotPUTAgents: ask firstCreates a snapshot of specified indices in a repository. Snapshots are incremental - only changes since the last snapshot are stored. Can include global state for complete cluster backup.
  • get_snapshotGet snapshotGETAgents: ask firstRetrieves information about snapshots including state, start/end times, indices included, and shard statistics. Use _all to list all snapshots in a repository.
  • restore_snapshotRestore snapshotPOSTAgents: ask firstRestores indices from a snapshot to the cluster. Can restore specific indices, rename during restore, and optionally include aliases and global state. Cannot restore to existing open indices with same name.

Alias, 2 operations

  • create_aliasCreate aliasPOSTAgents: ask firstManages index aliases with add, remove, and remove_index actions atomically. Aliases provide alternative names for indices, enable zero-downtime reindexing, and can include filters for data partitioning.
  • get_aliasesGet aliasesGETAgents: ask firstRetrieves alias definitions showing which indices each alias points to, along with filters and routing settings. Use for understanding alias configuration and debugging.

Cluster, 2 operations

  • cluster_healthCluster healthGETAgents: ask firstReturns cluster health status: green (all shards allocated), yellow (primary shards allocated, replicas missing), or red (primary shards missing). Includes node counts, shard statistics, and pending tasks.
  • cluster_statsCluster statsGETAgents: ask firstReturns comprehensive cluster statistics including node counts, index counts, document counts, storage size, and JVM/OS metrics. Aggregates data across all nodes in the cluster.

Mapping, 2 operations

  • get_mappingGet mappingGETAgents: ask firstRetrieves mapping definitions for one or more indices showing all field types, analyzers, and properties. Use for understanding index structure and debugging field type issues.
  • put_mappingPut mappingPUTAgents: ask firstAdds new fields to an existing index mapping or updates field properties where allowed. Cannot change existing field types - requires reindexing. Returns acknowledgment on success.

Index setting, 1 operation

  • update_index_settingsUpdate index settingsPUTAgents: ask firstUpdates dynamic settings for indices. Can change number_of_replicas, refresh_interval, and other dynamic settings. Static settings like number_of_shards cannot be changed after creation.

Snapshot repository, 1 operation

  • register_snapshot_repositoryRegister snapshot repositoryPUTAgents: ask firstRegisters a snapshot repository for backup and restore operations. Supports filesystem (fs), Amazon S3 (s3), HDFS (hdfs), and Azure storage backends. Repository must be registered before creating snapshots.

Use OpenSearch from Claude Code, Cursor or Codex

Connect OpenSearch in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its OpenSearch operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect OpenSearch

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect OpenSearch once

    Add your OpenSearch connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

OpenSearch integration FAQ

What can you do with the OpenSearch integration?

LiveContext exposes 25 operations on OpenSearch, covering document, index, snapshot and alias. Common uses include disaster recovery, data archival and regular backups.

Popular integrations

Browse the whole catalog