Langfuse プロンプト管理 MCP サーバー
Langfuseプロンプト管理用のモデルコンテキストプロトコル(MCP)サーバー。このサーバーを使用すると、モデルコンテキストプロトコルを介してLangfuseプロンプトにアクセスし、管理できます。
デモ
Claude Desktop での Langfuse Prompts MCP の簡単なデモ (音声による説明はミュート解除してください):
https://github.com/user-attachments/assets/61da79af-07c2-4f69-b28c-ca7c6e606405
特徴
MCPプロンプト
このサーバーは、プロンプトの検出と取得のためのMCP プロンプト仕様を実装しています。
prompts/list
: 利用可能なすべてのプロンプトを一覧表示する- オプションのカーソルベースのページ区切り
- プロンプト名とその必須引数を返します。制限:すべての引数はオプションとみなされ、変数にはLangfuseの仕様がないため説明は含まれません。
- プロンプトが 1 ページ以上ある場合は、ページ区切りの次のカーソルを含めます。
prompts/get
: 特定のプロンプトを取得する- Langfuse プロンプト (テキストとチャット) を MCP プロンプト オブジェクトに変換します
- 提供された変数を使用してプロンプトをコンパイルします
ツール
プロンプト機能をサポートしていない他の MCP クライアントとの互換性を高めるために、サーバーは MCP プロンプトの機能を複製するツールもエクスポートします。
get-prompts
: 利用可能なプロンプトを一覧表示する- ページ区切りのオプションの
cursor
パラメータ - プロンプトとその引数のリストを返します
- ページ区切りのオプションの
get-prompt
: 特定のプロンプトを取得してコンパイルする- 必須の
name
パラメータ: 取得するプロンプトの名前 - オプションの
arguments
パラメータ: プロンプト変数を含むJSONオブジェクト
- 必須の
発達
使用法
ステップ1: 構築
ステップ 2: サーバーを MCP サーバーに追加します。
クロードデスクトップ
claude_desktop_config.json
を編集して Claude for Desktop を設定します。
環境変数を実際のLangfuse APIキーに置き換えてください。これで、Claude Desktopでサーバーが使用できるようになります。
カーソル
カーソルに新しいサーバーを追加します:
- 名前:
Langfuse Prompts
- タイプ:
command
- 指示:
制限事項
MCP サーバーは現在開発中であり、いくつかの制限があります。
- Langfuse の
production
ラベルを持つプロンプトのみが返されます - すべての引数はオプションであると想定されており、変数にはLangfuseの仕様がないため説明は含まれません。
- リスト操作では、引数を抽出するためにバックグラウンドで各プロンプトを個別に取得する必要がありますが、これは機能しますが効率的ではありません。
貢献を歓迎します!ご提案やフィードバックがある場合は、問題または PR (リポジトリ) を開いてください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
モデル コンテキスト プロトコルを通じて Langfuse プロンプトのアクセスと管理を容易にし、Claude Desktop や Cursor などのクライアント内でのプロンプトの検出、取得、統合を可能にします。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA powerful Model Context Protocol framework that extends Cursor IDE with tools for web content retrieval, PDF processing, and Word document parsing.Last updated -812PythonMIT License
- -securityAlicense-qualityA custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.Last updated -23PythonApache 2.0
- -securityFlicense-qualityEnables access to prompt templates managed in MLflow through Claude Desktop, allowing users to instruct Claude with saved templates for repetitive tasks or common workflows.Last updated -2TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server for managing prompt templates as markdown files with YAML frontmatter, allowing users and LLMs to easily add, retrieve, and manage prompts.Last updated -568TypeScriptMIT License