opensearch-mcp
v1.0.3Search OpenSearch indices, manage documents, check health and stats.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_health
Check the health of the OpenSearch cluster.
list_indices
List all indices in the OpenSearch cluster.
create_index
Create a new index with optional settings.
| Parameter | Type | Description |
|---|---|---|
index * | string | Index name |
settings | string | JSON settings object (optional) |
delete_index
Delete an index.
| Parameter | Type | Description |
|---|---|---|
index * | string | Index name to delete |
get_index
Get information about a specific index.
| Parameter | Type | Description |
|---|---|---|
index * | string | Index name |
search_index
Search for documents in an index.
| Parameter | Type | Description |
|---|---|---|
index * | string | Index name to search |
query * | string | Search query string |
from | number | Offset for pagination (default 0) |
limit | number | Max results (default 20) |
search_raw
Search with raw OpenSearch query DSL (advanced usage).
| Parameter | Type | Description |
|---|---|---|
index * | string | Index name to search |
query * | string | Full OpenSearch query DSL as JSON string |
index_document
Add a document to an index.
| Parameter | Type | Description |
|---|---|---|
document * | string | JSON document to index |
index * | string | Index name |
id | string | Document ID (optional, auto-generated if omitted) |
get_document
Retrieve a document by ID from an index.
| Parameter | Type | Description |
|---|---|---|
id * | string | Document ID |
index * | string | Index name |
delete_document
Delete a document by ID from an index.
| Parameter | Type | Description |
|---|---|---|
id * | string | Document ID to delete |
index * | string | Index name |
get_stats
Get statistics for all indices.
get_cluster_stats
Get cluster-wide statistics.
get_tasks
List all tasks in the cluster.
get_mappings
Get mapping definitions for an index.
| Parameter | Type | Description |
|---|---|---|
index * | string | Index name |
list_shards
List all shards in the cluster.
list_nodes
List all nodes in the cluster.