Elasticsearch
Search, inspect, and manage Elasticsearch indices and documents over the REST API.
Tools
| Name | Description |
|---|---|
validate_connectionValidate Elasticsearch credentials with a low-impact cluster info request. | Validate Elasticsearch credentials with a low-impact cluster info request. |
list_indicesList Elasticsearch indices using the cat indices JSON endpoint. | List Elasticsearch indices using the cat indices JSON endpoint. |
get_indexGet Elasticsearch index settings, mappings, and aliases for one index. | Get Elasticsearch index settings, mappings, and aliases for one index. |
create_indexCreate an Elasticsearch index with optional settings, mappings, and aliases. | Create an Elasticsearch index with optional settings, mappings, and aliases. |
delete_indexDelete one Elasticsearch index. Requires the exact index name to be repeated for confirmation. | Delete one Elasticsearch index. Requires the exact index name to be repeated for confirmation. |
search_documentsRun an Elasticsearch Query DSL search against an index or all indices. | Run an Elasticsearch Query DSL search against an index or all indices. |
index_documentCreate or replace a document in an Elasticsearch index. | Create or replace a document in an Elasticsearch index. |
update_documentPartially update a document by ID using the Elasticsearch update API. | Partially update a document by ID using the Elasticsearch update API. |
get_documentRetrieve one Elasticsearch document by index and document ID. | Retrieve one Elasticsearch document by index and document ID. |
delete_documentDelete one Elasticsearch document. Requires the exact document ID to be repeated for confirmation. | Delete one Elasticsearch document. Requires the exact document ID to be repeated for confirmation. |
custom_api_callMake a guarded custom call to the configured Elasticsearch cluster origin. | Make a guarded custom call to the configured Elasticsearch cluster origin. |
Triggers
| Name | Description |
|---|---|
search_results_changedPolls an Elasticsearch query and triggers when the top result IDs or versions change. | Polls an Elasticsearch query and triggers when the top result IDs or versions change. |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('elasticsearch', 'validate_connection', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'elasticsearch',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect Elasticsearch to my app?
Use Weavz Hosted Connect for Custom authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does Elasticsearch support?
Elasticsearch supports 11 tools including Validate Connection, List Indices, Get Index, Create Index, Delete Index, and more.
Can I use Elasticsearch with AI agents?
Yes. Add Elasticsearch to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect Elasticsearch to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add Elasticsearch as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped Elasticsearch tools exposed by that workspace.
Does Elasticsearch work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved Elasticsearch work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with Elasticsearch?
Elasticsearch exposes 11 tools, including Validate Connection, List Indices, Get Index, Create Index, Delete Index, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can Elasticsearch be used in stateful agent workflows?
Yes. Agents can combine Elasticsearch tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does Elasticsearch use?
Elasticsearch uses Custom. Weavz stores credentials securely and uses them for authorized action execution.
How much does the Elasticsearch integration cost?
The Elasticsearch integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
What triggers does Elasticsearch support?
Elasticsearch supports 1 triggers including Search Results Changed.
Connect Elasticsearch in minutes
Get 20,000 free action executions every month. No credit card required.