Langfuse API
CommunityMCP server by rodrigorjsf · updated · ★ 0
Langfuse public API (Cloud and self-hosted): traces, prompts, datasets and gated writes. Langfuse API is a community project by rodrigorjsf, not verified by a company domain.
Last commit 3 days ago
Apache-2.0: permissive, fine for commercial use
Clear description, published package or server URL, original repository
Not checked yet. What we check
What you need
| Setting | Needed | What it is |
|---|---|---|
LANGFUSE_PUBLIC_KEYEnvironment variable, secret | Required | The project's public key (pk-lf-...). |
LANGFUSE_SECRET_KEYEnvironment variable, secret | Required | The project's secret key (sk-lf-...). |
LANGFUSE_BASE_URLEnvironment variable | Required | Your Langfuse host, e.g. https://cloud.langfuse.com; https only, http only for localhost. |
LANGFUSE_CA_CERTEnvironment variable | Optional | Optional PEM file with your corporate or private CA, added to the system trust store. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install Langfuse API
Built from the published package, never by AIclaude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY=YOUR_LANGFUSE_PUBLIC_KEY -e LANGFUSE_SECRET_KEY=YOUR_LANGFUSE_SECRET_KEY -e LANGFUSE_BASE_URL=YOUR_LANGFUSE_BASE_URL -- npx -y langfuse-api-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "YOUR_LANGFUSE_PUBLIC_KEY",
"LANGFUSE_SECRET_KEY": "YOUR_LANGFUSE_SECRET_KEY",
"LANGFUSE_BASE_URL": "YOUR_LANGFUSE_BASE_URL"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "YOUR_LANGFUSE_PUBLIC_KEY",
"LANGFUSE_SECRET_KEY": "YOUR_LANGFUSE_SECRET_KEY",
"LANGFUSE_BASE_URL": "YOUR_LANGFUSE_BASE_URL"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "YOUR_LANGFUSE_PUBLIC_KEY",
"LANGFUSE_SECRET_KEY": "YOUR_LANGFUSE_SECRET_KEY",
"LANGFUSE_BASE_URL": "YOUR_LANGFUSE_BASE_URL"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add langfuse-api --env LANGFUSE_PUBLIC_KEY=YOUR_LANGFUSE_PUBLIC_KEY --env LANGFUSE_SECRET_KEY=YOUR_LANGFUSE_SECRET_KEY --env LANGFUSE_BASE_URL=YOUR_LANGFUSE_BASE_URL -- npx -y langfuse-api-mcp{
"mcpServers": {
"langfuse-api": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "YOUR_LANGFUSE_PUBLIC_KEY",
"LANGFUSE_SECRET_KEY": "YOUR_LANGFUSE_SECRET_KEY",
"LANGFUSE_BASE_URL": "YOUR_LANGFUSE_BASE_URL"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add langfuse-api npx -y langfuse-api-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the langfuse-api block.
Alternatives to Langfuse API
All alternatives →Start Claude Code and Codex agents the person can watch, wait for them and read their answers.
Publish and discover MCP servers via the official MCP Registry. Powered by HAPI MCP server.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
Give your AI agents trusted access to the full Postman platform.
Agent-Native design tool - create and edit visual designs with agent assistance
Langfuse API: common questions
How do I install Langfuse API?
In Claude Code run claude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY=YOUR_LANGFUSE_PUBLIC_KEY -e LANGFUSE_SECRET_KEY=YOUR_LANGFUSE_SECRET_KEY -e LANGFUSE_BASE_URL=YOUR_LANGFUSE_BASE_URL -- npx -y langfuse-api-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Langfuse API the official server?
Langfuse API is a community project by rodrigorjsf, not verified by a company domain.
Is Langfuse API free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Langfuse API safe to use?
It scores 30 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to Langfuse API?
Similar MCP servers: Harness, MCP Registry Server, ref-tools-ref-tools-mcp, Microsoft Learn MCP.
Does Langfuse API work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
