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 keyLANGFUSE_SECRET_KEYrequiredLangfuse project secret keyLANGFUSE_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.