logfire-mcp

logfire-mcp

72

The Logfire MCP Server facilitates access to and analysis of OpenTelemetry traces and metrics via Logfire. It offers tools to retrieve and analyze telemetry data, execute SQL queries, and is compatible with popular MCP clients for additional functionality.

How do I obtain a Logfire read token?

You can create a Logfire read token under the 'Read Tokens' section of your project settings in Logfire.

What is the purpose of the 'find_exceptions' tool?

The 'find_exceptions' tool retrieves exception counts from traces, grouped by file, to help identify problematic areas in your code.

Can I run the MCP server without manually starting it?

Yes, if you are using MCP clients like Cursor, Claude Desktop, or Cline, they can manage the MCP server for you.

How can I customize the base URL for the Logfire API?

You can customize the base URL by using the '--base-url' argument or setting the 'LOGFIRE_BASE_URL' environment variable.

What kind of queries can I run with the 'arbitrary_query' tool?

You can run custom SQL queries on your OpenTelemetry traces and metrics to perform detailed analysis and reporting.