o11ybot talks to your deployment’s MCP endpoint using a Kibana API key. You normally do not need to create a custom Agent Builder agent: use the same MCP URL and credentials as any other MCP client. Built-in agents you see in Kibana (for example Observability or Elastic AI) share the one MCP server URL per space—the app never asks you to pick a row from that list.
/api/agent_builder/mcp (include /s/your-space/ if you use a non-default space).platform_core_execute_esql—if that succeeds, you are done.Run the script below if you want a dedicated agent id o11ybot-mcp with a fixed tool list, for automation/CI, or if Test Connection indicates tools are missing. It is not required for most users who already have Agent Builder enabled on Serverless.
fetch)https://<deployment>.kb.<region>.<cloud>.elastic.cloudThe provisioning script is hosted here so you do not need access to the o11ybot source repository. Download or pipe it with curl:
Download provision-o11ybot-mcp.mjs (same file as below)
Set your Kibana URL and API key, then run the script. It creates o11ybot-mcp if it does not exist, or updates its tools if it does.
Optional flags: --prefer-existing to use an existing agent that already has ES|QL (no create); --smoke-test to verify MCP with a tiny ES|QL call.
CI/CD: pin the URL https://o11ybot.app/provision-o11ybot-mcp.mjs and run the same Node command after exporting credentials.
In Settings, set:
SHOW DATASTREAMS) to resolve which data streams to query, so one build can target O11y, Security, or Search Serverless projects./api/agent_builder/mcp appended (the script prints the exact line to copy).KIBANA_API_KEY.Connecting succeeds once MCP and credentials work. The app queries standard Elastic Observability data streams (for example traces-generic.otel-default, logs-generic.otel-default, synthetics-browser-default, and system metrics). If your project only has workshop or custom indices (for example workshop-synth-*), traces and metrics tabs may stay empty until you ship OpenTelemetry into those default streams—or use a deployment that already has OTel demo data.
Workflows: the app lists definitions via Kibana GET /api/workflows when custom report indices are empty, so you should see the same workflows as in Observability → Workflows. See the Elastic documentation for ingest and Agent Builder.