Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Langfuse

MCP server by mgcrea Verified · npm:@mgcrea

Reads traces, sessions, observations, scores, metrics and prompts from Langfuse v4 deployments in events-only mode. Built for teams who need read-only access from an AI assistant, with per-project key checks.

  • Score 59
  • 0 stars
  • 28 a week
  • MIT
  • Updated

Install MCP Langfuse

Built from the published package, never by AI.

claude mcp add mcp-langfuse -- npx -y @mgcrea/mcp-langfuse

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Langfuse in Claude Code

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 mcp-langfuse block.

About

Langfuse MCP server gives an AI assistant read access to traces, sessions, observations, scores, metrics and prompts in Langfuse. It is built for Langfuse v4 deployments in events-only mode, where older endpoints return 404. The server reads the endpoints that remain, rebuilds traces from their observations and sessions from their traces, and is read-only unless LANGFUSE_ALLOW_WRITES=1 is set for the raw request tool.

It holds one key per project and reads many projects, with every data tool taking a project argument. Each key is checked against its project before any data is read, and responses name the project. Output is trimmed for the context window, with long LLM inputs cut to a chosen budget. The server suits teams running self-hosted or cloud Langfuse who want project-safe reads from an assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • langfuse_auth_statusShows each configured project, what its key resolves to, and the events-only mode.
  • langfuse_list_tracesLists traces newest first, filtered by name, user, session, tags or time.
  • langfuse_get_traceReturns one trace as a tree with usage, cost, errors and input/output.
  • langfuse_get_sessionReturns a session's traces in order, each with its input and output.
  • langfuse_list_observationsSearches observations by type, level, model, latency, text and metadata.
  • langfuse_get_observationReturns one observation in full, with an option to save it uncut to disk.
  • langfuse_list_scoresLists scores via /v3/scores with what each one is attached to.
  • langfuse_query_metricsRuns aggregates via /v2/metrics for counts, cost, tokens and latency percentiles.
  • langfuse_list_promptsLists managed prompts, their versions and labels.
  • langfuse_requestSends a raw /api/public/* call, GET-only unless writes are enabled.

What you need

  • A Langfuse instance or Langfuse Cloud account
  • Langfuse project API keys (pk-lf and sk-lf)
  • Node.js and pnpm to build the server
  • Postgres access and the Langfuse SALT, only for pnpm provision

Try asking

  • Show the failed runs in the sales project from the last 24h
  • Get the full trace tree for this trace ID with its token cost
  • Query average latency and cost per model for the last 7d

Good to know

  • Read-only by default. Writes need LANGFUSE_ALLOW_WRITES=1 and only langfuse_request sends them.
  • Langfuse has no read-only key type, so keys created by provisioning can also ingest data.
  • Provisioning writes keys straight into Langfuse's Postgres, verified against Langfuse 4.63.0.
  • With several projects, the project argument is required on every data tool, with no default.

Security check

A

No 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 MCP Langfuse

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

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.

AAA Remote 24k
Sim simstudioai
100

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.

AAA Remote 30k
Omnara omnara-ai
98

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.

AAA Remote 3.5k
strata Klavis-AI
95

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.

AAA Remote 5.8k
voicemode mbailey
95

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.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

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.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

MCP Langfuse: common questions

Does it work with Langfuse v4 events-only mode?

Yes. The server is built for v4 events-only deployments and reads only the endpoints that still work in that mode.

Can it change data in Langfuse?

It is read-only. The langfuse_request tool is GET-only unless LANGFUSE_ALLOW_WRITES=1 is set.

How does it handle several projects?

It holds one key per project and checks each key against its project. With several projects configured, every data call must name one.

How do I install MCP Langfuse?

In Claude Code run claude mcp add mcp-langfuse -- npx -y @mgcrea/mcp-langfuse. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Langfuse the official server?

MCP Langfuse is published by npm:@mgcrea from its verified domain in the official MCP Registry.

Is MCP Langfuse free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Langfuse safe to use?

It scores 59 of 100. Grades: maintenance B, 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 MCP Langfuse?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does MCP Langfuse 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.

MCP Langfuse Install

Add to stack

Loading.