The Logfire MCP Server allows LLMs to retrieve and analyze OpenTelemetry traces and metrics data, providing insights into application telemetry. You can:
Find Exceptions: Retrieve exception counts grouped by file using
find_exceptionsGet Exception Details: Access detailed trace information about exceptions in specific files with
find_exceptions_in_fileRun Custom Queries: Execute arbitrary SQL queries on your OpenTelemetry data via
arbitrary_queryAccess Schema: View the OpenTelemetry schema to help with query construction using
get_logfire_records_schema
The server supports analysis of distributed traces and metrics for time periods up to 7 days.
Enables access and analysis of OpenTelemetry traces and metrics data stored in Logfire, with tools for finding exceptions, retrieving trace information, and executing SQL queries against telemetry data.
Integrates with Logfire, a Pydantic service, to retrieve and analyze application telemetry data through the Logfire APIs using read tokens from the Logfire project settings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Logfire MCP Serverfind the 10 most recent exceptions in app.py from the last hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pydantic Logfire MCP Server
This repository is archived. The STDIO MCP server in this package is no longer being updated. We now have a remote MCP server, which allows us to iterate faster on tools and provide a better experience.
Read more in our documentation.
If you have any questions, reach out to us on Slack or email us at engineering@pydantic.dev.