This repository provides an MCP server for Langfuse Prompt Management, enabling access and management of prompts through the Model Context Protocol. It supports prompt listing, retrieval, and compilation with variables,
This repository hosts the Model Context Protocol (MCP) Server for Langfuse Prompt Management, enabling access and management of Langfuse prompts via the MCP. It implements the MCP Prompts specification for prompt discovery and retrieval, offering endpoints like prompts/list
(with cursor-based pagination) and prompts/get
(compiling prompts with variables).
For broader compatibility, it also provides tools replicating MCP Prompts functionality: get-prompts
(listing prompts with pagination) and get-prompt
(retrieving and compiling prompts with a name and optional arguments).
Usage involves building the server using npm install
and npm run build
, then configuring MCP clients like Claude Desktop or Cursor by specifying the server's command and Langfuse API keys as environment variables.
Limitations include only returning prompts with a production
label, assuming all arguments are optional, and inefficient list operations. Contributions are encouraged.
langfuse/mcp-server-langfuse
February 15, 2025
March 28, 2025
TypeScript