Model Context Protocol (MCP) Server for Langfuse Prompt Management. This server allows you to access and manage your Langfuse prompts through the Model Context Protocol. Quick demo of Langfuse Prompts MCP in Claude Desktop (unmute for voice-over explanations): This server implements the MCP Prompts specification for prompt discovery and retrieval. - prompts/list: List all available prompts - Optio
Add this skill
npx mdskills install langfuse/mcp-server-langfuseWell-documented MCP server with clear tool descriptions and comprehensive setup instructions
1# Langfuse Prompt Management MCP Server23[Model Context Protocol](https://github.com/modelcontextprotocol) (MCP) Server for [Langfuse Prompt Management](https://langfuse.com/docs/prompts/get-started). This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.45## Demo67Quick demo of Langfuse Prompts MCP in Claude Desktop (_unmute for voice-over explanations_):89https://github.com/user-attachments/assets/61da79af-07c2-4f69-b28c-ca7c6e6064051011## Features1213### MCP Prompt1415This server implements the [MCP Prompts specification](https://modelcontextprotocol.io/docs/concepts/prompts) for prompt discovery and retrieval.1617- `prompts/list`: List all available prompts1819 - Optional cursor-based pagination20 - Returns prompt names and their required arguments, limitation: all arguments are assumed to be optional and do not include descriptions as variables do not have specification in Langfuse21 - Includes next cursor for pagination if there's more than 1 page of prompts2223- `prompts/get`: Get a specific prompt2425 - Transforms Langfuse prompts (text and chat) into MCP prompt objects26 - Compiles prompt with provided variables2728### Tools2930To increase compatibility with other MCP clients that do not support the prompt capability, the server also exports tools that replicate the functionality of the MCP Prompts.3132- `get-prompts`: List available prompts3334 - Optional `cursor` parameter for pagination35 - Returns a list of prompts with their arguments3637- `get-prompt`: Retrieve and compile a specific prompt38 - Required `name` parameter: Name of the prompt to retrieve39 - Optional `arguments` parameter: JSON object with prompt variables4041## Development4243```bash44npm install4546# build current file47npm run build4849# test in mcp inspector50npx @modelcontextprotocol/inspector node ./build/index.js51```5253## Usage5455### Step 1: Build5657```bash58npm install59npm run build60```6162### Step 2: Add the server to your MCP servers:6364#### Claude Desktop6566Configure Claude for Desktop by editing `claude_desktop_config.json`6768```json69{70 "mcpServers": {71 "langfuse": {72 "command": "node",73 "args": ["<absolute-path>/build/index.js"],74 "env": {75 "LANGFUSE_PUBLIC_KEY": "your-public-key",76 "LANGFUSE_SECRET_KEY": "your-secret-key",77 "LANGFUSE_BASEURL": "https://cloud.langfuse.com"78 }79 }80 }81}82```8384Make sure to replace the environment variables with your actual Langfuse API keys. The server will now be available to use in Claude Desktop.8586#### Cursor8788Add new server to Cursor:8990- Name: `Langfuse Prompts`91- Type: `command`92- Command:93 ```bash94 LANGFUSE_PUBLIC_KEY="your-public-key" LANGFUSE_SECRET_KEY="your-secret-key" LANGFUSE_BASEURL="https://cloud.langfuse.com" node absolute-path/build/index.js95 ```9697## Limitations9899The MCP Server is a work in progress and has some limitations:100101- Only prompts with a `production` label in Langfuse are returned102- All arguments are assumed to be optional and do not include descriptions as variables do not have specification in Langfuse103- List operations require fetching each prompt individually in the background to extract the arguments, this works but is not efficient104105Contributions are welcome! Please open an issue or a PR ([repo](https://github.com/langfuse/mcp-server-langfuse)) if you have any suggestions or feedback.106
Full transparency — inspect the skill content before installing.