How to connect Logfire with ChatGPT

Connect ChatGPT to Logfire MCP. Query recent logfire traces for errors, inspect exceptions and group recurring logfire issues, and more using natural language, with authentication handled for you.

Logfire MCP logoLogfire MCP
Dcr Oauth

Logfire MCP is Pydantic Logfire's official MCP server for observability data in the US region. It provides a secure, natural-language interface for traces, logs, metrics, issues, and monitoring controls.

75 Tools

How to connect Logfire MCP with ChatGPT

ChatGPT can take action across your apps and files, stay with a project for hours, and turn a goal into finished materials like sheets, slides, and docs, not just answers.

In this guide, I will explain the easiest and most secure way to connect your Logfire account to ChatGPT via Composio Connect, so it can query traces and logs, inspect exceptions, review metrics, manage dashboards, and update alerts through natural language commands without ever putting your account credentials at risk.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Logfire MCP with

Why use Composio over default connectors?

  • Apps with read and write access. Default connectors mostly can read your data. Composio's Logfire integration lets ChatGPT take actions like creating drafts, sending updates, labeling records, and more.
  • 2,000+ SaaS toolkits out of the box. Composio gives you instant access to a vast catalog of pre-built connectors, from Gmail and Slack to Notion, Linear, and Salesforce.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand.
  • Cross-app automation. Chain actions across multiple apps in a single run - fetch a thread, summarize it in Notion, and post highlights to Slack without leaving the conversation.

Prerequisites

Note: Composio connects through OAuth. You will be asked to sign in and approve specific permissions. Review the permission screen carefully if you are using a work account.

Step-by-step: Connect Logfire to ChatGPT

1. Install the Composio plugin

Click the button. ChatGPT opens the Composio plugin page. Click Install plugin.

Install in ChatGPT

Composio plugin page in ChatGPT with the Install plugin button

You can also find it inside ChatGPT: go to Settings, open Plugins, search the marketplace for Composio, and click Install plugin.

2. Authenticate

After you install, ChatGPT asks you to authenticate with Composio. Log in and click Allow access to authorize ChatGPT to use your Composio account.

Composio login and Allow access screen for ChatGPT

3. Start using Composio

That is it. Composio tools are now available in ChatGPT. Type @Composio followed by your request, for example @Composio find unread Logfire messages and summarize them, and it will run the actions you authorize. On first use it asks you to authorize Logfire.

Option 2: Add Composio as an MCP server

If you cannot use the plugin marketplace, add Composio as a custom MCP server instead.

1. Open the MCP settings

In ChatGPT, go to Settings and open the Plugins section. Inside the Plugins page, click the MCP tab.

ChatGPT settings showing the Plugins page with the MCP tab selected

2. Add the server

Click Add server. In the Name field enter Composio, for Type select Streamable HTTP, and in the URL field paste the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
ChatGPT Add server dialog with the name Composio, type Streamable HTTP, and the Composio MCP URL

Then click Save. The Composio server now appears in your MCP plugins list.

ChatGPT Plugins page showing the Composio MCP server added to the list

3. Authenticate

Click Authenticate on the Composio entry, log in via Composio, and click Allow access. Composio tools are then available in ChatGPT the same way as with the plugin.

What you can do after connecting Logfire

  • Query recent Logfire traces for errors
  • Inspect exceptions and group recurring Logfire issues
  • Review dashboard alerts and notification channels

Security + privacy notes (important)

  • Use least-privilege access: Only grant permissions you actually need.
  • Review OAuth permissions before approving: Make sure requested scopes match what you expect Composio and ChatGPT to do.
  • Keep write actions human-reviewed: For actions like sending messages, creating labels, or editing drafts, keep manual confirmation enabled.
  • Be careful with sensitive data: Avoid using this setup with highly sensitive information unless allowed by your personal, company, or client policies.
TOOLS

Supported Tools

Every Logfire MCP action and event your agent gets out of the box.

Alert create

Create a new alert that periodically runs a SQL query and sends notifications based on results.

Alert delete

