MCP server
Langfuse
MCP server for Langfuse LLM observability — trace and observation analysis.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.3
- Listing updated
- 5 days ago
About Langfuse
Langfuse is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add langfuse --env LANGFUSE_SECRET_KEY='<LANGFUSE_SECRET_KEY>' --env LANGFUSE_PUBLIC_KEY='<LANGFUSE_PUBLIC_KEY>' -- npx -y langfuse-observability-mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"langfuse": {
"command": "npx",
"args": [
"-y",
"langfuse-observability-mcp-server"
],
"env": {
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>",
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"langfuse": {
"command": "npx",
"args": [
"-y",
"langfuse-observability-mcp-server"
],
"env": {
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>",
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"langfuse": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"langfuse-observability-mcp-server"
],
"env": {
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>",
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"langfuse": {
"command": "npx",
"args": [
"-y",
"langfuse-observability-mcp-server"
],
"env": {
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>",
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"langfuse": {
"command": "npx",
"args": [
"-y",
"langfuse-observability-mcp-server"
],
"env": {
"LANGFUSE_SECRET_KEY": "<LANGFUSE_SECRET_KEY>",
"LANGFUSE_PUBLIC_KEY": "<LANGFUSE_PUBLIC_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
LANGFUSE_SECRET_KEYLangfuse secret key for authentication.RequiredLANGFUSE_PUBLIC_KEYLangfuse public key for authentication.RequiredLANGFUSE_BASE_URLLangfuse API base URL.
Pricing
Open source
Langfuse FAQ
Is Langfuse free?
Yes. Langfuse is open source, so you can use and self-host it for free.
How do I add Langfuse to Claude Code?
Run this command in your terminal: claude mcp add langfuse --env LANGFUSE_SECRET_KEY='<LANGFUSE_SECRET_KEY>' --env LANGFUSE_PUBLIC_KEY='<LANGFUSE_PUBLIC_KEY>' -- npx -y langfuse-observability-mcp-server
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.