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. 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
Add this skill
npx mdskills install pydantic/logfire-mcpWell-documented remote MCP server with clear multi-client setup but lacks tool capability details
1# Pydantic Logfire MCP Server23This repository contains a Model Context Protocol (MCP) server with tools that can access the OpenTelemetry traces and4metrics you've sent to Pydantic Logfire.56## Remote MCP Server (Recommended)78Pydantic Logfire provides a hosted remote MCP server that you can use instead of running this package locally.9This is the easiest way to get started with the Logfire MCP server.1011To use the remote MCP server, add the following configuration to your MCP client.1213**Choose the endpoint that matches your Logfire data region:**1415- **US region** — `logfire-us.pydantic.dev`16- **EU region** — `logfire-eu.pydantic.dev`1718For **US region** (`logfire-us.pydantic.dev`):19```json20{21 "mcpServers": {22 "logfire": {23 "type": "http",24 "url": "https://logfire-us.pydantic.dev/mcp"25 }26 }27}28```2930For **EU region** (`logfire-eu.pydantic.dev`):31```json32{33 "mcpServers": {34 "logfire": {35 "type": "http",36 "url": "https://logfire-eu.pydantic.dev/mcp"37 }38 }39}40```4142> [!NOTE]43> The remote MCP server handles authentication automatically through your browser. When you first connect,44> you'll be prompted to authenticate with your Pydantic Logfire account.4546> [!NOTE]47> If you want to run logfire-mcp locally, check the [OLD_README.md](OLD_README.md) file.4849## Configuration with well-known MCP clients5051The examples below use the **US region** endpoint. Replace the URL with `https://logfire-eu.pydantic.dev/mcp` if you are using the EU region.5253### Configure for Cursor5455Create a `.cursor/mcp.json` file in your project root:5657```json58{59 "mcpServers": {60 "logfire": {61 "type": "http",62 "url": "https://logfire-us.pydantic.dev/mcp"63 }64 }65}66```6768### Configure for Claude Code6970Run the following command:7172```bash73claude mcp add logfire --transport http https://logfire-us.pydantic.dev/mcp74```7576### Configure for Claude Desktop7778Add to your Claude settings:7980```json81{82 "mcpServers": {83 "logfire": {84 "type": "http",85 "url": "https://logfire-us.pydantic.dev/mcp"86 }87 }88}89```9091### Configure for Cline9293Add to your Cline settings in `cline_mcp_settings.json`:9495```json96{97 "mcpServers": {98 "logfire": {99 "type": "http",100 "url": "https://logfire-us.pydantic.dev/mcp"101 }102 }103}104```105106### Configure for VS Code107108Make sure you [enabled MCP support in VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_enable-mcp-support-in-vs-code).109110Create a `.vscode/mcp.json` file in your project's root directory:111112```json113{114 "servers": {115 "logfire": {116 "type": "http",117 "url": "https://logfire-us.pydantic.dev/mcp"118 }119 }120}121```122123### Configure for Zed124125Create a `.zed/settings.json` file in your project's root directory:126127```json128{129 "context_servers": {130 "logfire": {131 "type": "http",132 "url": "https://logfire-us.pydantic.dev/mcp"133 }134 }135}136```137
Full transparency — inspect the skill content before installing.