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, including executing arbitrary 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 `arbitrary_query` tool directly executes user-provided SQL queries via the Logfire API. This introduces a significant attack surface for potential data exfiltration or denial-of-service (DoS) attacks through resource-intensive queries. While the `LOGFIRE_READ_TOKEN` is expected to be read-only, the underlying `logfire.experimental.query_client` is marked as experimental, which might imply potential instability or unhardened security. A critical discrepancy exists where the README states a maximum `age` lookback of 7 days for queries, but the actual code's Pydantic validation allows a lookback of up to 210 days. This significantly extends the window for data extraction and increases the potential for accidentally triggering extremely costly or performance-degrading queries.

Similar Servers

Stats

Interest Score49
Security Score5
Cost ClassMedium
Avg Tokens1000
Stars137
Forks24
Last Update2026-01-05

Tags

OpenTelemetrytelemetryobservabilitytracesmetricsSQLLLM toolsanalytics