iflow-mcp-opensearch-project-opensearch-mcp-server-py

v0.7.0
iflow-mcp-opensearch-project-opensearch-mcp-server-py Checked 2 days ago Published 9 months ago

OpenSearch MCP Server

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

DataDistributionTool

Analyzes data distribution patterns and field value frequencies within OpenSearch indices. Supports both single dataset analysis for understanding data characteristics and comparative analysis between two time periods to identify distribution changes. Automatically detects useful fields, calculates value distributions, groups numeric data, and computes divergence metrics. Useful for anomaly detection, data quality assessment, and trend analysis. We can use this tool to analyze the distribution of failures over time

ParameterTypeDescription
index *stringTarget OpenSearch index name
selectionTimeRangeEnd *stringEnd time for analysis period
selectionTimeRangeStart *stringStart time for analysis period
timeField *stringDate/time field for filtering(requied)
baselineTimeRangeEndstringEnd time for baseline period (optional)
baselineTimeRangeStartstringStart time for baseline period (optional)
sizeintegerMaximum number of documents to analyze

LogPatternAnalysisTool

Intelligent log pattern analysis tool for troubleshooting and anomaly detection in application logs. Use this tool when you need to: analyze error patterns in logs, identify unusual log sequences, compare log patterns between time periods, find root causes of system issues, detect anomalous behavior in application traces, or investigate performance problems. The tool automatically extracts meaningful patterns from raw log messages, groups similar patterns, identifies outliers, and provides insights for debugging. Essential for log-based troubleshooting, incident analysis, and proactive monitor…

ParameterTypeDescription
index *stringTarget OpenSearch index name containing log data
logFieldName *stringField containing raw log messages to analyze
selectionTimeRangeEnd *stringEnd time for analysis target period
selectionTimeRangeStart *stringStart time for analysis target period
timeField *stringDate/time field for time-based filtering(requied)
baseTimeRangeEndstringEnd time for baseline comparison period (optional)
baseTimeRangeStartstringStart time for baseline comparison period (optional)
traceFieldNamestringField for trace/correlation ID (optional)

ListIndexTool

Lists indices in the OpenSearch cluster. If an index name or pattern is specified, return only information about the provided index or index pattern. The include_detail flag controls output: if False, returns only index name(s); if True (default), returns full metadata.

ParameterTypeDescription
include_detailbooleanWhether to include detailed information. If False, returns only index name(s). If True, returns full metadata.
indexstringThe name of the index or index pattern to get information for.

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. For date/time fields, if a range query is applied to a date/time field, it MUST include a "format" parameter. Most commonly "format": "strict_date_opti…
formatstringOutput format: "json" or "csv"
sizeintegerNumber of search results to return. The maximum allowed value is 100, unless overridden by configuration.

GetShardsTool

Gets information about shards in OpenSearch

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

GenericOpenSearchApiTool

A flexible tool for calling any OpenSearch API endpoint. Supports all HTTP methods with custom paths, query parameters, request bodies, and headers. Use this when you need to access OpenSearch APIs that don't have dedicated tools, or when you need more control over the request. Leverages your knowledge of OpenSearch API documentation to construct appropriate requests.

ParameterTypeDescription
path *stringThe API endpoint path (e.g., "/_search", "/_cat/indices", "/my_index/_doc/1"). Should start with "/".
bodyRequest body for GET/POST/PUT requests. Can be a JSON object, string, or None
headersAdditional HTTP headers to include in the request
methodstringHTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH)
query_paramsQuery parameters to include in the request URL as key-value pairs