/ Annuaire / Playground / Langfuse MCP
● Officiel langfuse ⚡ Instantané

Langfuse MCP

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

langfuse-mcp.replay ▶ prêt
0/0

Installer

Choisissez votre 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"
      ]
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : Langfuse MCP

Iterate on a production prompt with traceable versions

👤 Prompt engineers ⏱ ~15 min intermediate

Quand l'utiliser : You want to A/B a prompt without leaving the chat.

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

Résultat : Versioned, reviewable prompt history.

Pièges
  • Labels are mutable — Labels are mutable — moving 'production' to a new version is an instant rollout. Confirm before relabel.
Combiner avec : filesystem

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

langfuse-mcp + filesystem

Pair with filesystem for complementary capabilities

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

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
See provider docs for rate limits
Tokens par appel
Varies by tool
Monétaire
See repo README for pricing details
Astuce
Cache tool results and avoid repeated identical calls.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : Use environment variables; never commit secrets
Sortie de données : Tool calls go to the provider's API as documented

Dépannage

Erreurs courantes et correctifs

401 Unauthorized

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

Vérifier : 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.

Vérifier : Open the Langfuse UI for that project

Alternatives

Langfuse MCP vs autres

AlternativeQuand l'utiliserCompromis
comet-ml/opik-mcpYou already use Opik for tracingSimilar feature set; different vendor

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills