
Langfuse Prompt Management MCP Server
OfficialAccess and manage your Langfuse prompts through the Model Context Protocol.
Add to your client
Copy the config for your MCP client and paste it into its config file.
npm install && npm run buildPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"langfuse-prompt-management-mcp-server": {
"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"
}
}
}
}Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf
Before you start
- Node.js (to run the built server with `node`)
- A Langfuse account with public and secret API keys
- Build the server locally with `npm install` and `npm run build`
About Langfuse Prompt Management MCP Server
An MCP server for Langfuse Prompt Management. It implements the MCP Prompts specification for prompt discovery and retrieval (prompts/list and prompts/get), transforming Langfuse text and chat prompts into MCP prompt objects and compiling them with provided variables. For clients that do not support the prompt capability, it also exposes equivalent tools (get-prompts and get-prompt).
Tools & capabilities (2)
get-promptsList available prompts. Optional `cursor` parameter for pagination. Returns a list of prompts with their arguments.
get-promptRetrieve and compile a specific prompt. Required `name` parameter (name of the prompt to retrieve) and optional `arguments` parameter (a JSON object with prompt variables).
When to use it
- Discover and list prompts managed in Langfuse from an MCP client
- Retrieve and compile a Langfuse prompt with runtime variables
- Use centrally managed Langfuse prompts inside Claude Desktop, Cursor, and other MCP clients
Security notes
Requires your Langfuse public and secret API keys, passed via the LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY environment variables. The secret key grants access to your Langfuse project's prompts; keep it out of source control.
Langfuse Prompt Management MCP Server FAQ
Which prompts are returned?
Only prompts with a `production` label in Langfuse are returned.
Are prompt arguments described?
All arguments are assumed to be optional and do not include descriptions, because variables do not have a specification in Langfuse.
How do I use it with Cursor?
Add a new server in Cursor of type `command`, with the command running `node absolute-path/build/index.js` and the LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASEURL environment variables set inline.
Alternatives to Langfuse Prompt Management MCP Server
Compare all alternatives →Official MCP server providing persistent, file-backed knowledge-graph memory across sessions.
Structured step-by-step reasoning tool for breaking problems into revisable thought sequences.
Fully managed remote server for AWS docs, blogs, What's-New and Well-Architected guidance — no key.
Compare Langfuse Prompt Management MCP Server with: