MCP Server Langfuse logo

MCP Server Langfuse

by langfuse

Discovers Langfuse production prompts and compiles selected prompts for MCP clients.

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 10/27/2026, 12:15:31 AM

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 exposes Langfuse Prompt Management through MCP prompt resources and equivalent tools. It lists prompts labeled production, retrieves a named prompt, and compiles it with supplied variables. Reach for langfuse/mcp-server-langfuse MCP server when an MCP client needs access to centrally managed Langfuse prompts, especially clients that do not support MCP prompts but can call tools.

Use cases

  • Discover production prompts from Langfuse in an MCP client
  • Retrieve a named Langfuse prompt with runtime variables
  • Compile text or chat prompts before using them in an agent workflow
  • Expose Langfuse prompts to clients that only support MCP tools

Key features

  • Lists production-labeled Langfuse prompts
  • Retrieves and compiles text and chat prompts
  • Supports cursor-based pagination
  • Implements MCP prompt discovery and retrieval
  • Provides get-prompts and get-prompt tool equivalents

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.

17/17 checks healthy over the last 78d

What it can do

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

Handles credentials · 1Makes network requests · 1Read-only tools · 4

Observed 2026-10-25 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.
Tools exposed4Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Langfuse works

What langfuse/mcp-server-langfuse MCP server does

langfuse/mcp-server-langfuse MCP server connects an MCP client to prompts stored in Langfuse Prompt Management. It supports prompt discovery and retrieval for both text and chat prompts, exposing the results through the MCP Prompts specification and through tools for clients without prompt-capability support.

The server is focused on reading and compiling prompts rather than editing them. Listing returns available prompt names and their arguments. Retrieval selects a prompt by name and applies the variables supplied by the client.

How it works

The MCP prompt interface provides prompts/list for discovery and prompts/get for retrieving a prompt. The server also exposes matching get-prompts and get-prompt tools. The tool form of retrieval requires a name and accepts an optional JSON arguments object containing prompt variables.

List operations can use a cursor for pagination. To determine the arguments associated with each prompt, the server fetches prompts individually in the background. Retrieved Langfuse text and chat prompts are transformed into MCP prompt objects, and supplied variables are used during compilation.

Only prompts carrying the production label are returned. The implementation treats all discovered arguments as optional, and argument descriptions are not included because Langfuse variables do not provide the specification required for them.

Setup and configuration

The repository is built locally with npm. Run npm install, then npm run build; the resulting entry point is build/index.js. An MCP client should launch that file with Node.js.

The server requires three environment variables: LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASEURL. The first two authenticate requests to Langfuse, while the base URL identifies the Langfuse endpoint.

For Claude Desktop, add a server entry whose command is node, whose argument points to the built build/index.js, and whose environment contains the Langfuse credentials and base URL. Cursor can also run the server as a command with the same environment variables and Node.js entry point.

Tools and capabilities

  • get-prompts lists available production prompts and supports an optional pagination cursor.
  • get-prompt retrieves and compiles one prompt using its required name and optional JSON variables.
  • prompts/list provides MCP-native prompt discovery with pagination support.
  • prompts/get provides MCP-native prompt retrieval for text and chat prompts.

The tool endpoints mirror the MCP prompt operations, which gives clients an alternative when they do not implement the prompt capability directly.

Limitations and notes

langfuse/mcp-server-langfuse MCP server is described as a work in progress. Prompt listing is less efficient because the server retrieves prompts individually to extract their arguments. Returned arguments are marked optional, and no variable descriptions are supplied. Prompt visibility is also restricted to entries labeled production; prompts without that label will not appear in discovery or retrieval results.

Reviews

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

Frequently Asked Questions about MCP Server Langfuse

Clone or download the repository, run npm install, and build it with npm run build. Configure the MCP client to launch node with the resulting build/index.js file.

Yes. The README provides a Claude Desktop configuration using Node.js, the built server entry point, and Langfuse environment variables.

Yes. Cursor is documented as a supported command-based configuration, using Node.js and the built server entry point.

It returns only Langfuse prompts with a production label.

It needs LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASEURL.

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>