Langfuse API MCP Server
by rodrigorjsfio.github.rodrigorjsf/langfuse-api-mcpv0.1.0
Langfuse public API (Cloud and self-hosted): traces, prompts, datasets and gated writes.
context tax
queued
security
queued
cold start
queued
freshness
Active10d ago
Install Langfuse API MCP server
Install in Claude Code
claude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY='<langfuse-public-key>' -e LANGFUSE_SECRET_KEY='<langfuse-secret-key>' -e LANGFUSE_BASE_URL='<langfuse-base-url>' -- npx -y langfuse-api-mcpInstall in Cursor
{
"mcpServers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>",
"LANGFUSE_BASE_URL": "<langfuse-base-url>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>",
"LANGFUSE_BASE_URL": "<langfuse-base-url>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"langfuse-api": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>",
"LANGFUSE_BASE_URL": "<langfuse-base-url>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<langfuse-public-key>",
"LANGFUSE_SECRET_KEY": "<langfuse-secret-key>",
"LANGFUSE_BASE_URL": "<langfuse-base-url>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| LANGFUSE_PUBLIC_KEY | yes | yes | The project's public key (pk-lf-...). |
| LANGFUSE_SECRET_KEY | yes | yes | The project's secret key (sk-lf-...). |
| LANGFUSE_BASE_URL | yes | — | Your Langfuse host, e.g. https://cloud.langfuse.com; https only, http only for localhost. |
| LANGFUSE_CA_CERT | — | — | Optional PEM file with your corporate or private CA, added to the system trust store. |
Freshness
Active — last maintenance signal 10d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-30 · 10d ago · GitHub
Latest release
2026-09-30 · 10d ago · GitHub · v0.1.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-30 · 10d ago · official registry · v0.1.0
FAQ
›How do I install the Langfuse API MCP server in Claude Code?
Run: claude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY='<langfuse-public-key>' -e LANGFUSE_SECRET_KEY='<langfuse-secret-key>' -e LANGFUSE_BASE_URL='<langfuse-base-url>' -- npx -y langfuse-api-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Langfuse API require an API key?
Yes. It expects LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_BASE_URL, of which 2 are secrets.
›Can I use Langfuse API as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Langfuse API in the official MCP registry?
Yes, as io.github.rodrigorjsf/langfuse-api-mcp.