Skip to main content
Glama

Langfuse Prompt Management MCP Server

Official
by langfuse

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オブジェクト

発達

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 (リポジトリ) を開いてください。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

モデル コンテキスト プロトコルを通じて Langfuse プロンプトのアクセスと管理を容易にし、Claude Desktop や Cursor などのクライアント内でのプロンプトの検出、取得、統合を可能にします。

  1. デモ
    1. 特徴
      1. MCPプロンプト
      2. ツール
    2. 発達
      1. 使用法
        1. ステップ1: 構築
        2. ステップ 2: サーバーを MCP サーバーに追加します。
      2. 制限事項

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Enables creation, management, and templating of prompts through a simplified SOLID architecture, allowing users to organize prompts by category and fill in templates at runtime.
          Last updated -
          6
          1,385
          6
          TypeScript
          MIT License
          • Apple
          • Linux
        • A
          security
          A
          license
          A
          quality
          A powerful Model Context Protocol framework that extends Cursor IDE with tools for web content retrieval, PDF processing, and Word document parsing.
          Last updated -
          8
          9
          Python
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          Connects Fledge functionality to Cursor AI, allowing interaction with Fledge instances via natural language commands.
          Last updated -
          Python
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/langfuse/mcp-server-langfuse'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server