MCP server
Logfire MCP Server
- Maintainer
- Official · Pydantic
- Runs
- Local (stdio)
- GitHub
- ★ 162, last push 2026-07-13 (checked 2026-10-24)
- License
- MIT
- Connects to
- Logfire
Install the Logfire MCP Server
Pick your client. Each tab starts the same local command. Config shapes checked against each client's docs on 2026-10-25.
Run in a terminal. Everything after -- is the command that starts the server. docs
claude mcp add --transport stdio logfire -- uvx logfire-mcp
Claude Desktop only: Settings > Developer > Edit Config opens claude_desktop_config.json. Add this, save and restart the app. docs
{
"mcpServers": {
"logfire": {
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project), or use the install button. docs
{
"mcpServers": {
"logfire": {
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}Add to .vscode/mcp.json (note the "servers" key and the type), or use the install button. Command Palette > "MCP: Open User Configuration" for all workspaces. docs
{
"servers": {
"logfire": {
"type": "stdio",
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}Run codex mcp add logfire -- uvx logfire-mcp, or add this to ~/.codex/config.toml. docs
[mcp_servers.logfire] command = "uvx" args = ["logfire-mcp"]
Run in a terminal (-s user adds it for all projects; the default is this project). docs
gemini mcp add -s user logfire uvx logfire-mcp
Run in a terminal; it writes ~/.copilot/mcp-config.json. docs
copilot mcp add logfire -- uvx logfire-mcp
Add to mcp_config.json: ~/.config/devin/mcp_config.json on macOS and Linux (older installs: ~/.codeium/windsurf/mcp_config.json), %APPDATA%\devin\ on Windows. docs
{
"mcpServers": {
"logfire": {
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}Add to Zed's settings.json (or Settings > AI > MCP Servers > Add Server). Remote servers without an Authorization header sign in with OAuth. docs
{
"context_servers": {
"logfire": {
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}Add to opencode.json in the project (or ~/.config/opencode/opencode.json). docs
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"logfire": {
"type": "local",
"command": [
"uvx",
"logfire-mcp"
],
"enabled": true
}
}
}Add to ~/.kiro/settings/mcp.json (all projects) or .kiro/settings/mcp.json (this project). docs
{
"mcpServers": {
"logfire": {
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}MCP Servers > Configure > Configure MCP Servers opens cline_mcp_settings.json; add this entry. docs
{
"mcpServers": {
"logfire": {
"command": "uvx",
"args": [
"logfire-mcp"
]
}
}
}Security notes
- The local server runs with your user's permissions (uvx downloads it from PyPI on first run).
Alternatives
- OpenStatusofficial · ★ 9.2k
Monitors, status pages, incidents and maintenance windows in OpenStatus.
- Grafanaofficial · ★ 3.6k
Search dashboards, query Prometheus and Loki, and manage incidents and alerts.
- Google Analyticsofficial · ★ 3.6k
Run Google Analytics 4 reports and read account and property details.
- Google Adsofficial · ★ 1.1k
Query Google Ads accounts, campaigns and performance with GAQL.
- Sentryofficial · ★ 944
Search issues and events, read stack traces and run Seer root-cause analysis.
- Dynatraceofficial · ★ 167
Query logs, metrics, problems and vulnerabilities in your Dynatrace environment with DQL.
- Rootlyofficial · ★ 45
Rootly incidents, on-call schedules, alerts and similar past incidents.
- Amplitudeofficial
Hosted server to search Amplitude charts, dashboards, experiments and event data.
FAQ
What does the Logfire MCP Server do?+
Read OpenTelemetry traces and metrics from Logfire and find exceptions.
Is the Logfire MCP server official?+
Official: built and maintained by Pydantic.
How do I add Logfire to Claude Code?+
Run: claude mcp add logfire -- uvx logfire-mcp. Add --scope project to share it with your team through .mcp.json.
How do I use the Logfire MCP server in Cursor or VS Code?+
Open the Cursor or VS Code tab above: it has the mcp.json entry and a one-click install link. Cursor uses the "mcpServers" key; VS Code uses "servers" and needs a type ("stdio").
Does Logfire work in ChatGPT and claude.ai?+
No: it runs locally over stdio, and ChatGPT and claude.ai only connect to remote servers. Use it in Claude Desktop, Claude Code, Cursor, VS Code or another client that can start a local process.
What are the alternatives to the Logfire MCP server?+
Other monitoring & observability MCP servers: OpenStatus, Grafana, Google Analytics, Google Ads and Sentry.