Loading...

The Logfire MCP server provides access to application telemetry data, traces, and query execution within the Logfire platform, using a read token for authentication.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
The Logfire MCP server provides access to application telemetry data, traces, and query execution within the Logfire platform, using a read token for authentication.
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.
Performance depends on the complexity of the queries and the volume of data being processed. Complex queries may take longer to execute.
Cost depends on the usage of the Pydantic Logfire platform, including data ingestion and query execution. Be mindful of query complexity and data volume to minimize costs.
uvx logfire-mcp@latest --read-token=YOUR_READ_TOKEN{
"mcpServers": {
"logfire": {
"type": "http",
"url": "https://logfire-us.pydantic.dev/mcp"
}
}
}LOGFIRE_READ_TOKENLOGFIRE_BASE_URLfind_exceptions_in_fileRetrieves details about the most recent exceptions in a specified file.
Read-only operation that retrieves exception data.
arbitrary_queryExecutes an arbitrary SQL query on the Pydantic Logfire database.
Allows arbitrary queries, which could expose sensitive data if not carefully constructed.
logfire_linkCreates a link to view a specific trace in the Logfire UI.
Generates a URL, posing minimal risk.
schema_referenceProvides the database schema for the Logfire DataFusion database.
Read-only access to schema information.
Token
local
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.
The server primarily supports read-only operations, limiting the risk of unintended modifications. However, the arbitrary_query tool can potentially expose sensitive data if not used carefully.
Production Tip
Monitor the usage of the arbitrary_query tool to prevent unintended data exposure or performance issues.
A read token is an API key that grants read-only access to your Pydantic Logfire data. You can create one in the 'Read Tokens' section of your project settings.
Running the MCP server locally is deprecated and less secure than using the remote MCP server provided by Pydantic Logfire. The remote server handles authentication automatically and is kept up-to-date with the latest security patches.
If your read token is compromised, unauthorized users may be able to access your Pydantic Logfire data. You should immediately revoke the compromised token and create a new one.
No, the arbitrary_query tool only allows read-only queries. You cannot use it to modify or delete data.
You can specify the base URL of your self-hosted Logfire instance using the LOGFIRE_BASE_URL environment variable or the --base-url argument.
The maximum allowed value for the 'age' argument is 30 days (in minutes).
No, the Logfire MCP server uses a read token for authentication.