Skip to content

Logfire MCP Server

Logfire has its own MCP server, which you can use on Claude Desktop, Cursor, and any other software that supports MCP Servers.

Connect to the MCP server

Here's how to connect different clients to the MCP server:

Cursor

You can configure Cursor by creating a .cursor/mcp.json file in your project root:

{
  "mcpServers": {
    "logfire": {
      "command": "uvx",
      "args": ["logfire-mcp", "--logfire-read-token=YOUR-TOKEN"],
    }
  }
}

Note

You need to pass the token via the --logfire-read-token flag, because Cursor doesn't support the env field in the MCP configuration.

For more detailed information, you can check the Cursor documentation.

Claude Desktop

In Claude Desktop, go to Settings → Advanced and add the following MCP configuration:

{
  "command": ["logfire-mcp"],
  "type": "stdio",
  "env": {
    "LOGFIRE_READ_TOKEN": "your_token"
  }
}

Check out the MCP quickstart for more information.

Cline

When using Cline, you can configure the cline_mcp_settings.json file to connect to the MCP server:

{
  "mcpServers": {
    "logfire": {
      "command": "uvx",
      "args": [
        "logfire-mcp",
      ],
      "env": {
        "LOGFIRE_READ_TOKEN": "your_token"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}