opensearch-dashboard-mcp
v0.1.1MCP server for OpenSearch Dashboards
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ping
Check OpenSearch Dashboards connectivity and authenticate. Hits the security authinfo endpoint. If unauthenticated (HTTP 401) and credentials are configured, performs a session login and re-checks. Reports {connected, authenticated, user, tenants} or the error reason.
list_saved_objects
List saved objects of a given type (dashboard, index-pattern, search, ...). Calls the Dashboards ``saved_objects/_find`` API and returns a compact list of ``{id, title, type}`` so the LLM is not flooded with raw fields. Saved objects are stored per multi-tenancy tenant. ``tenant`` selects which one to read via the ``securitytenant`` header: - a tenant name (e.g. "Developers Core", "Global") - "__user__" for the caller's private tenant - None (default) uses the user's configured default tenant Use the ``get_tenants`` tool t…
| Parameter | Type | Description |
|---|---|---|
per_page | integer | |
tenant | ||
type_ | string |
get_tenants
List multi-tenancy tenants configured in OpenSearch Dashboards. Uses the security plugin config API (``/api/v1/configuration/tenants``), which returns a map of tenant name -> metadata. Flattened here to a list of ``{name, description, reserved, hidden}``.
get_index_patterns
List index patterns configured in OpenSearch Dashboards. Index patterns are saved objects of type ``index-pattern``. Returns ``{id, title, time_field}`` where ``title`` is the pattern glob (e.g. ``logs-*``) and ``time_field`` its time field, if any.
| Parameter | Type | Description |
|---|---|---|
per_page | integer |
discover_search
Fetch documents like the Discover app. Runs a search against an index pattern through the internal search API that OpenSearch Dashboards' Discover uses (``/internal/search/opensearch``), so it works even when the raw OpenSearch REST API is not exposed. - ``index``: index-pattern glob, e.g. ``logs-api-*`` (discover them via ``list_saved_objects`` with ``type_="index-pattern"``). - ``query``: Lucene query_string, e.g. ``level:error AND service:api``. ``None`` matches everything. - ``time_from`` / ``time_to``: range on ``time_f…
| Parameter | Type | Description |
|---|---|---|
index * | string | |
fields | ||
query | ||
size | integer | |
tenant | ||
time_field | string | |
time_from | ||
time_to |