MCP.so
登录

Langfuse Prompt Management MCP Server

@langfuse

关于 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.

基本信息

分类

其他

许可证

MIT

运行时

node

传输方式

stdio

发布者

langfuse

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

工具

2

List available prompts

Retrieve and compile a specific prompt

概览

What is Langfuse Prompt Management MCP Server?

A Model Context Protocol (MCP) server that integrates with Langfuse Prompt Management, enabling LLM clients like Claude Desktop to discover, retrieve, and compile Langfuse prompts through the MCP interface. It is designed for developers using Langfuse to manage prompt versions.

How to use Langfuse Prompt Management MCP Server?

Install dependencies (npm install), build the server (npm run build), then add it to your MCP client’s configuration (e.g., claude_desktop_config.json or Cursor) with your Langfuse API keys and base URL set as environment variables. The server exposes both standard MCP prompts and equivalent tools for broader client compatibility.

Key features of Langfuse Prompt Management MCP Server

  • Implements MCP Prompts specification (prompts/list, prompts/get)
  • Also provides tools (get-prompts, get-prompt) for non-prompt-capable clients
  • Transforms Langfuse text and chat prompts into MCP prompt objects
  • Compiles prompts with provided variables
  • Supports optional cursor-based pagination for listing prompts

Use cases of Langfuse Prompt Management MCP Server

  • Retrieve and compile production prompts from Langfuse inside AI chat assistants
  • Manage and iterate prompt versions without modifying client code
  • Integrate Langfuse prompt management with MCP-compatible LLM tools like Claude Desktop

FAQ from Langfuse Prompt Management MCP Server

What prompts are accessible?

Only prompts with the production label in Langfuse are returned.

What are the runtime dependencies?

Node.js is required. You need a Langfuse account with a public and secret API key.

Can I use a self-hosted Langfuse?

Yes, by setting the LANGFUSE_BASEURL environment variable to your self-hosted instance.

How does authentication work?

Authentication uses the LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY environment variables.

Does the server support chat prompts?

Yes, both Langfuse text and chat prompts are transformed into MCP prompt objects.

评论

其他 分类下的更多 MCP 服务器