data
Elastic MCP, CLI, and Lua Integration for AI Agents
Elastic integration docs for AI agents: MCP gateway setup, Elastic CLI commands, Lua API reference, credentials, and function schemas.Elastic for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
elastic.elastic_list_indices | Read read | 0 | List all indices in the Elasticsearch cluster. Returns index names, health status, document counts, and sizes. |
elastic.elastic_get_index | Read read | 1 | Get detailed information about a specific Elasticsearch index, including mappings, settings, and aliases. |
elastic.elastic_create_index | Write write | 2 | Create a new Elasticsearch index with optional settings and mappings. |
elastic.elastic_search_documents | Read read | 4 | Search for documents in an Elasticsearch index. Supports full query DSL including match, term, bool, and aggregation queries. |
elastic.elastic_index_document | Write write | 3 | Create or update a document in an Elasticsearch index. Provide an ID to update an existing document, or omit it to let Elasticsearch auto-generate one. |
elastic.elastic_get_document | Read read | 2 | Retrieve a single document from an Elasticsearch index by its ID. |
elastic.elastic_cluster_health | Read read | 0 | Get the health status of the Elasticsearch cluster, including status (green/yellow/red), number of nodes, and shard information. |