Langfuse MCP
MCP server by hugoles Verified · npm:langfuse-mcp
Langfuse MCP exposes the Langfuse REST API as MCP tools. It lets Claude or another MCP client query traces, observations, scores, prompts, datasets and metrics. It is for teams that use Langfuse and want to inspect their data during a conversation.
Install Langfuse MCP
Built from the published package, never by AI.
claude mcp add langfuse-mcp -- npx -y langfuse-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"langfuse-mcp": {
"args": [
"-y",
"langfuse-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"langfuse-mcp": {
"args": [
"-y",
"langfuse-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"langfuse-mcp": {
"args": [
"-y",
"langfuse-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add langfuse-mcp -- npx -y langfuse-mcp{
"mcpServers": {
"langfuse-mcp": {
"args": [
"-y",
"langfuse-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add langfuse-mcp npx -y langfuse-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-mcp block.
About
Langfuse MCP is an MCP server that exposes the Langfuse REST API as tools. It lets Claude or any other MCP client query traces, observations, sessions, scores, prompts, datasets and metrics from inside a conversation. The source lists 27 tools in total, grouped under traces and observations, sessions, scores, prompts, datasets, and metrics and misc.
The server speaks MCP over stdio and can be started with npx or a global npm install. It reads a public key, a secret key and a base URL from environment variables, then calls the Langfuse Public API over HTTPS using Basic Auth. All tools are read-only. The project suits developers and teams that already use Langfuse and want to investigate traces or check prompt versions without leaving their assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
listTracesList traces with filters. Returns summary metadata.getTraceFetch a single trace by id including the full observation tree.listObservationsList spans, generations, and events with filters.listSessionsList sessions within a time range.listScoresList scores with filters.listPromptsList prompt definitions, optionally filtered by name, label, or tag.getPromptFetch a prompt by name, optionally pinned to a specific version or label.listDatasetsList datasets configured in Langfuse.getMetricsRun a custom metrics query (counts, latency, cost, token usage).getDailyMetricsDaily aggregated usage, cost, and count metrics.
What you need
- Node.js 20 or newer
- A Langfuse project with API keys
- A Langfuse Cloud account (EU or US) or a self-hosted Langfuse instance
Try asking
- Why did trace abc123 fail? Walk me through its observations.
- List the 5 most recent traces with level=ERROR.
- Show me the production version of prompt customer-support-v2.
Good to know
- All tools are read-only.
- API keys are scoped to a single project and a single region.
- Self-hosted base URLs must not include a trailing path such as /api.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Langfuse MCP
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Langfuse MCP: common questions
Can this MCP server change data in Langfuse?
No. The source states that all tools are read-only and only query the Langfuse Public API.
Why do I get a 401 Unauthorized error?
The source says the most common cause is a region mismatch. EU and US Langfuse Cloud are separate accounts, so LANGFUSE_BASE_URL must match where the keys were created.
Which AI clients can use Langfuse MCP?
The source gives setup examples for Claude Desktop, Claude Code, Cursor, Cline, Continue and Windsurf, and says any MCP client that can launch a stdio subprocess can use it.
How do I install Langfuse MCP?
In Claude Code run claude mcp add langfuse-mcp -- npx -y langfuse-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Langfuse MCP the official server?
Langfuse MCP is published by npm:langfuse-mcp from its verified domain in the official MCP Registry.
Is Langfuse MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Langfuse MCP safe to use?
It scores 67 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Langfuse MCP?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Langfuse MCP 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.
