Langfuse Prompt 管理 MCP 服务器
为 Langfuse Prompt 管理提供 Model Context Protocol (MCP) 支持的服务器。
快速入门
安装依赖并构建
运行以下命令:
npm install
npm run build
配置环境变量
- 在
claude_desktop_config.json
文件中添加配置:{ "mcpServers": { "langfuse": { "command": "node", "args": ["<绝对路径>/build/index.js"], "env": { "LANGFUSE_PUBLIC_KEY": "你的公钥", "LANGFUSE_SECRET_KEY": "你的私钥", "LANGFUSE_BASEURL": "https://cloud.langfuse.com" } } } }
- 替换环境变量为你自己的 Langfuse API 密钥。
使用
- 启动后可以在 Claude Desktop 或 Cursor 中使用该服务器。