mcp-for-kibana
v0.5.0MCP server for Kibana: composable toolboxes over a hexagonal core
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_dashboards Search Dashboards
Search dashboards by title/description. Empty query lists all. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
query | ||
space |
get_dashboard Get Dashboard
Get a dashboard summary: title, description, and its panels. `dashboard_id` comes from search_dashboards. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | |
space |
search_visualizations Search Visualizations
Search library visualizations (from create_visualization) by title. Empty query lists all. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
query | ||
space |
get_visualization Get Visualization
Get a library visualization: title, chart type, data view, metrics, group_by and filter query. `visualization_id` comes from search_visualizations. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
visualization_id * | string | |
space |
create_dashboard Create Dashboard
Create a dashboard from one or more visualization specs. Idempotent: creating with the same title (case-insensitive, whitespace/punctuation-normalized) updates that dashboard instead of duplicating it, replacing its panels (filters, query, tags and display options are preserved); the return's `status` is `created` or `replaced`. Call describe_data_view first to learn real field names. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
panels * | array | |
title * | string | |
description | string | |
space | ||
time_range |
create_visualization Create Visualization
Create a reusable visualization in the library (not on a dashboard). `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
spec * | object | |
space |
update_visualization Update Visualization
Replace a library visualization with a new spec; its id stays the same. Dashboards that show it through add_library_panel change too; panels added with add_panel or create_dashboard are separate copies and do not. `visualization_id` comes from search_visualizations. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
spec * | object | |
visualization_id * | string | |
space |
add_library_panel Add Library Panel
Show a library visualization on an existing dashboard. The panel is linked, not copied: update_visualization changes it on every dashboard. `dashboard_id` comes from search_dashboards, `visualization_id` from search_visualizations. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | |
visualization_id * | string | |
space |
add_panel Add Panel
Add a visualization panel to an existing dashboard. `dashboard_id` comes from search_dashboards. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | |
panel * | object | |
space |
add_esql_metric_panel Add Esql Metric Panel
Add an ES|QL metric panel to an existing dashboard: run an ES|QL query and show one of its output columns as a single-number metric. `esql` is the query (e.g. 'FROM logs | STATS total = COUNT(*)') and `column` names the output column to display (e.g. 'total'). For field-based charts use add_panel with a VizSpec instead. The query is NOT validated server-side — a wrong query or column yields an empty panel, so write both carefully. `dashboard_id` comes from search_dashboards. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
column * | string | |
dashboard_id * | string | |
esql * | string | |
title * | string | |
space |
add_esql_table_panel Add Esql Table Panel
Add an ES|QL table panel to an existing dashboard: show a query's output columns as a table. `columns` are the grouping/dimension columns — one table row per distinct value (e.g. ["status"]); `metric_columns` are the numeric value columns shown per row (e.g. ["count"]). `esql` is the query. It is NOT validated server-side — a wrong query or column name yields an empty panel, so write them carefully. For field-based charts use add_panel with a VizSpec. `dashboard_id` comes from search_dashboards. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
columns * | array | |
dashboard_id * | string | |
esql * | string | |
title * | string | |
metric_columns | ||
space |
add_esql_xy_panel Add Esql Xy Panel
Add an ES|QL bar/line/area panel to an existing dashboard: `x_column` on the x axis, each of `y_columns` a plotted series, and an optional `breakdown_column` to split each series. `esql` is the query. It is NOT validated server-side — a wrong query or column name yields an empty panel. For field-based charts use add_panel with a VizSpec. `dashboard_id` comes from search_dashboards. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | |
esql * | string | |
title * | string | |
x_column * | string | |
y_columns * | array | |
breakdown_column | ||
chart_type | string | |
space |
update_panel Update Panel
Replace the visualization at panel_index (see get_dashboard for indexes). `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | |
panel * | object | |
panel_index * | integer | |
space |
update_dashboard Update Dashboard
Change a dashboard's settings; its panels are left exactly as they are. Only what you pass changes: `title`, `description`, `time_range` (the time the dashboard opens with; date math like now-24h or ISO 8601), `clear_time_range=true` (open with the time picker's current time instead), `refresh_interval_seconds` (auto- refresh; 0 turns it off; Kibana applies it only on a dashboard that stores a time range), `tags_to_add`/`tags_to_remove` (tag ids: find them with find_saved_objects(types=["tag"])). Refuses a dashboard with panels the API cannot write back. A rename keeps the id, so create_dashbo…
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | |
clear_time_range | boolean | |
description | ||
refresh_interval_seconds | ||
space | ||
tags_to_add | ||
tags_to_remove | ||
time_range | ||
title |
list_data_views List Data Views
List Kibana data views (the datasets you can visualize). `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
space |
describe_data_view Describe Data View
Get a data view's fields and types. Call this before creating a visualization so you use real field names. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
data_view * | string | |
space |
resolve_short_url Resolve Short Url
Resolve a Kibana short-URL slug to its locator and target app path. (Short URLs are a Technical-Preview API.) `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
space |
get_default_data_view Get Default Data View
Get the space's default data view — the one Discover and other Kibana apps open with. Returns its id, name and index_pattern, and `exists`: id is null when no default is set, and exists is false when the stored id names no data view in the space (Kibana keeps the id of a deleted view); set another with set_default_data_view. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
space |
find_saved_objects Find Saved Objects
Find saved objects of the given `types` — e.g. ["dashboard"], ["lens", "visualization"], ["index-pattern"] (data views), ["search"], ["tag"], ["map"] — optionally matching `search` (words of the title or name, no other attribute; `flight*` matches a prefix) and/or `has_reference` ({"type": …, "id": …}: only objects that reference that object, e.g. the dashboards that use a visualization or a data view). Returns one page (`page`, `per_page` up to 100) of summaries — type, id, title, name, updated_at, namespaces, managed — and the `total`; read one in full with get_saved_object. Kiba…
| Parameter | Type | Description |
|---|---|---|
types * | array | |
has_reference | ||
page | integer | |
per_page | integer | |
search | ||
space |
get_saved_object Get Saved Object
Get one saved object by `type` and `id` (from find_saved_objects): its attributes, the distinct objects it references ({"type", "id"}), its namespaces, timestamps and `managed` flag. Only analytics content is read — canvas-element, canvas-workpad, canvas-workpad-template, dashboard, event-annotation-group, graph-workspace, index-pattern (data views), lens, links, map, query, search, tag, visualization — because other types can keep credentials in plain attributes (Fleet outputs and proxies do); any other type is refused: read it with its own tools. An attribute longer than 4,000 characters…
| Parameter | Type | Description |
|---|---|---|
id * | string | |
type * | string | |
space |
export_saved_objects Export Saved Objects
Export saved objects (dashboards, data views, …) as an NDJSON file on the server, and return a summary + an opaque `handle` — NOT the content — that you pass to import_saved_objects. Select EITHER `types` (e.g. ["dashboard"], or ["*"] for the whole space) OR `objects` (a list of {"type":…, "id":…}, from find_saved_objects), not both. This is a sensitive export surface; what can actually be read is bounded by the API key's privileges, not by this tool. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
include_references_deep | boolean | |
objects | ||
space | ||
types |
import_saved_objects Import Saved Objects
Import a previously-exported set of saved objects, identified by the `handle` returned from export_saved_objects, as NEW copies (regenerated ids — a clone into the current space, not an in-place restore). Existing objects are never touched. Returns which objects were created (source id -> new destination id). A missing/expired handle errors. To restore in place instead, use overwrite_saved_objects (destructive). A handle carries no space — importing it with `space="b"` clones its content into b (new ids), regardless of which space it was exported from. `space` targets a Kibana space by id…
| Parameter | Type | Description |
|---|---|---|
handle * | string | |
space |
create_data_view Create Data View
Create a Kibana data view over an index pattern (e.g. 'logs-*'). Optionally set a display name and a time field (for time-series data). The time field must be a date field of the indices the pattern matches: a field they do not have, or one that is not a date, is refused with the pattern's date fields listed, and no data view is created. A pattern that matches no index yet is accepted, but its time field cannot be checked. The name (it defaults to the index pattern) must be unused; to change an existing view, call update_data_view. `space` targets a Kibana space by id (default: the default sp…
| Parameter | Type | Description |
|---|---|---|
index_pattern * | string | |
name | ||
space | ||
time_field |
update_data_view Update Data View
Edit an existing data view in place, by id (from list_data_views): its display `name`, its `index_pattern` (e.g. 'logs-*') and/or its default `time_field`. Only the fields you pass change. The time field must be a date field of the view: when you change the index pattern, the time field (the one you pass, or the current one) is checked against the NEW pattern's fields, and on a mismatch nothing changes. A pattern that matches no index yet is accepted, but its time field cannot be checked (field_count is then 0). A name that defaulted to the old pattern stays as it is; pass `name` to change it…
| Parameter | Type | Description |
|---|---|---|
view_id * | string | |
index_pattern | ||
name | ||
space | ||
time_field |
upsert_runtime_field Upsert Runtime Field
Create or replace a runtime field on a data view, by view id (from list_data_views): a field computed at search time by a Painless `script` that calls emit(...) with a value of `type` (e.g. "emit(doc['timestamp'].value.getHour())" for a long). Without a script the field reads the _source value of the same name. Kibana does NOT compile the script: one that does not compile, or emits another type, makes every search that Kibana runs on the data view fail (Discover, and visualizations that use the view) until you fix it with another call or remove it with delete_runtime_field. A name the view alr…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
type * | string | |
view_id * | string | |
script | ||
space |
set_default_data_view Set Default Data View
Make a data view the space's default — the one Discover and other Kibana apps open with — by id (from list_data_views), or pass view_id=null to clear the default. The view must exist in the space (Kibana itself would store any id). Replaces the current default; returns the new one (id, name, index_pattern, exists), `previous_id`, the default before the call (null when none was set), and `previous_exists`: pass previous_id back to undo when it is true; when it is false the old id named no data view (Kibana keeps a deleted view's id, and treats it as no default), so view_id=null undoes it.…
| Parameter | Type | Description |
|---|---|---|
view_id * | ||
space |
create_short_url Create Short Url
Create a Kibana short URL. Supports locator_id='LEGACY_SHORT_URL_LOCATOR' with params={'url': '/app/...'} (a Kibana app path). (Technical-Preview API.) A slug created in a space resolves under `/s/<space>/goto/<slug>` and via resolve_short_url(slug, space=…). When `space` is set, pass the app path WITHOUT a `/s/<space>` prefix — the `space` parameter chooses the space, not the path. A `/s/<id>`-prefixed path passed without `space` creates the slug in the default space. `space` targets a Kibana space by id (default: the default space).
| Parameter | Type | Description |
|---|---|---|
locator_id * | string | |
params * | object | |
space |