Back to Home
pydantic icon

logfire-mcp

Verified Safe

by pydantic

Overview

Enables LLMs to retrieve and analyze application telemetry data (OpenTelemetry traces and metrics) from Pydantic Logfire using SQL queries.

Installation

Run Command
uvx logfire-mcp@latest --read-token=YOUR_READ_TOKEN

Environment Variables

  • LOGFIRE_READ_TOKEN
  • LOGFIRE_BASE_URL

Security Notes

The server provides an `arbitrary_query` tool that directly executes SQL, which is powerful and could be misused if an LLM client is not properly constrained. The `find_exceptions_in_file` tool uses f-strings for SQL query construction, which can be a SQL injection risk if `filepath` were to contain untrusted input.

Similar Servers

Stats

Interest Score55
Security Score7
Cost ClassMedium
Avg Tokens500
Stars127
Forks23
Last Update2025-11-26

Tags

LogfireOpenTelemetryTelemetryMonitoringLLM ToolingSQL