Permanently delete an alert.

Alert get

Get an alert's configuration and last run result by ID.

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.

Alert status

Check if an alert is currently firing and when it last triggered or resolved.

Alert update

Update an existing alert's configuration.

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

Permanently delete a notification channel.

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.

Channel update webhook

Update a webhook channel's URL, format, label, or active status.

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.

Dashboard create group

Create a new layout group in a dashboard.

Dashboard delete

Delete a dashboard by slug.

Dashboard delete group

Delete an empty layout group from a dashboard.

Dashboard get

Get the full dashboard definition as Perses-compatible JSON.

Dashboard get version

Get one kept version of a dashboard with its full Perses definition.

Dashboard list

List dashboards in a project with optional search and cursor-based pagination.

Dashboard list versions

List the kept versions of a dashboard, the newest first.

Dashboard panel reference

Get the panel guide and the JSON schema of every panel kind's settings.

Dashboard remove panel

Remove a panel from a dashboard.

Dashboard remove variable

Remove a variable from a dashboard by name.

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.

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.

Dashboard update panel

Update an existing panel's properties.

Dashboard update settings

Update dashboard time range and auto-refresh settings.

Dashboard update variable

Update an existing variable by name, replacing it with a new definition.

Dashboard update variables

Replace all variables on a dashboard with the provided list.

Get agents setup prompt

Return the AI-agent prompt to instrument an AI agent so it appears on the Agents page.

Get feature flags setup prompt

Return the AI-agent prompt to set up runtime feature flags with Logfire managed variables.

Get infrastructure setup prompt

Return the AI-agent prompt to set up infrastructure monitoring with Logfire.

Get instrumentation setup prompt

Return the AI-agent prompt to instrument this application with the Logfire SDK.

Integration install

Install an integration into a project, enabling its standard dashboards and creating its alerts.

Integration list

List the Integrations catalog with this project's install/detection state.

Issue get

Get a single tracked exception issue by its number, including the stacktrace.

Issue list

List tracked exception issues for a project with cursor-based pagination.

Issue set states

Open, ignore, or resolve one or more exception issues.

Local dev session

Set up a local development session for sending telemetry to Logfire.

Notification window create

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

Notification window delete

Permanently delete a notification window.

Notification window get

Get a specific notification window by ID.

Notification window list

List all notification windows in the organization.

Notification window update

Update an existing notification window.

Organization usage link

Generate a link to the built-in usage page of the organization.

Project list

List readable projects, including each project's last recorded telemetry ingestion time.

Project logfire link

Generate a Logfire UI link to view a specific trace.

Project logfire ui link

Generate a Logfire project UI link for live-view/filter pages.

Prompt get

Get a prompt by slug.

Prompt get settings

Get a prompt's playground settings (mutable, shared across versions).

Prompt get version

Get a specific template version, including the raw `template` body.

Prompt list

List prompts in a project.

Prompt list versions

List a prompt's template versions, ordered by version number.

Prompt preview

Render a saved prompt without calling the model.

Query exception context

Inspect up to three exception records in one trace, without fetching the whole trace or its attributes.

Query find exceptions in file

Get the details about the 10 most recent exceptions matching a source file path.

Query run

Run a read-only SQL SELECT query against Logfire telemetry.

Query schema reference

Get the table schemas and the query handbook for the Logfire DataFusion database.

Schedule create

Deprecated.

Schedule delete

Deprecated.

Schedule get

Deprecated.

Schedule list

Deprecated.

Schedule update

Deprecated.

Slo list

List the service level objectives (SLOs) of a project with their current status.

Token info

Get information about the current authentication token.

Variable get

Get a managed variable (feature flag) by name, with optional version/history detail.

Variable list

List all managed variables (feature flags) in a project.

Variable resolve

Resolve what value a client would receive for a variable *right now*, and why.

FRAMEWORKS

How to build Logfire MCP Agent with another framework

FAQ

Frequently asked questions

Start with Logfire MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Logfire MCP tool your agent needs.Free to start.

Start building