1. Conduid
  2. Data
  3. langfuse/mcp-server-langfuse
MCP server · Data

langfuse/mcp-server-langfuse

Model Context Protocol (MCP) Server for Langfuse Prompt Management. This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.

73Good

Scored 2 months ago · breakdown

About langfuse/mcp-server-langfuse

langfuse/mcp-server-langfuse is an MCP server published by langfuse in the Data category: model Context Protocol (MCP) Server for Langfuse Prompt Management. This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.

The repository has 176 stars and 37 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

Claude Code
claude mcp add langfuse -- npx -y @therealsachin/langfuse-mcp
npx
npx -y @therealsachin/langfuse-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (2)

get-promptRetrieve and compile a specific prompt

Parameters not published.

get-promptsList available prompts

Parameters not published.

Ask AI

✦

Ask AI about langfuse/mcp-server-langfuse

Powered by Claude · Grounded in docs

I know everything about langfuse/mcp-server-langfuse. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.0.1v0.0.1 · 15 Feb 2025What's Changed initial release feat: add langfuse prompt management by @marcklingen in https://github.com/langfuse/mcp-server-langfuse/pull/1 Full Changelog**: https://github.com/langfuse/mcp-server-langfuse/commits/v0.0.1

README

Langfuse Prompt Management MCP Server

Model Context Protocol (MCP) Server for Langfuse Prompt Management. This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.

Demo

Quick demo of Langfuse Prompts MCP in Claude Desktop (unmute for voice-over explanations):

https://github.com/user-attachments/assets/61da79af-07c2-4f69-b28c-ca7c6e606405

Features

MCP Prompt

This server implements the MCP Prompts specification for prompt discovery and retrieval.

  • prompts/list: List all available prompts

    • Optional cursor-based pagination
    • Returns prompt names and their required arguments, limitation: all arguments are assumed to be optional and do not include descriptions as variables do not have specification in Langfuse
    • Includes next cursor for pagination if there's more than 1 page of prompts
  • prompts/get: Get a specific prompt

    • Transforms Langfuse prompts (text and chat) into MCP prompt objects
    • Compiles prompt with provided variables

Tools

To increase compatibility with other MCP clients that do not support the prompt capability, the server also exports tools that replicate the functionality of the MCP Prompts.

  • get-prompts: List available prompts

    • Optional cursor parameter for pagination
    • Returns a list of prompts with their arguments
  • get-prompt: Retrieve and compile a specific prompt

    • Required name parameter: Name of the prompt to retrieve
    • Optional arguments parameter: JSON object with prompt variables

Development

npm install

# build current file
npm run build

# test in mcp inspector
npx @modelcontextprotocol/inspector node ./build/index.js

Usage

Step 1: Build

npm install
npm run build

Step 2: Add the server to your MCP servers:

Claude Desktop

Configure Claude for Desktop by editing claude_desktop_config.json

{
  "mcpServers": {
    "langfuse": {
      "command": "node",
      "args": ["<absolute-path>/build/index.js"],
      "env": {
        "LANGFUSE_PUBLIC_KEY": "your-public-key",
        "LANGFUSE_SECRET_KEY": "your-secret-key",
        "LANGFUSE_BASEURL": "https://cloud.langfuse.com"
      }
    }
  }
}

Make sure to replace the environment variables with your actual Langfuse API keys. The server will now be available to use in Claude Desktop.

Cursor

Add new server to Cursor:

  • Name: Langfuse Prompts
  • Type: command
  • Command:
    LANGFUSE_PUBLIC_KEY="your-public-key" LANGFUSE_SECRET_KEY="your-secret-key" LANGFUSE_BASEURL="https://cloud.langfuse.com" node absolute-path/build/index.js
    

Limitations

The MCP Server is a work in progress and has some limitations:

  • Only prompts with a production label in Langfuse are returned
  • All arguments are assumed to be optional and do not include descriptions as variables do not have specification in Langfuse
  • List operations require fetching each prompt individually in the background to extract the arguments, this works but is not efficient

Contributions are welcome! Please open an issue or a PR (repo) if you have any suggestions or feedback.

README fetched from the repository 7 hours ago. The original is authoritative.

Questions

About langfuse/mcp-server-langfuse

How do I install langfuse/mcp-server-langfuse?

Run claude mcp add langfuse -- npx -y @therealsachin/langfuse-mcp, then add the server to your MCP client's configuration.

Is langfuse/mcp-server-langfuse safe to use with an AI agent?

Its trust score is 73 out of 100 (good). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is langfuse/mcp-server-langfuse still maintained?

The last commit was a year ago and 14 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.