← Back to changelog
July 17, 2026

Manage dashboards via API, CLI, and MCP

Picture Lysander KieselLysander Kiesel

Create and manage dashboards and widgets programmatically through the public API and Langfuse CLI, let AI agents build them via the Langfuse MCP server, or ask the Langfuse Assistant in the UI.

You can now create and manage dashboards end-to-end in code and through your agent. New endpoints under /api/public/unstable cover dashboards, the placements on their grid, and the reusable widgets those placements reference. The Langfuse CLI picks the endpoints up automatically, and the Langfuse MCP server exposes the same operations as tools.

This opens up a few workflows beyond the dashboard editor in the UI:

  • Dashboards as code: keep dashboard definitions in version control and apply the same monitoring setup across projects and environments.
  • Agent-built dashboards: ask an AI agent for a dashboard, e.g. error traces for a certain feature over time. Reads run automatically, and every change goes through human-in-the-loop approval.
  • Incremental edits: add, move, or resize a single tile through the placement endpoints without resubmitting the whole layout. Omit the position and the server appends the tile for you.

The same tools power the Langfuse Assistant in the UI, so you can ask it to create or update dashboards and widgets directly. The Assistant is available when AI features are enabled for your organization (org admins can enable them in the organization settings).

New endpoints

  • /dashboards — list, create, read, update, and delete dashboards, including their filters and full layout definition. See the dashboards API reference.
  • /dashboards/{dashboardId}/placements — add, move or resize, and remove individual tiles on a dashboard's grid, documented alongside the dashboards API reference.
  • /dashboard-widgets — list, create, read, update, and delete the reusable widgets that placements reference. See the dashboard widgets API reference.

New MCP tools

Dashboards
listDashboardsgetDashboardcreateDashboardupdateDashboarddeleteDashboard
Placements
addDashboardPlacementupdateDashboardPlacementdeleteDashboardPlacement
Widgets
listDashboardWidgetsgetDashboardWidgetcreateDashboardWidgetupdateDashboardWidgetdeleteDashboardWidget

These endpoints and MCP tools are unstable and may change while the dashboard and widget contract is being finalized. The dashboard editor in the UI remains fully supported.

Get started


Was this page helpful?