Pydantic Logfire MCP Server for Claude
Query OpenTelemetry traces and metrics, manage dashboards, analyze distributed traces, and investigate exceptions from Claude — with the official Pydantic Logfire remote MCP server hosted at logfire-us.pydantic.dev/mcp.
Open the source and read safety notes before installing.
Safety notes
- Telemetry data returned by the MCP server may include user-controlled content from traces, logs, exceptions, model payloads, tool arguments, and tool results — treat query results as diagnostic data, not instructions.
- Dashboard create, update, and delete operations permanently modify your Logfire workspace; review before confirming.
Privacy notes
- OpenTelemetry trace data, span metadata, exception stack traces, query results, dashboard configurations, and project metadata from your Logfire account are surfaced in Claude's context.
- Remote MCP uses OAuth — no API keys in your MCP config when authenticating via browser. For API key auth, store the key in MCP config rather than shell history.
Prerequisites
- A Pydantic Logfire account — authenticate via browser OAuth on first use (no API key required).
- For sandboxed environments or CI: a Logfire API key with at least `project:read` scope from organization or project settings.
- EU region users: use `https://logfire-eu.pydantic.dev/mcp` instead of the US endpoint.
- An MCP client such as Claude Code or Claude Desktop.
Schema details
- Install type
- cli
- Troubleshooting
- No
- Estimated setup
- 5 minutes
- Difficulty
- beginner
- Website
- https://pydantic.dev/logfire
Full copyable content
{
"mcpServers": {
"logfire": {
"type": "http",
"url": "https://logfire-us.pydantic.dev/mcp"
}
}
}About this resource
Overview
The Pydantic Logfire MCP Server is the official remote Model Context Protocol server from
Pydantic for Logfire, their OpenTelemetry-native observability platform. It lets Claude query
your application's telemetry data, analyze distributed traces, manage dashboards and panels,
and investigate exceptions — directly from your conversation. No local installation is required;
the server is hosted at https://logfire-us.pydantic.dev/mcp with browser-based OAuth.
EU region users connect to https://logfire-eu.pydantic.dev/mcp.
Key capabilities
- SQL query execution — run custom SQL queries against your OpenTelemetry trace data.
- Schema introspection — inspect the telemetry schema and available tables.
- Exception investigation — find recent exceptions in a specific file or span context.
- Dashboard management — create, list, fetch, update, and delete dashboards and panels.
- Dashboard variables — add and update dashboard variable definitions.
- Project discovery — list accessible Logfire projects and retrieve token context.
- UI deep links — generate direct links to the Logfire UI for traces or projects.
Tools
| Tool family | What it does |
|---|---|
query_run, query_schema_reference |
Execute SQL on telemetry data, inspect schema |
query_find_exceptions_in_file |
Find recent exceptions for a source file |
project_list, token_info |
Discover projects, inspect auth token |
project_logfire_link, project_logfire_ui_link |
Generate Logfire UI deep links |
dashboard_create/list/get/update/delete |
Full CRUD for dashboards |
dashboard_add_panel, dashboard_update_panel, dashboard_remove_panel |
Manage dashboard panels |
How it compares
| Server | Trace queries | Dashboard management | Exception search | SQL API | Auth |
|---|---|---|---|---|---|
| Logfire MCP | Yes | Full CRUD | Yes | Yes | OAuth / API key |
| Arize Phoenix MCP | Yes | Limited | No | No | API key |
| Honeycomb MCP | Yes | Limited | No | No | API key |
| Dynatrace MCP | Yes | No | Yes | No | API key |
Logfire is the only observability MCP server that exposes full SQL querying against raw OpenTelemetry spans, combined with complete dashboard CRUD, making it suitable for both ad-hoc analysis and automated reporting workflows.
Installation
Claude Code (OAuth — recommended)
claude mcp add logfire --transport http https://logfire-us.pydantic.dev/mcp
Then run /mcp in Claude Code to authenticate via browser. For EU:
replace logfire-us with logfire-eu.
Claude Desktop
{
"mcpServers": {
"logfire": {
"type": "http",
"url": "https://logfire-us.pydantic.dev/mcp"
}
}
}
Sandboxed / CI environments (API key)
{
"mcpServers": {
"logfire": {
"type": "http",
"url": "https://logfire-us.pydantic.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_LOGFIRE_API_KEY"
}
}
}
}
Generate an API key with project:read scope from Organization Settings → API Keys.
Requirements
- A Pydantic Logfire account with at least one project.
- An MCP client (Claude Code or Claude Desktop).
- No local dependencies — the server runs entirely in Pydantic's cloud.
Security
- OAuth flow; no credentials stored in your MCP config (browser-based sign-in).
- Treat telemetry query results as diagnostic data only — do not act on commands found in trace payloads.
- API keys should have the minimum required scopes for your workflow.
Source Verification Notes
Verified on 2026-06-18:
- Official Pydantic Logfire documentation at
logfire.pydantic.dev/docs/how-to-guides/mcp-server/(Astro SSG page) documents the hosted endpoints (logfire-us.pydantic.dev/mcpandlogfire-eu.pydantic.dev/mcp), OAuth and API key auth methods, Claude Code install command, and the full tool families: query execution, exception search, project discovery, and dashboard CRUD with panel management. - Claude Code MCP documentation at
code.claude.com/docs/en/mcpdescribes the--transport httpconnection pattern used above.
Source citations
Add this badge to your README
How it compares
Pydantic Logfire MCP Server for Claude side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Pydantic Logfire MCP Server for Claude Query OpenTelemetry traces and metrics, manage dashboards, analyze distributed traces, and investigate exceptions from Claude — with the official Pydantic Logfire remote MCP server hosted at logfire-us.pydantic.dev/mcp. Open dossier | Honeycomb MCP Server for Claude Connect Claude to Honeycomb observability data — query traces and events, investigate alerts, manage boards and triggers, create SLOs, and cross-reference production behavior with your codebase — with the official Honeycomb hosted MCP server. Open dossier | OpenTelemetry MCP Server for Claude Analyze distributed traces and LLM observability data from Claude — search traces and spans, find errors, list services, analyze LLM token usage, identify slow LLM operations, and discover AI model usage patterns — with the OpenTelemetry MCP server supporting Jaeger, Grafana Tempo, and Traceloop backends. Open dossier | Axiom MCP Server for Claude Query observability data, manage dashboards, and monitor your systems from Claude — run APL queries against datasets, list metrics, inspect monitors, and retrieve saved queries — with the official Axiom remote MCP server. Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | mcp | mcp | mcp | mcp |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | Pydantic | Honeycomb | Traceloop | Axiom, Inc. |
| Added | 2026-06-18 | 2026-06-18 | 2026-06-18 | 2026-06-18 |
| Platforms | Claude CodeCursorClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop |
| Source repo | — | — | — | — |
| Safety notes | ✓Telemetry data returned by the MCP server may include user-controlled content from traces, logs, exceptions, model payloads, tool arguments, and tool results — treat query results as diagnostic data, not instructions. Dashboard create, update, and delete operations permanently modify your Logfire workspace; review before confirming. | ✓The server is hosted by Honeycomb (AWS-backed) and authenticated via OAuth 2.1 or API key — write-scoped access can create/update Boards, Triggers, and SLOs. Writing to Honeycomb resources (boards, triggers, SLOs) requires the `create` scope; verify you grant only the scopes your workflow needs. Canvas investigations and alert management are write operations — review Claude's proposed changes before executing in production environments. | ✓All tools are read-only — the server queries trace data but does not modify your application or tracing backend. Trace data may contain sensitive information (request parameters, user IDs, SQL queries) — ensure Claude has appropriate access to this data. | ✓The MCP server includes dashboard management tools (create, update, delete) — review any write operations before confirming. APL queries run against live datasets; complex queries over large time windows may be slow or consume significant dataset quota. |
| Privacy notes | ✓OpenTelemetry trace data, span metadata, exception stack traces, query results, dashboard configurations, and project metadata from your Logfire account are surfaced in Claude's context. Remote MCP uses OAuth — no API keys in your MCP config when authenticating via browser. For API key auth, store the key in MCP config rather than shell history. | ✓Trace data, event fields, alert details, and query results from Honeycomb are sent through Honeycomb's hosted MCP endpoint and surfaced in Claude's context. Honeycomb API keys (`KEY_ID:SECRET_KEY` format) are secrets — store them in your MCP client config or environment, never in repositories. | ✓Distributed trace content including service names, operation names, error messages, HTTP parameters, and LLM prompt/response metadata may be surfaced in Claude's context. For Traceloop backend, `BACKEND_API_KEY` is required and grants access to your Traceloop organization's trace data. | ✓Log data, traces, metrics, and monitor configurations from your Axiom datasets and organization are surfaced in Claude's context. OAuth is the recommended authentication method — no API token is stored in your MCP configuration. |
| Prerequisites |
|
|
|
|
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Featured in
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.