Langfuse MCP MCP Server

$npx -y langfuse-mcp
README.md

MCP server for Langfuse observability. Query traces, debug exceptions.

MCP server for Langfuse observability. Query traces, debug exceptions, analyze sessions, and manage prompts and datasets for your LLM applications.

Environment Variables

LANGFUSE_PUBLIC_KEYrequiredLangfuse project public key
LANGFUSE_SECRET_KEYrequiredLangfuse project secret key
LANGFUSE_HOSTrequiredLangfuse host URL (e.g., https://cloud.langfuse.com)

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "langfuse": {
      "command": "npx",
      "args": [
        "-y",
        "langfuse-mcp"
      ],
      "env": {
        "LANGFUSE_PUBLIC_KEY": "pk-lf-...",
        "LANGFUSE_SECRET_KEY": "sk-lf-...",
        "LANGFUSE_HOST": "https://cloud.langfuse.com"
      }
    }
  }
}

Try it

Show me the latest traces from my Langfuse project.
Analyze the recent sessions for any common exceptions or errors.
Fetch the current version of the 'summarization-prompt' from Langfuse.
List the datasets available in my Langfuse workspace.
Debug the last failed trace and show me the input and output.

Frequently Asked Questions

How do I install Langfuse MCP?

Install Langfuse MCP by running: npx -y langfuse-mcp

What MCP clients work with Langfuse MCP?

Langfuse MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Langfuse MCP with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free