Langfuse Prompt Management MCP Server

by MCP-Mirror

264 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server that lets you access and manage your Langfuse prompts directly from MCP-compatible clients like Claude Desktop and Cursor. It bridges Langfuse’s prompt management system with the MCP ecosystem for developers.

Details

Author
MCP-Mirror
Downloads
264
Categories
Other

- Implements MCP Prompts specification for prompt discovery and retrieval.
- prompts/list with optional cursor‑based pagination.
- prompts/get transforms Langfuse prompts (text and chat) into MCP prompt objects.
- Exports tools (get-prompts, get-prompt) for clients without prompt capability.
- All prompts are compiled with provided variables.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Langfuse Prompt Management MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install and build with npm install && npm run build, then add the server to your MCP client configuration (e.g., claude_desktop_config.json) with the environment variables LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASEURL.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "langfuse prompt management mcp server": {
            "langfuse_mcp-server-langfuse": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "node",
                    "./build/index.js"
                ]
            }
        }
    }
}

McpServers

{
    "langfuse_mcp-server-langfuse": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "node",
            "./build/index.js"
        ]
    }
}

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

```bash
npm install

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.