Langfuse Prompt Management MCP Server
OfficialLangfuse プロンプト管理 MCP サーバー
Langfuseプロンプト管理用のモデルコンテキストプロトコル(MCP)サーバー。このサーバーを使用すると、モデルコンテキストプロトコルを介してLangfuseプロンプトにアクセスし、管理できます。
デモ
Claude Desktop での Langfuse Prompts MCP の簡単なデモ (音声による説明はミュート解除してください):
https://github.com/user-attachments/assets/61da79af-07c2-4f69-b28c-ca7c6e606405
Related MCP server: Langfuse Prompt Management MCP Server
特徴
MCPプロンプト
このサーバーは、プロンプトの検出と取得のためのMCP プロンプト仕様を実装しています。
prompts/list: 利用可能なすべてのプロンプトを一覧表示するオプションのカーソルベースのページ区切り
プロンプト名とその必須引数を返します。制限:すべての引数はオプションとみなされ、変数にはLangfuseの仕様がないため説明は含まれません。
プロンプトが 1 ページ以上ある場合は、ページ区切りの次のカーソルを含めます。
prompts/get: 特定のプロンプトを取得するLangfuse プロンプト (テキストとチャット) を MCP プロンプト オブジェクトに変換します
提供された変数を使用してプロンプトをコンパイルします
ツール
プロンプト機能をサポートしていない他の MCP クライアントとの互換性を高めるために、サーバーは MCP プロンプトの機能を複製するツールもエクスポートします。
get-prompts: 利用可能なプロンプトを一覧表示するページ区切りのオプションの
cursorパラメータプロンプトとその引数のリストを返します
get-prompt: 特定のプロンプトを取得してコンパイルする必須の
nameパラメータ: 取得するプロンプトの名前オプションの
argumentsパラメータ: プロンプト変数を含むJSONオブジェクト
発達
npm install
# build current file
npm run build
# test in mcp inspector
npx @modelcontextprotocol/inspector node ./build/index.js使用法
ステップ1: 構築
npm install
npm run buildステップ 2: サーバーを MCP サーバーに追加します。
クロードデスクトップ
claude_desktop_config.jsonを編集して Claude for Desktop を設定します。
{
"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"
}
}
}
}環境変数を実際のLangfuse APIキーに置き換えてください。これで、Claude Desktopでサーバーが使用できるようになります。
カーソル
カーソルに新しいサーバーを追加します:
名前:
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 サーバーは現在開発中であり、いくつかの制限があります。
Langfuse の
productionラベルを持つプロンプトのみが返されますすべての引数はオプションであると想定されており、変数にはLangfuseの仕様がないため説明は含まれません。
リスト操作では、引数を抽出するためにバックグラウンドで各プロンプトを個別に取得する必要がありますが、これは機能しますが効率的ではありません。
貢献を歓迎します!ご提案やフィードバックがある場合は、問題または PR (リポジトリ) を開いてください。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your prompt library in any MCP client: list, fetch, save and version prompt templates.
Your versioned prompt library: search, read, save and version prompts from Claude Code.
Manage, version, and publish LLM prompts with blocks, variables, and evaluations.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables users to access and manage Langfuse prompts through the Model Context Protocol, including listing prompts, retrieving and compiling them with variables, and using equivalent tools for clients without prompt support.-
- FlicenseNot gradedqualityAmaintenanceEnables listing, retrieving, and compiling Langfuse prompts with variables through the Model Context Protocol, including tools for clients without native prompt support.-
- AlicenseNot gradedqualityAmaintenanceEnables users to access and manage Langfuse prompts through the Model Context Protocol, including listing available prompts and retrieving prompts compiled with provided variables.MIT
- AlicenseNot gradedqualityAmaintenanceEnables users to access and manage Langfuse prompts through the Model Context Protocol, including listing prompts, retrieving and compiling them with variables, and using equivalent tools for clients without prompt support.MIT