/ Verzeichnis / Playground / Langfuse MCP
● Offiziell langfuse ⚡ Sofort

Langfuse MCP

von langfuse · langfuse/mcp-server-langfuse

Manage Langfuse LLM-observability prompts from your agent.

Langfuse is open-source LLM observability and prompt management. This MCP lets Claude read prompt versions, fetch traces, and update prompt templates — useful for prompt engineers who want their assistant to actually touch the prompt store.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

langfuse-mcp.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "langfuse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@langfuse/mcp-server"
      ]
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "langfuse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@langfuse/mcp-server"
      ]
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "langfuse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@langfuse/mcp-server"
      ]
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "langfuse-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@langfuse/mcp-server"
      ]
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "langfuse-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@langfuse/mcp-server"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "langfuse-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@langfuse/mcp-server"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add langfuse-mcp -- npx -y @langfuse/mcp-server

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: Langfuse MCP

Iterate on a production prompt with traceable versions

👤 Prompt engineers ⏱ ~15 min intermediate

Wann einsetzen: You want to A/B a prompt without leaving the chat.

Voraussetzungen
  • Server/skill installed and authenticated — See repo README
Ablauf
  1. Pull the current production prompt
    Get the 'support-triage' prompt labeled 'production' from Langfuse.✓ Kopiert
    → Current prompt text + version number
  2. Test a tweak
    Create version with my proposed change labeled 'staging'. Don't promote.✓ Kopiert
    → New version saved, 'production' label untouched

Ergebnis: Versioned, reviewable prompt history.

Fallstricke
  • Labels are mutable — Labels are mutable — moving 'production' to a new version is an instant rollout. Confirm before relabel.
Kombinieren mit: filesystem

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

langfuse-mcp + filesystem

Pair with filesystem for complementary capabilities

Use this server together with filesystem to complete a multi-step task.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
get_prompt name, version|label Retrieve a prompt for inspection or copying 1 API call
create_prompt name, prompt_text, labels Save a new version 1 API call
list_traces user_id|session_id, limit Debug a specific user/session 1 API call

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
See provider docs for rate limits
Tokens pro Aufruf
Varies by tool
Kosten in €
See repo README for pricing details
Tipp
Cache tool results and avoid repeated identical calls.

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: Use environment variables; never commit secrets
Datenabfluss: Tool calls go to the provider's API as documented

Fehlerbehebung

Häufige Fehler und Lösungen

401 Unauthorized

Create a project in Langfuse, generate a key pair, set LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY.

Prüfen: get_prompt on a known name works
prompt not found

Prompts are project-scoped. Confirm LANGFUSE_HOST and that the prompt exists in the target project.

Prüfen: Open the Langfuse UI for that project

Alternativen

Langfuse MCP vs. andere

AlternativeWann stattdessenKompromiss
comet-ml/opik-mcpYou already use Opik for tracingSimilar feature set; different vendor

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen