logfire Claude Code Plugin
Claude Code PluginClaude CodeMonitoringMonitoring & ObservabilityWeb & App DevelopmentThe explanation below is AI-generated. Please verify it against the sources.
This plugin connects Python projects to Logfire, Pydantic's observability platform, by auto-instrumenting frameworks and libraries such as FastAPI, httpx, asyncpg, and SQLAlchemy. According to the README, it adds commands for instrumenting code, debugging through traces, and querying telemetry, plus several skills covering setup, infrastructure monitoring, evaluations, and opening Logfire's UI. It relies on an MCP server to communicate with Logfire's backend so trace, log, and metric data can be queried from inside the coding agent. The plugin can be installed into Claude Code, Codex, or Cursor, and the MCP endpoint can be switched between US and EU-hosted regions or a self-hosted instance.
About the service
Logfire is an observability platform from Pydantic built on OpenTelemetry. According to the homepage, it records model calls, API hops, and database queries within a single trace and lets users query that telemetry with Postgres-style SQL through an engine called FusionFire. It also attaches evaluation scores directly to trace spans, offers a free tier of 10 million records per month with additional usage billed per million records, and lists compliance certifications such as SOC 2 Type II and HIPAA, alongside a self-hosted deployment option on its enterprise plan.
What you can do with logfire
- Investigate errors by inspecting Logfire traces through the MCP server
- Query traces, logs, and metrics interactively or embed query capability in code
- Use the logfire-setup skill to handle authentication and repository detection for setup routing
- Use the logfire-ui skill to open Logfire project pages, live views, and Explore filters directly from the agent