MetorialDocs

Set up Kibana in Metorial for Claude, ChatGPT and Cursor

Share Kibana with your team in Claude, ChatGPT and Cursor through Metorial: API key or username & password sign-in, 30 tools (16 read-only).

To give your team Kibana in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Kibana integration in a Metorial portal, and each person connects with an API key. Agents can manage Kibana resources and the Elastic Stack visualization layer programmatically. The integration has 30 tools, 16 read-only, 2 write and 12 destructive, plus 3 triggers.

What you'll learn

  • How an admin shares Kibana in a portal and how each person connects
  • What Kibana asks for when you connect, and where to find it
  • How to keep the 16 read-only tools and reject the other 14

Before you start

Sign-in methods

MethodTypeWhat a person provides
API Key (default)API tokenapiKey
Username & PasswordCustom credentialsusername and password

The portal and metorial setup use API Key unless someone picks another method.

API Key

To connect, a person enters:

  • apiKey: Encoded API key from Kibana (Stack Management > API Keys)

Username & Password

To connect, a person enters these values:

  • username: Kibana username
  • password: Kibana password

Setup settings

Whichever method you pick, setup also asks for:

  • kibanaUrl: Base URL of the Kibana instance (e.g., https://my-kibana.example.com)
  • spaceId (optional): Kibana space ID. Leave empty for the default space.

Admin: share Kibana in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Kibana. Under Auth Method, keep API Key or pick another. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Kibana.

Choose who gets it

Add the access groups that should see Kibana. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Kibana integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search kibana

Employee: connect Kibana

In the portal

Open Kibana in the catalog

Sign in to your portal and open Kibana. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search kibana
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses API Key. To connect with Username & Password instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Kibana connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list kibana
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 16 read-only tools, such as list_roles and list_spaces, and lose the 2 write tools, such as add_case_comment or execute_connector, and the 12 destructive tools, such as manage_slo or manage_case.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list kibana
metorial tools <integration-id>
metorial call <integration-id> list_roles -d '{}'

metorial tools lists the 30 tools, minus any you rejected. list_roles takes no input. It lists all security roles configured in Kibana.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (16)

  • search_cases: Search and list Kibana cases for incident tracking.
  • list_connectors: List all connectors configured in Kibana.
  • list_roles: List all security roles configured in Kibana.
  • export_saved_objects: Export Kibana saved objects in NDJSON format for backup or migration between environments.
  • list_data_views: List all data views (index patterns) configured in Kibana.
  • get_kibana_status: Get the current status of the Kibana instance, including overall health, version, and plugin status.
  • get_enrollment_tokens: Get Fleet enrollment API keys used to enroll new Elastic Agents.
  • list_spaces: List all Kibana spaces.
  • search_rules: Search and list Kibana alerting rules.
  • list_agent_policies: List Fleet agent policies in Kibana.
  • list_fleet_agents: List Elastic Agents managed by Fleet.
  • search_saved_objects: Search and list Kibana saved objects such as dashboards, visualizations, maps, data views, Canvas workpads, and other saved objects. Needs objectType.
  • search_slos: Search and list Kibana Service Level Objectives (SLOs).
  • list_package_policies: List Fleet package policies in Kibana.
  • list_rule_types: List Kibana alerting rule types available to the authenticated user.
  • list_connector_types: List Kibana connector types available for rules and cases, including license and feature availability.

Write tools (2)

  • execute_connector: Test or execute a Kibana connector with specific parameters. Needs connectorId and connectorParams.
  • add_case_comment: Add a comment or alert attachment to an existing Kibana case. Needs caseId and owner.

Destructive tools (12)

  • manage_agent_policy: Create, get, update, or delete a Fleet agent policy. Needs action.
  • manage_case: Create, get, update, or delete a Kibana case. Needs action.
  • manage_data_view: Create, get, update, or delete a Kibana data view (index pattern). Needs action.
  • manage_connector: Create, get, update, or delete a Kibana connector. Needs action.
  • manage_saved_object: Get, create, update, or delete a Kibana saved object. Needs action and objectType.
  • manage_slo: Create, get, update, or delete a Kibana Service Level Objective (SLO). Needs action.
  • manage_role: Create, get, update, or delete a Kibana security role. Needs action and roleName.
  • manage_space: Create, get, update, or delete a Kibana space. Needs action and spaceId.
  • manage_rule: Create, get, update, delete, enable, disable, or mute/unmute a Kibana alerting rule. Needs action.
  • manage_default_data_view: Get, set, or unset the default Kibana data view for the current space. Needs action.
  • manage_rule_snooze: Schedule or delete a Kibana alerting rule snooze schedule. Needs action and ruleId.
  • manage_package_policy: Get, create, update, or delete a Fleet package policy. Needs action.

Triggers

Kibana has 3 triggers, which fire on events in Kibana:

  • inbound_webhook
  • case_changes: Triggers when cases are created, updated, closed, or reopened.
  • rule_status_changes: Triggers when alerting rules change status, are created, updated, enabled, or disabled.

Next steps