logfire-mcp
Verified Safeby pydantic
Overview
Enables LLMs to retrieve and analyze application telemetry data (OpenTelemetry traces and metrics) from Pydantic Logfire, including executing arbitrary SQL queries.
Installation
uvx logfire-mcp@latest --read-token=YOUR_READ_TOKENEnvironment 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
opentelemetry-mcp-server
Enables AI assistants to query and analyze OpenTelemetry traces from LLM applications for debugging, performance, and cost optimization.
DBchat
Transforms a database into an intelligent conversational partner, enabling natural language queries, instant answers, and data visualizations via MCP clients.
mcp-server-datahub
Enables AI agents to interact with DataHub for comprehensive data discovery, governance, lineage exploration, and SQL query generation across an organization's data ecosystem.
langfuse-mcp
Provides a comprehensive Model Context Protocol (MCP) server for Langfuse, enabling AI agents to debug, analyze, and manage AI traces, observations, sessions, exceptions, and prompts.