otheroauth2

Logfire MCP

Pydantic Logfire's official MCP server (US region): run SQL over traces, logs and metrics, inspect exceptions and issues, and manage dashboards, alerts, notification channels, prompts and feature flags.

Integration

Vendor
Logfire MCP
Category
other
Auth
OAUTH2
Tools
50
Composio slug
logfire_mcp

Tools

  • Alert create

    Create a new alert that periodically runs a SQL query and sends notifications based on results. Alert instance policies, which track each result row as its own occurrence, are not available through MCP.

  • Alert delete
    destructive

    Permanently delete an alert. This stops all future evaluations and notifications.

  • Alert get

    Get an alert's configuration and last run result by ID. Use this to inspect what an alert does (its query, schedule, channels) or check its most recent evaluation.

  • Alert history

    Get the run history of an alert, showing each time it was evaluated and whether it matched.

  • Alert list

    List alert summaries and their latest completed run status. Query text and full result data are omitted to keep the response small. Call `alert_get` with an alert's `id` when you need its full configuration. Returns an empty list if no ale

  • Alert status

    Check if an alert is currently firing and when it last triggered or resolved. Returns the alert's current firing state plus timestamps for the most recent trigger and resolution events within the lookback period.

  • Alert update

    Update an existing alert's configuration. Only provided fields are changed. Alert instance policies are not available through MCP, and an update here keeps the policy of the alert.

  • Channel create opsgenie

    Create an Opsgenie notification channel for incident management alerts.

  • Channel create webhook

    Create a webhook notification channel for Slack, Discord, or custom HTTP endpoints.

  • Channel delete
    destructive

    Permanently delete a notification channel. Alerts using this channel will no longer send to it.

  • Channel get

    Get a specific notification channel by ID.

  • Channel list

    List all notification channels in the organization.

  • Channel update opsgenie

    Update an Opsgenie channel's API key, label, or active status. Only provided fields are changed.

  • Channel update webhook

    Update a webhook channel's URL, format, label, or active status. Only provided fields are changed.

  • Dashboard add panel

    Add a new panel to an existing dashboard with optional layout position.

  • Dashboard add variable

    Add a single variable to a dashboard at an optional position.

  • Dashboard create

    Create a new dashboard from a Perses JSON definition or as an empty dashboard. For a dashboard of the Logfire usage of the organization (the volume of logs, spans, and metrics that it sends), call `organization_usage_link` first.

  • Dashboard create group

    Create a new layout group in a dashboard. Groups organize panels into collapsible sections.

  • Dashboard delete
    destructive

    Delete a dashboard by slug. This permanently removes the dashboard and all its panels.

  • Dashboard delete group
    destructive

    Delete an empty layout group from a dashboard. Fails if the group still contains panels; remove panels first. The response confirms success; no need to call dashboard_get to verify.

  • Dashboard get

    Get the full dashboard definition as Perses-compatible JSON. Also suitable for exporting or version-controlling dashboards. `metadata.managedBy` is present when a tool such as Terraform manages the dashboard. The write tools refuse that da

  • Dashboard get version

    Get one kept version of a dashboard with its full Perses definition. Use it to check a version before a restore.

  • Dashboard list

    List dashboards in a project with optional search and cursor-based pagination. Each dashboard has `id`, `dashboard_name`, `dashboard_slug`, `version`, and timestamps. A non-null `managed_by` names the tool that manages the dashboard, such

  • Dashboard list versions

    List the kept versions of a dashboard, the newest first. A kept version is a version that a later save replaced. A dashboard keeps at most 50 kept versions. Saves that one author makes within 5 minutes keep only the version from before the

  • Dashboard panel reference

    Get the panel guide and the JSON schema of every panel kind's settings. Covers which query each kind takes, how query columns become series and labels, layout rules, and common mistakes. Call once before creating or restyling panels.

  • Dashboard remove panel
    destructive

    Remove a panel from a dashboard. This also removes associated layout items. The response confirms success; no need to call dashboard_get to verify.

  • Dashboard remove variable
    destructive

    Remove a variable from a dashboard by name. The response confirms success, so do not call dashboard_get to verify. Fails if a panel query still uses the variable.

  • Dashboard rename group

    Change the title of a dashboard layout group.

  • Dashboard reorder groups

    Change the display order of layout groups in a dashboard.

  • Dashboard restore

    Make a kept version the current version of its dashboard. The restore replaces the name, the definition, and the layout. The restore is a new version. The dashboard keeps the version that the restore replaces. So a second restore takes the

  • Dashboard toggle group collapse

    Set whether a dashboard layout group is collapsed or expanded.

  • Dashboard update

    Update a dashboard's name and/or full Perses definition. For time range/refresh settings, use dashboard_update_settings. For individual panels, use dashboard_update_panel.

  • Dashboard update panel

    Update an existing panel's properties. Only provided fields are changed. For the full dashboard definition, use dashboard_update. For time range/refresh, use dashboard_update_settings.

  • Dashboard update settings

    Update dashboard time range and auto-refresh settings. For renaming or replacing the full definition, use dashboard_update. For individual panels, use dashboard_update_panel

  • Dashboard update variable

    Update an existing variable by name, replacing it with a new definition. A new `spec.name` renames the variable. The rename rewrites each `$old_name` reference in panel queries and query-backed variables. `rewritten_references` lists the p

  • Dashboard update variables

    Replace all variables on a dashboard with the provided list. Fails if a panel query needs a variable that the list drops or changes.

  • Get agents setup prompt

    Return the AI-agent prompt to instrument an AI agent so it appears on the Agents page. Gives the exact instructions for emitting the OpenTelemetry GenAI `invoke_agent` / `gen_ai.agent.name` spans Logfire's Agents page needs. The prompt is

  • Get feature flags setup prompt

    Return the AI-agent prompt to set up runtime feature flags with Logfire managed variables. Gives the exact, project-scoped instructions for converting hard-coded values / env toggles into `logfire.var(...)` managed variables that change li

  • Get infrastructure setup prompt

    Return the AI-agent prompt to set up infrastructure monitoring with Logfire. Gives the exact, project-scoped instructions for running an OpenTelemetry Collector that ships this surface's telemetry to Logfire and confirming it arrives. Foll

  • Get instrumentation setup prompt

    Return the AI-agent prompt to instrument this application with the Logfire SDK. Gives the exact, project-scoped instructions for adding Logfire/OpenTelemetry to the codebase and confirming telemetry arrives. Follow the returned prompt; it

  • Integration install

    Install an integration into a project, enabling its standard dashboards and creating its alerts. Recommended-tier alerts install active; diagnostic-tier alerts install inactive (opt-in). All alerts install without a notification channel: a

  • Integration list

    List the Integrations catalog with this project's install/detection state. Returns one entry per available integration (e.g. Redis), including whether it is `installed`, whether its telemetry has been `detected` in the project, the catalog

  • Issue get

    Get a single tracked exception issue by its number, including the stacktrace. The issue number is the integer shown in the UI and in issue URLs (`.../[organization]/[project]/issues/[issue_number]`), so this resolves a shared issue link to

  • Issue list

    List tracked exception issues for a project with cursor-based pagination. Returns issues (exceptions grouped by fingerprint and optionally service) plus a `next_cursor` that callers pass back to fetch the following page. `next_cursor` is `

  • Issue set states

    Open, ignore, or resolve one or more exception issues. Use this when asked to ignore, dismiss, resolve, close, or reopen issues. Returns the updated issues.

  • Local dev session

    Set up a local development session for sending telemetry to Logfire. Creates a 'dev' project (if needed), generates a write token, and returns environment variables to configure the Logfire or OpenTelemetry SDK. All telemetry is sent to t

  • Notification window create

    Create a new notification window that limits alert notification delivery to specific times.

  • Notification window delete
    destructive

    Permanently delete a notification window. Alert-channel pairs using it will revert to always-deliver.

  • Notification window get

    Get a specific notification window by ID.

  • Notification window list

    List all notification windows in the organization. A notification window defines the times when alert notifications are delivered. Notifications outside the window are suppressed (dropped, not deferred).

Setup

  1. Create or open a Switchy Project.
  2. Open Integrations and connect Logfire MCP.
  3. Authorise through oauth2. Switchy stores the connection against your org.
  4. Everyone in the Project can now @-mention the Logfire MCP tools in chat.

What teammates see: by default, memories from Logfire MCP are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Projects have used this MCP together with a given model.

How Switchy teams use it

Not enough Projects yet to publish anonymised usage stats (we require ≥ 50 Projects per week).

Starter prompts

Starter prompts for this model will land here soon.

More other MCPs

See all other MCPs →

Data last verified 12 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.