
Langfuse MCP Server
by avivsinaiio.github.avivsinai/langfuse-mcpv0.12.1
Query Langfuse traces, debug exceptions, analyze sessions and manage prompts for LLM applications.
context tax
queued
security
queued
cold start
queued
freshness
Active14d ago
Install Langfuse MCP server
Install in Claude Code
claude mcp add langfuse-avivsinai -e LANGFUSE_PUBLIC_KEY='<langfuse-public-key>' -e LANGFUSE_SECRET_KEY='<langfuse-secret-key>' -- uvx langfuse-mcpInstall in Cursor
{
"mcpServers": {
"langfuse-avivsinai": {
"command": "uvx",
"args": [
"langfuse-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"langfuse-avivsinai": {
"command": "uvx",
"args": [
"langfuse-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"langfuse-avivsinai": {
"type": "stdio",
"command": "uvx",
"args": [
"langfuse-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"langfuse-avivsinai": {
"command": "uvx",
"args": [
"langfuse-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| LANGFUSE_PUBLIC_KEY | yes | yes | Langfuse public API key |
| LANGFUSE_SECRET_KEY | yes | yes | Langfuse secret API key |
| LANGFUSE_HOST | — | — | Langfuse API base URL (Cloud or self-hosted) |
| LANGFUSE_MCP_READ_ONLY | — | — | Set true to disable write tools |
Freshness
Active — last maintenance signal 14d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-25 · 14d ago · GitHub
Latest release
2026-09-25 · 14d ago · GitHub · v0.12.1
Package published
no data · npm/PyPI
Registry entry updated
2026-09-25 · 14d ago · official registry · v0.12.1
FAQ
›How do I install the Langfuse MCP server in Claude Code?
Run: claude mcp add langfuse-avivsinai -e LANGFUSE_PUBLIC_KEY='<langfuse-public-key>' -e LANGFUSE_SECRET_KEY='<langfuse-secret-key>' -- uvx langfuse-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Langfuse require an API key?
Yes. It expects LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, of which 2 are secrets.
›Can I use Langfuse as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Langfuse in the official MCP registry?
Yes, as io.github.avivsinai/langfuse-mcp.
Alternatives to Langfuse
Other monitoring & observability MCP servers.