$ timeahead.in
/ servers/pypi/langfuse-mcp
pypi

langfuse-mcp

A Model Context Protocol (MCP) server for Langfuse, enabling AI agents to query Langfuse trace data for enhanced debugging and observability

92 stars2k/wkupdated 0d agogithub ↗
66fair
▣ Overview
PyPIPython 3.10–3.14License: MIT

What it does

Langfuse-mcp exposes Langfuse observability data—traces, observations, sessions, exceptions, prompts, datasets, and annotation queues—as Claude-callable tools. The server provides 37 tools grouped into nine categories, from basic trace queries and exception tracking to prompt management and dataset curation. Each tool returns structured data you can analyze, and you can selectively load only the tool groups you need via the --tools flag to keep token overhead minimal.

Who it's for

Backend engineers debugging production LLM applications, observability engineers triaging multi-tenant failures, and AI teams iterating on prompt templates and evaluation datasets. Anyone instrumenting applications with Langfuse for tracing and observability can query that data directly from Claude Code, without context switching to the Langfuse dashboard.

Common use cases

  • Query traces and observations to understand why a specific LLM call produced an unexpected output
  • Analyze session data across users to identify patterns in model behavior and common failure modes
  • Create or update prompt templates and manage test datasets without leaving Claude
  • Review exception logs and error counts to prioritize which components need refactoring
  • Upsert dataset items to maintain test suites and continuous evaluation workflows

Setup pitfalls

  • Requires LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY environment variables; the connection fails silently without valid credentials
  • For self-hosted Langfuse, must set LANGFUSE_HOST to your instance URL; defaults to cloud.langfuse.com if omitted
  • No CI verification is published; verify the server against your own Langfuse instance before relying on it in production
  • Write operations are enabled by default; use the --read-only flag to disable dataset, prompt, and queue mutations if safer read-only access is required
3 credentials detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
40
14.0
Freshness
25%
100
25.0
Adoption
20%
58
11.6
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
65.6
⚿ Capabilities & Risk Explainer
fs readfs writesecrets
◆ Risk level: medium
fs read + fs write + secrets — requires access to credentials or environment secrets.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "langfuse": {
      "command": "uvx",
      "args": [
        "langfuse-mcp"
      ]
    }
  }
}
📈 Score historylast 27 snapshots
5/10/20266/6/2026 · 27 snapshots
⚙ Maintenance health
59/ 100 · is this project alive?
contributors (1y)6
top contributor share95%
releases (1y)22
last release30d ago
ci✓ passing
⛁ Raw data
weekly downloads2k
github stars92
forks25
open issues3
license✓ present
readme length6667 chars
last publish0d ago
last commit0d ago
last updated8h ago
install verified✓ pass · 18d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points