Langfuse 提示管理 MCP 服务器

Langfuse 提示管理 MCP 服务器

为 Langfuse 提示管理实现的模型上下文协议 (MCP) 服务器,支持提示发现和管理。

快速入门

安装与构建

  1. 克隆仓库并安装依赖: npm install
  2. 构建项目: npm run build

使用方法

配置 Claude Desktop

编辑 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"
      }
    }
  }
}

配置 Cursor

在 Cursor 中添加新服务器:

  • 名称:Langfuse Prompts
  • 类型: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

功能

  • 支持列出和获取提示
  • 兼容工具以提高对其他 MCP 客户端的支持