Skip to main content
Glama

Logfire MCP Server

Official
by pydantic

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOGFIRE_BASE_URLNoThe base URL of the Logfire API instancehttps://logfire-api.pydantic.dev
LOGFIRE_READ_TOKENYesYour Logfire read token for accessing the Logfire APIs

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
find_exceptions

Get the exceptions on a file.

Args: age: Number of minutes to look back, e.g. 30 for last 30 minutes. Maximum allowed value is 7 days.
find_exceptions_in_file

Get the details about the 10 most recent exceptions on the file.

Args: filepath: The path to the file to find exceptions in. age: Number of minutes to look back, e.g. 30 for last 30 minutes. Maximum allowed value is 7 days.
arbitrary_query

Run an arbitrary query on the Logfire database.

The schema is available via the `get_logfire_records_schema` tool. Args: query: The query to run, as a SQL string. age: Number of minutes to look back, e.g. 30 for last 30 minutes. Maximum allowed value is 7 days.
get_logfire_records_schema

Get the records schema from Logfire.

To perform the `arbitrary_query` tool, you can use the `schema://records` to understand the schema.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pydantic/logfire-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server