Skip to main content
Glama
Logfire MCP Server

Logfire MCP Server

Official
by pydantic

Pydantic Logfire MCP Server

IMPORTANT

This repository is archived. The STDIO MCP server in this package is no longer being updated. We now have a remote MCP server, which allows us to iterate faster on tools and provide a better experience.

Read more in our documentation.

If you have any questions, reach out to us on Slack or email us at engineering@pydantic.dev.

Available Tools

4 tools
arbitrary_queryB

Run an arbitrary query on the Pydantic Logfire database.

The SQL reference is available via the `sql_reference` tool.

Inputs: query (required), age (required). Returns: result

find_exceptions_in_fileA

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

Inputs: filepath (required), age (required). Returns: result

schema_referenceA

The database schema for the Logfire DataFusion database.

This includes all tables, columns, and their types as well as descriptions.
For example:

```sql
-- The records table contains spans and logs.
CREATE TABLE records (
    message TEXT, -- The message of the record
    span_name TEXT, -- The name of the span, message is usually templated from this
    trace_id TEXT, -- The trace ID, identifies a group of spans in a trace
    exception_type TEXT, -- The type of the exception
    exception_message TEXT, -- The message of the exception
    -- other columns...
);
```
The SQL syntax is similar to Postgres, although the query engine is actually Apache DataFusion.

To access nested JSON fields e.g. in the `attributes` column use the `->` and `->>` operators.
You may need to cast the result of these operators e.g. `(attributes->'cost')::float + 10`.

You should apply as much filtering as reasonable to reduce the amount of data queried.
Filters on `start_timestamp`, `service_name`, `span_name`, `metric_name`, `trace_id` are efficient.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool serves a unique purpose: querying, exception viewing, link generation, and schema reference. No overlap or ambiguity.

    Naming Consistency5/5

    All tools use consistent snake_case naming with clear verbs (arbitrary_query, find_exceptions_in_file, logfire_link, schema_reference).

    Tool Count5/5

    With 4 tools, the set is concise and well-scoped for querying and debugging Logfire databases, covering key workflows without bloat.

    Completeness4/5

    The set covers querying, schema exploration, exception analysis, and UI linking. Missing explicit write operations, but that may be by design.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      Not graded
      maintenance
      A Model Context Protocol server that enables AI assistants to interact with Datadog's observability platform through natural language.
      72
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      A Model Context Protocol server that provides access to Observe API functionality, enabling LLMs to execute OPAL queries, manage datasets/monitors, and leverage vector search for documentation and troubleshooting runbooks.
      1
      -
    • A
      license
      A
      quality
      C
      maintenance
      A Model Context Protocol server that enables LLMs to interact with MLflow tracking servers, allowing users to query experiments, analyze runs, compare metrics, manage the model registry, and promote models through natural language.
      40
      296 PyPI
      15
      MIT