datgfg-opensearch-mcp-server-py

v0.3.2
datgfg-opensearch-mcp-server-py Checked 2 days ago Published 1 year ago

OpenSearch MCP Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ListIndexTool

Lists indices in the OpenSearch cluster. By default, returns a filtered list of index names only to minimize response size. Set include_detail=true to return full metadata from cat.indices (docs.count, store.size, etc.). If an index parameter is provided, returns detailed information for that specific index including mappings and settings.

ParameterTypeDescription
include_detailbooleanWhether to include detailed information. When listing indices (no index specified), if False, returns only a pure list of index names. If True, returns full metadata. When a specific index is provided…
indexstringThe name of the index to get detailed information for. If provided, returns detailed information about this specific index instead of listing all indices.

IndexMappingTool

Retrieves index mapping and setting information for an index in OpenSearch

ParameterTypeDescription
index *stringThe name of the index to get mapping information for

SearchIndexTool

Searches an index using a query written in query domain-specific language (DSL) in OpenSearch

ParameterTypeDescription
index *stringThe name of the index to search in
query *The search query in OpenSearch query DSL format

GetShardsTool

Gets information about shards in OpenSearch

ParameterTypeDescription
index *stringThe name of the index to get shard information for

GetClusterStateTool

Gets the current state of the cluster including node information, index settings, and more. Can be filtered by specific metrics and indices.

ParameterTypeDescription
indexLimit the information returned to the specified indices
metricLimit the information returned to the specified metrics. Options include: _all, blocks, metadata, nodes, routing_table, routing_nodes, master_node, version

GetSegmentsTool

Gets information about Lucene segments in indices, including memory usage, document counts, and segment sizes. Can be filtered by specific indices.

ParameterTypeDescription
indexLimit the information returned to the specified indices. If not provided, returns segments for all indices.

CatNodesTool

Lists node-level information, including node roles and load metrics. Gets information about nodes metrics in the OpenSearch cluster, including system metrics pid, name, cluster_manager, ip, port, version, build, jdk, along with disk, heap, ram, and file_desc. Can be filtered to specific metrics.

ParameterTypeDescription
metricsA comma-separated list of metrics to display. Available metrics include: id, name, ip, port, role, master, heap.percent, ram.percent, cpu, load_1m, load_5m, load_15m, disk.total, disk.used, disk.avail…

GetIndexInfoTool

Gets detailed information about an index including mappings, settings, and aliases. Supports wildcards in index names.

ParameterTypeDescription
index *stringThe name of the index to get detailed information for. Wildcards are supported.

GetIndexStatsTool

Gets statistics about an index including document count, store size, indexing and search performance metrics. Can be filtered to specific metrics.

ParameterTypeDescription
index *stringThe name of the index to get statistics for. Wildcards are supported.
metricLimit the information returned to the specified metrics. Options include: _all, completion, docs, fielddata, flush, get, indexing, merge, query_cache, refresh, request_cache, search, segments, store,…

GetQueryInsightsTool

Gets query insights from the /_insights/top_queries endpoint, showing information about query patterns and performance.

GetNodesHotThreadsTool

Gets information about hot threads in the cluster nodes from the /_nodes/hot_threads endpoint.

GetAllocationTool

Gets information about shard allocation across nodes in the cluster from the /_cat/allocation endpoint.

GetLongRunningTasksTool

Gets information about long-running tasks in the cluster, sorted by running time in descending order.

ParameterTypeDescription
limitThe maximum number of tasks to return. Default is 10.

GetNodesTool

Gets detailed information about nodes in the OpenSearch cluster, including static information like host system details, JVM info, processor type, node settings, thread pools, installed plugins, and more. Can be filtered by specific nodes and metrics.

ParameterTypeDescription
metricA comma-separated list of metric groups to include in the response. Options include: settings, os, process, jvm, thread_pool, transport, http, plugins, ingest, aggregations, indices. Defaults to all m…
node_idA comma-separated list of node IDs or names to limit the returned information. Supports node filters like _local, _master, master:true, data:false, etc. Defaults to _all.