logfire-mcp

pydantic/logfire-mcp

4.1

logfire-mcp is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.

If you are the rightful owner of logfire-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Logfire MCP Server is a Model Context Protocol server that allows LLMs to access and analyze OpenTelemetry traces and metrics sent to Logfire.

Try logfire-mcp with chat:

Tools

Functions exposed to the LLM to take actions

find_exceptions_in_file

Get the details about the 10 most recent exceptions on the file.

Args:
    filepath: The path to the file to find exceptions in.
    age: Number of minutes to look back, e.g. 30 for last 30 minutes. Maximum allowed value is 7 days.

arbitrary_query

Run an arbitrary query on the Pydantic Logfire database.

The SQL reference is available via the `sql_reference` tool.

Args:
    query: The query to run, as a SQL string.
    age: Number of minutes to look back, e.g. 30 for last 30 minutes. Maximum allowed value is 7 days.

sql_reference

Contains a reference for the SQL syntax that can be used to query the Logfire database.

This tool should be called before any other tool.

get_logfire_records_schema

Get the records schema from Pydantic Logfire.

logfire_link

Creates a link to help the user to view the trace in the Logfire UI.

Args:
    trace_id: The trace ID to link to.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

sql_reference

URI: config://sql_reference

MIME: text/plain

Contains a reference for the SQL syntax that can be used to query the Logfire database.

This tool should be called before any other tool.