Langfuse Prompt Management MCP Server
by Langfuse
This server provides a Model Context Protocol (MCP) interface for accessing and managing Langfuse prompts. It allows you to integrate your Langfuse prompts with MCP-compatible applications like Claude Desktop and Cursor.
Last updated: N/A
What is Langfuse Prompt Management MCP Server?
The Langfuse Prompt Management MCP Server is an implementation of the Model Context Protocol for Langfuse prompts. It enables applications that support MCP to discover, retrieve, and compile prompts stored in Langfuse.
How to use Langfuse Prompt Management MCP Server?
First, build the server using npm install
and npm run build
. Then, configure your MCP client (e.g., Claude Desktop or Cursor) to connect to the server by providing the server's command and environment variables (Langfuse API keys). The README provides detailed instructions for both Claude Desktop and Cursor.
Key features of Langfuse Prompt Management MCP Server
Implements MCP Prompts specification for prompt discovery and retrieval.
Provides
prompts/list
endpoint for listing available prompts with cursor-based pagination.Offers
prompts/get
endpoint for retrieving and compiling specific prompts with variables.Exports tools (
get-prompts
,get-prompt
) for compatibility with MCP clients that don't support prompt capability.
Use cases of Langfuse Prompt Management MCP Server
Integrating Langfuse prompts into Claude Desktop for enhanced prompt management.
Using Langfuse prompts within Cursor for code generation and assistance.
Centralized prompt management and versioning through Langfuse.
Accessing and utilizing Langfuse prompts in any MCP-compatible application.
FAQ from Langfuse Prompt Management MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for interacting with language models and related services.
What is Langfuse?
What is Langfuse?
Langfuse is a platform for prompt management, experimentation, and monitoring.
What are the limitations of this server?
What are the limitations of this server?
Currently, only prompts with the 'production' label are returned. All arguments are assumed to be optional, and descriptions for variables are not included. List operations are not fully optimized.
How can I contribute?
How can I contribute?
Contributions are welcome! Open an issue or a pull request on the GitHub repository.
What environment variables are required?
What environment variables are required?
The server requires LANGFUSE_PUBLIC_KEY
, LANGFUSE_SECRET_KEY
, and LANGFUSE_BASEURL
environment variables to connect to your Langfuse account.