Back to MCP Directory
Logfire
Model Context Protocol moderate risk

Logfire

The Logfire MCP server provides access to application telemetry data, traces, and query execution within the Logfire platform, using a read token for authentication.

Connections & Capabilities

Connects To

GitHub

Capabilities

read

Quickstart

Install

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

Config

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

Exposed MCP Tools (4)

safe
find_exceptions_in_file

Retrieves details about the most recent exceptions in a specified file.

Read-only operation that retrieves exception data.

moderate
arbitrary_query

Executes an arbitrary SQL query on the Pydantic Logfire database.

Allows arbitrary queries, which could expose sensitive data if not carefully constructed.

safe
logfire_link

Creates a link to view a specific trace in the Logfire UI.

Generates a URL, posing minimal risk.

safe
schema_reference

Provides the database schema for the Logfire DataFusion database.

Read-only access to schema information.

Safety Assessment

The Logfire MCP server is relatively safe for read-only telemetry data retrieval. Risks are primarily associated with the exposure of the read token and the potential for information leakage through poorly constructed queries. Using the remote MCP server is recommended for enhanced security.

  • Read-only access to telemetry data via API.
  • Authentication via read token.
  • No direct execution of arbitrary code on the server.
  • Remote MCP server option available, managed by Pydantic Logfire.
  • Exposure of telemetry data if read token is compromised.
  • Potential for information leakage via arbitrary queries if not carefully constructed.
  • Dependency on Pydantic Logfire's infrastructure and security.
  • Deprecated local server option increases attack surface if used.