JUHE API Marketplace
pydantic avatar
MCP Server

logfire-mcp

Provides access to OpenTelemetry traces and metrics through Logfire

153
GitHub Stars
3/10/2026
Last Updated
MCP Server Configuration
1{
2 "name": "logfire",
3 "command": "uvx",
4 "args": [
5 "logfire-mcp@latest",
6 "--read-token=YOUR-TOKEN"
7 ]
8}
JSON8 lines
  1. Home
  2. MCP Servers
  3. logfire-mcp

README Documentation

Pydantic Logfire MCP Server

This repository contains a Model Context Protocol (MCP) server with tools that can access the OpenTelemetry traces and metrics you've sent to Pydantic Logfire.

Remote MCP Server (Recommended)

Pydantic Logfire provides a hosted remote MCP server that you can use instead of running this package locally. This is the easiest way to get started with the Logfire MCP server.

To use the remote MCP server, add the following configuration to your MCP client.

Choose the endpoint that matches your Logfire data region:

  • US region — logfire-us.pydantic.dev
  • EU region — logfire-eu.pydantic.dev

For US region (logfire-us.pydantic.dev):

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

For EU region (logfire-eu.pydantic.dev):

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-eu.pydantic.dev/mcp"
    }
  }
}

[!NOTE] The remote MCP server handles authentication automatically through your browser. When you first connect, you'll be prompted to authenticate with your Pydantic Logfire account.

[!NOTE] If you want to run logfire-mcp locally, check the OLD_README.md file.

Configuration with well-known MCP clients

The examples below use the US region endpoint. Replace the URL with https://logfire-eu.pydantic.dev/mcp if you are using the EU region.

Configure for Cursor

Create a .cursor/mcp.json file in your project root:

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

Configure for Claude Code

Run the following command:

claude mcp add logfire --transport http https://logfire-us.pydantic.dev/mcp

Configure for Claude Desktop

Add to your Claude settings:

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

Configure for Cline

Add to your Cline settings in cline_mcp_settings.json:

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

Configure for VS Code

Make sure you enabled MCP support in VS Code.

Create a .vscode/mcp.json file in your project's root directory:

{
  "servers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

Configure for Zed

Create a .zed/settings.json file in your project's root directory:

{
  "context_servers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp"
    }
  }
}

Sandboxed Environments

If browser-based authentication is not available (e.g. in sandboxed environments), generate an API key with at least the project:read scope from your organization or project settings, then use it as a Bearer token:

{
  "mcpServers": {
    "logfire": {
      "type": "http",
      "url": "https://logfire-us.pydantic.dev/mcp",
      "headers": {
        "Authorization": "Bearer <your-logfire-api-key>"
      }
    }
  }
}

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright © 2026 JUHEDATA HK LIMITED - All rights reserved