MCP Server Langfuse logo

MCP Server Langfuse

by langfuse

Access, discover, compile, and manage Langfuse prompts through MCP, with documentation search and retrieval tools.

Install MCP Server Langfuse

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://langfuse.com/api/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Hosted endpointLive · TodayLive Remote EndpointOur automated health check connected to this remote MCP endpoint successfully.Last checked 11/8/2026, 8:30:33 PM

Clients with native remote MCP support can connect directly to this URL.

Remote endpoint
https://langfuse.com/api/mcp

Overview

langfuse/mcp-server-langfuse MCP server connects MCP clients to Langfuse Prompt Management and exposes prompts through both the MCP Prompts capability and equivalent tools. It lists available production-labeled prompts, retrieves individual prompts, and compiles them with supplied variables. Additional tools search Langfuse documentation, fetch specific documentation pages, retrieve the documentation index, and submit permission-based feedback. Reach for it when an agent needs governed Langfuse prompts or current Langfuse documentation from a client such as Claude Desktop or Cursor.

Use cases

  • Discover production-labeled Langfuse prompts from an MCP client
  • Retrieve and compile a named prompt with runtime variables
  • Search Langfuse documentation for broad implementation questions
  • Fetch exact Langfuse documentation pages and code samples
  • Submit user-approved feedback to the Langfuse team

Key features

  • MCP Prompts discovery and retrieval
  • Cursor-based prompt pagination
  • Prompt compilation with JSON variables
  • Semantic Langfuse documentation search
  • Raw documentation page retrieval
  • Explicit-consent feedback submission

Tools4

What MCP Server Langfuse lets your agent do. Expand a tool for its parameters.

Verified live~888 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

23/23 checks healthy over the last 90d

What it can do

From the 4 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 1Read-only tools · 4
Tool definitions changed on 2026-10-31. Review them if you approved this server earlier.

Observed 2026-10-31 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 0Low 0

Scanned 8/23/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars176Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Tools exposed4Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Langfuse works

What langfuse/mcp-server-langfuse MCP server does

The langfuse/mcp-server-langfuse MCP server makes Langfuse Prompt Management available to MCP clients. It supports prompt discovery through the MCP Prompts specification and also provides tool equivalents for clients that do not implement prompt capability support.

Prompt listings include names and arguments, while retrieval returns a selected Langfuse text or chat prompt compiled with the variables supplied by the client. Only prompts carrying the production label are exposed.

The server also provides access to Langfuse documentation. Agents can obtain a high-level index from llms.txt, run semantic search across the documentation, or fetch the raw Markdown for a specific documentation path or full Langfuse URL. A separate feedback tool submits explicit, user-approved feedback to the Langfuse team.

How it works

After the server is built, an MCP client starts build/index.js as a Node.js command. The process uses Langfuse credentials and a base URL from environment variables to access prompt data. MCP prompt requests are translated into Langfuse prompt operations, and the compatibility tools mirror the same list and retrieval behavior.

prompts/list and get-prompts support cursor-based pagination. Listing prompts requires the server to retrieve prompts individually in the background so it can determine their arguments. prompts/get and get-prompt accept a prompt name; the tool form can also receive a JSON object containing prompt variables.

For documentation questions, semantic search is intended for broader topics, while the page fetch tool is suited to a known documentation page or code sample. Changelog pages are historical references rather than implementation guidance. Feedback requires permission before invocation, and the exact payload should be shown to the user first.

Setup and configuration

Install dependencies and build the server:

Terminal
npm install
npm run build

Run the resulting entry point with these environment variables:

  • LANGFUSE_PUBLIC_KEY: Langfuse public API key.
  • LANGFUSE_SECRET_KEY: Langfuse secret API key.
  • LANGFUSE_BASEURL: Langfuse instance URL, such as https://cloud.langfuse.com.

For Claude Desktop, register a server whose command is node and whose argument is the absolute path to build/index.js, then provide the three variables in its env object. Cursor can run the same Node command with the variables set in the command line. The MCP Inspector can be used with npx @modelcontextprotocol/inspector node ./build/index.js.

Tools and capabilities

  • prompts/list: Enumerates available prompts with optional cursor pagination.
  • prompts/get: Retrieves and compiles a named Langfuse prompt.
  • get-prompts: Tool-based prompt listing for clients without MCP prompt support.
  • get-prompt: Retrieves a named prompt with optional JSON arguments.
  • getLangfuseOverview: Downloads the Langfuse llms.txt documentation index.
  • searchLangfuseDocs: Performs semantic search over Langfuse documentation and returns a concise synthesized answer.
  • getLangfuseDocsPage: Fetches raw Markdown for a Langfuse documentation page or URL.
  • submitFeedback: Sends explicitly approved feedback, with user-controlled email inclusion when requested.

Limitations and notes

Only prompts labeled production in Langfuse appear in results. Prompt arguments are treated as optional, and argument descriptions are unavailable because Langfuse does not define them in the relevant variable specification. Listing is functional but inefficient because each prompt must be fetched separately to extract its arguments.

When submitting feedback, do not include secrets, credentials, customer or project data, trace payloads, or unrelated context. If the user requests a reply, their explicitly supplied email address must be included in the feedback text and displayed in the exact payload preview.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Langfuse

langfuse/mcp-server-langfuse is an MCP server that connects MCP clients to Langfuse Prompt Management. Its main tools list and compile production prompts, search Langfuse documentation, fetch documentation pages, retrieve the documentation index, and submit explicitly approved feedback.

Install it by running `npm install` followed by `npm run build`, then configure your MCP client to start `node` with the absolute path to `build/index.js`. Set `LANGFUSE_PUBLIC_KEY`, `LANGFUSE_SECRET_KEY`, and `LANGFUSE_BASEURL` in the server environment.

Yes, langfuse/mcp-server-langfuse works with Cursor as a command-type MCP server. Add the server with a command that sets the three Langfuse environment variables and runs `node absolute-path/build/index.js`.

Only Langfuse prompts with the `production` label are returned. Prompts without that label will not appear in MCP prompt listings or the equivalent `get-prompts` tool results.

It accepts prompt variables as a JSON object when retrieving a prompt and compiles the selected prompt with them. Listed arguments are treated as optional and do not include descriptions, and listing prompts requires individual background fetches to extract those arguments.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server Langfuse AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/langfuse-mcp-server-langfuse?style=directory)](https://allmcps.com/mcp/langfuse-mcp-server-langfuse)
HTML Embed
<a href="https://allmcps.com/mcp/langfuse-mcp-server-langfuse"><img src="https://allmcps.com/api/badge/langfuse-mcp-server-langfuse?style=directory" alt="MCP Server Langfuse on AllMCPs" /></a>