Logfire
Provides access to OpenTelemetry traces and metrics through Logfire.
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>"
}
}
}
}
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
MCP Chart Server
Create real-time TradingView chart visualizations using the Chart-IMG API.
Agile Team MCP Server
An MCP server providing model wrapper tools for agile development teams, requiring external API keys.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
Markdown Sidecar MCP Server
Serve and access markdown documentation for locally installed NPM, Go, or PyPi packages.
CodeGraphContext
An MCP server that indexes local code into a graph database to provide context to AI assistants.
Gru Sandbox
Gru-sandbox(gbox) is an open source project that provides a self-hostable sandbox for MCP integration or other AI agent usecases.
CLI Exec
Execute shell commands with structured output via a powerful CLI server.
MockMCP
Create mock MCP servers instantly for developing and testing agentic AI workflows.
Revit MCP
Interact with Autodesk Revit using the MCP protocol. This server provides AI tools and requires the corresponding Revit plugin to function.
P4 MCP Server
Perforce P4MCP Server is a Model Context Protocol (MCP) server that integrates with the Perforce P4 version control system.