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指示:
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 (リポジトリ) を開いてください。
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
- Asecurity-licenseAqualityA powerful Model Context Protocol framework that extends Cursor IDE with tools for web content retrieval, PDF processing, and Word document parsing.Last updated -813MIT License
- -security-license-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 -24Apache 2.0
- -security-license-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 -2
- Asecurity-licenseAqualityA 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 -529MIT License