Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KIBANA_URLNoKibana base URL the server connects to. Can also be set as KIBANA_MCP_KIBANA_URL.http://localhost:5601
KIBANA_API_KEYNostdio mode: the API key used for every request. HTTP mode: ignored unless KIBANA_MCP_ALLOW_ENV_KEY_HTTP=true — each caller sends their own key. Can also be set as KIBANA_MCP_KIBANA_API_KEY.
KIBANA_MCP_TIERNoMax tool tier to register: read, write, or destructive.write
KIBANA_PUBLIC_URLNoURL used to build human-clickable dashboard links, if different from the URL the server itself reaches Kibana on (e.g. behind a proxy). Defaults to KIBANA_URL. Can also be set as KIBANA_MCP_KIBANA_PUBLIC_URL.
KIBANA_MCP_TOOLBOXESNoComma-separated list of toolboxes to register.dashboards,data-management
KIBANA_MCP_EXPORT_DIRNo

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for working with Kibana dashboards and visualizations. Typical flow: list_data_views -> describe_data_view (learn field names) -> create_dashboard with one or more visualization specs. Field names are case-sensitive; always verify them with describe_data_view first.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_dashboardsA

Search dashboards by title/description. Empty query lists all.

space targets a Kibana space by id (default: the default space).

get_dashboardA

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).

search_visualizationsA

Search library visualizations (from create_visualization) by title. Empty query lists all.

space targets a Kibana space by id (default: the default space).

get_visualizationA

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).

create_dashboardA

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).

create_visualizationB

Create a reusable visualization in the library (not on a dashboard).

space targets a Kibana space by id (default: the default space).

update_visualizationA

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).

add_library_panelA

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).

add_panelA

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).

add_esql_metric_panelA

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).

add_esql_table_panelA

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).

add_esql_xy_panelA

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).

update_panelA

Replace the visualization at panel_index (see get_dashboard for indexes).

space targets a Kibana space by id (default: the default space).

update_dashboardA

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_dashboard with the old title of a dashboard it made still replaces its panels. Returns the settings now, changed, previous (their values before) and undo (the whole update_dashboard call that puts them back, dashboard_id and space included; a refresh that was not stored comes back paused; undo_omitted names a setting whose old value the tool cannot write back, such as a time Kibana's app cannot read).

space targets a Kibana space by id (default: the default space).

list_data_viewsA

List Kibana data views (the datasets you can visualize).

space targets a Kibana space by id (default: the default space).

describe_data_viewA

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).

resolve_short_urlA

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).

get_default_data_viewA

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).

find_saved_objectsA

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. Kibana answers an empty page for a type name it does not know or does not serve here (action, alert, …), so an empty result is not proof that nothing exists; note says so. Uses Kibana's saved-objects find API, which Kibana marks deprecated.

space targets a Kibana space by id (default: the default space).

get_saved_objectA

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 (a dashboard's panelsJSON, a data view's field list) is left out and listed in omitted_attributes with its size: read it with the type's own tool (get_dashboard, get_visualization, describe_data_view) or move the object with export_saved_objects. Uses Kibana's saved-objects get API, which Kibana marks deprecated.

space targets a Kibana space by id (default: the default space).

export_saved_objectsA

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).

import_saved_objectsA

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 (default: the default space).

create_data_viewA

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 space).

update_data_viewA

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 too. The time field cannot be removed. Dashboard panels built by this server keep the pattern and time field they were built with; rebuild one with update_panel to use the new ones. Returns id, name, index_pattern, time_field and field_count.

space targets a Kibana space by id (default: the default space).

upsert_runtime_fieldA

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 already has as a mapped field is refused (describe_data_view lists its fields); composite runtime fields are not managed here. A replacement keeps the field's custom label and description. Returns the stored field (name, type, script), created, and previous — the definition replaced (null on a create): pass its type and script back to undo.

space targets a Kibana space by id (default: the default space).

set_default_data_viewA

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.

space targets a Kibana space by id (default: the default space).

create_short_urlA

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).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
user-guideFull getting-started guide: setup, first dashboard, safety rails.
toolsTool reference: tiers, inputs, return shapes, error behavior.
troubleshootingThe user guide's Troubleshooting section, extracted.

TDQS

A3.8/5.0

Scored across 27 tools

Disambiguation4/5

Most tools map cleanly to a resource+action (get_dashboard, create_data_view, update_panel), and the descriptions explicitly separate the panel-add family (add_panel with VizSpec vs add_library_panel vs the three add_esql_* variants). The main overlap is between find_saved_objects(types=["dashboard"], search=…) and search_dashboards/search_visualizations/list_data_views, which cover partially the same ground and could tempt misselection.

Naming Consistency5/5

Every tool follows the same snake_case verb_noun convention (create_/get_/update_/search_/list_/add_/find_/export_/import_ + resource). Resource nouns are used consistently across the set (dashboard, visualization, data_view, panel, saved_object, short_url).

Tool Count3/5

At 27 tools the surface is heavy, and six of them are panel-manipulation variants (add_panel, add_library_panel, three add_esql_* panels, update_panel) that could plausibly be collapsed with a chart-type parameter. The domain (dashboards, visualizations, data views, saved objects, runtime fields, short URLs) is genuinely broad, so most tools are not gratuitous, but the set is on the bloated side.

Completeness2/5

Creation and update paths are thorough, but the set has essentially no delete/remove operations: there is no delete_dashboard, delete_visualization, delete_data_view, or remove_panel, so agents can add content but never clean it up. Worse, descriptions reference tools that are absent — delete_runtime_field (from upsert_runtime_field) and overwrite_saved_objects (from import_saved_objects) — creating hard dead ends.

Maintenance

ActivityActive
ResponsivenessOutdated data