Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 51 Actions

Pydantic Logfire MCP Server
for AI Agents

Connect your AI agent to StackOne's Pydantic Logfire MCP server and give it 51 MCP tools out of the box. Auth, tool execution, and security all managed.

Pydantic Logfire logo
Pydantic Logfire MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

51 Agent Actions

Agents can read, write and delete in Pydantic Logfire. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Pydantic Logfire MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Pydantic Logfire tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Pydantic Logfire call.

Tools Discovery →

What is the Pydantic Logfire MCP Server?

A Pydantic Logfire MCP server lets AI agents read and write Pydantic Logfire data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Pydantic Logfire MCP server ships with 51 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Pydantic Logfire MCP Tools

Every StackOne action for Pydantic Logfire, ready for your agent. Read, write and delete, scoped to exactly what you need.

Alerts

  • Create Alert

    Create a new alert.

  • List Alerts

    List all alerts for a project.

  • Get Alert

    Get an alert.

  • Update Alert

    Update an alert.

  • Delete Alert

    Delete an alert.

Channels

  • Create Channel

    Create a notification channel. The pagerduty-integration and slack-integration types require that integration to be installed on the account first, and notification recipients must be existing user UUIDs — otherwise the provider returns HTTP 422.

  • List Channels

    List all notification channels for the organization the project belongs to.

  • Get Channel

    Get a single notification channel by ID

  • Update Channel

    Update a notification channel. The pagerduty-integration and slack-integration types require that integration to be installed on the account first, and notification recipients must be existing user UUIDs — otherwise the provider returns HTTP 422.

  • Delete Channel

    Delete a notification channel.

Dashboards

  • Create Dashboard

    Create Dashboard

  • List Dashboards

    List Dashboards

  • Get Dashboard

    Get Dashboard

  • Update Dashboard

    Update Dashboard

  • Delete Dashboard

    Delete Dashboard

Current Organizations

  • Get Current Organization

    Read the details of the organization the API key belongs to.

  • Update Current Organization

    Update the details of the organization the API key belongs to.

  • Delete Current Organization

    Permanently delete the organization the API key belongs to.

Instance Organizations

  • Create Instance Organization

    Create an organization across the self-hosted instance. Requires the instance:admin scope — returns HTTP 403 on Logfire Cloud.

  • List Instance Organizations

    List all organizations across the self-hosted instance. Requires the instance:admin scope — returns HTTP 403 on Logfire Cloud.

Organization Invitations

  • Create Organization Invitation

    Create a single-use organization invitation for the current organization.

  • List Organization Invitations

    List the outstanding invitations for the organization the API key belongs to, including each invitation's expiry and usage count.

Projects

  • Create Project

    Create a new project. Returns HTTP 400 "Projects limit reached" when the account's project quota is full.

  • List Projects

    List all projects accessible to the authenticated user

  • Update Project

    Update an existing project

  • Delete Project

    Delete a project

Project Write Tokens

  • Create Project Write Token

    Mint a write token for a project, used to send telemetry into it.

  • List Project Write Tokens

    List the write tokens on a project.

  • Delete Project Write Token

    Permanently delete a project write token.

Schedules

  • Create Schedule

    Create a notification schedule that restricts when an alert channel is notified. Use the returned id as channel_assignments[].schedule_id on create_alert or update_alert.

  • Get Schedule

    Retrieve a notification schedule by id.

  • Update Schedule

    Update a notification schedule's label, timezone or windows.

  • Delete Schedule

    Permanently delete a notification schedule.

Variables

  • Create Variable

    Create a new variable definition, optionally with labels and versions.

  • Update Variable

    Update an existing variable definition, optionally with labels and versions.

  • Delete Variable

    Permanently delete a managed variable by its exact name. Requires a Project API Key or OAuth connection.

Variable Types

  • Create Variable Type

    Create or update (upsert by name) a reusable variable type definition. Requires a Project API Key connection.

  • List Variable Types

    List the reusable variable type definitions for a project, including each type's id. Requires a Project API Key connection.

Other (13)

  • Query Records (SQL)

    Run an arbitrary SQL query against the project's telemetry (spans, logs and metrics).

  • Get Query Schemas

    List the tables and columns available to SQL queries for this project.

  • Get Read Token Info

    Show which organization and project the Project API Key is bound to.

  • Search Records

    Search spans and logs by level, service, message text, span name, trace or exception flag.

  • Get Trace

    Return every span and log belonging to one trace, in execution order.

  • List Exceptions

    List records that recorded an exception, newest first.

  • List Services

    List the services reporting telemetry in a time window, with record counts.

  • Get Project Info

    Get details of a specific project

  • Get Variables Config

    Get the full variables configuration for a project.

  • Get Variable By Name

    Get a variable definition by name with current labels and latest version.

  • Get Variable Type By Name

    Look up one reusable variable type by its exact name and return its id. Requires a Project API Key connection.

  • Rotate Project Write Token

    Rotate a write token, issuing a replacement.

  • Expire Project Write Token

    Expire a write token without deleting it.

Set Up Your Pydantic Logfire MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Pydantic Logfire in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

FAQ

Pydantic Logfire MCP Server FAQ

Ready to put your agents to work?