langfuse
v0.1.3MCP server for Langfuse LLM observability — trace and observation analysis.
Values you need
| Variable | What it is | |
|---|---|---|
LANGFUSE_SECRET_KEY | required secret | Langfuse secret key for authentication. |
LANGFUSE_PUBLIC_KEY | required secret | Langfuse public key for authentication. |
LANGFUSE_BASE_URL | optional | Langfuse API base URL. Default: https://cloud.langfuse.com |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add langfuse -e 'LANGFUSE_PUBLIC_KEY=<LANGFUSE_PUBLIC_KEY>' -e 'LANGFUSE_SECRET_KEY=<LANGFUSE_SECRET_KEY>' -- npx -y langfuse-observability-mcp-server@0.1.3Add to
claude_desktop_config.json{
"mcpServers": {
"langfuse": {
"args": [
"-y",
"langfuse-observability-mcp-server@0.1.3"
],
"command": "npx",
"env": {
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>",
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"langfuse": {
"args": [
"-y",
"langfuse-observability-mcp-server@0.1.3"
],
"command": "npx",
"env": {
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>",
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "LANGFUSE_PUBLIC_KEY",
"id": "langfuse-public-key",
"password": true,
"type": "promptString"
},
{
"description": "LANGFUSE_SECRET_KEY",
"id": "langfuse-secret-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"langfuse": {
"args": [
"-y",
"langfuse-observability-mcp-server@0.1.3"
],
"command": "npx",
"env": {
"LANGFUSE_PUBLIC_KEY": "${input:langfuse-public-key}",
"LANGFUSE_SECRET_KEY": "${input:langfuse-secret-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.langfuse]
command = "npx"
args = ["-y", "langfuse-observability-mcp-server@0.1.3"]
env = { "LANGFUSE_PUBLIC_KEY" = "<LANGFUSE_PUBLIC_KEY>", "LANGFUSE_SECRET_KEY" = "<LANGFUSE_SECRET_KEY>" }For AI agents
- Ask the user for: LANGFUSE_SECRET_KEY, LANGFUSE_PUBLIC_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_traces, get_trace_detail, get_observations, get_observation.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json