Logfire

pydantic
71
allows access to OpenTelemetry traces and metrics sent to Logfire. It enables LLMs to retrieve telemetry data, analyze distributed traces, and execute SQL queries using Logfire APIs.

Overview

What is Logfire

Logfire MCP is a Model Context Protocol server that allows access to OpenTelemetry traces and metrics sent to Logfire. It enables LLMs to retrieve telemetry data, analyze distributed traces, and execute SQL queries using Logfire APIs.

How to Use

To use Logfire MCP, first install 'uv' and obtain a Logfire read token. Then, run the server using 'uvx logfire-mcp' with your read token specified as an environment variable or command-line argument. Configure your preferred MCP client (like Cursor or Claude Desktop) to connect to the server.

Key Features

Key features include tools for finding exceptions in traces, retrieving detailed trace information for specific files, executing arbitrary SQL queries on telemetry data, and obtaining the OpenTelemetry schema for custom queries.

Use Cases

Use cases for Logfire MCP include analyzing application telemetry data, troubleshooting exceptions in distributed systems, running custom analytics on traces, and integrating with LLMs for advanced data insights.

Content