by langfuse
Access and manage Langfuse prompts through the Model Context Protocol, offering discovery, retrieval, and compilation of prompts for LLM workflows.
Provides an MCP‑compatible endpoint that surfaces Langfuse‑hosted prompts, enabling clients (e.g., Claude Desktop, Cursor) to list, retrieve, and compile prompts without writing custom Langfuse API code.
npm install
npm run build
claude_desktop_config.json
pointing to the built index.js
and set the required environment variables (LANGFUSE_PUBLIC_KEY
, LANGFUSE_SECRET_KEY
, LANGFUSE_BASEURL
).node /absolute/path/to/build/index.js
prompts/list
or prompts/get
(or the equivalent tool calls get-prompts
/ get-prompt
) from the client.prompts/list
, prompts/get
).get-prompts
, get-prompt
) for clients that do not support the native prompt capability.Q: Which prompts are exposed?
A: Only prompts labeled production
in Langfuse are returned.
Q: Are prompt arguments optional? A: Yes. All arguments are treated as optional because Langfuse does not supply argument metadata.
Q: How does pagination work?
A: prompts/list
supports an optional cursor; the response includes a nextCursor
when more pages exist.
Q: Does the server fetch prompts efficiently? A: Listing requires fetching each prompt individually to extract arguments, which works but is not highly efficient.
Q: Can I contribute improvements? A: Absolutely—open an issue or PR on the GitHub repository.
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):
https://github.com/user-attachments/assets/61da79af-07c2-4f69-b28c-ca7c6e606405
This server implements the MCP Prompts specification for prompt discovery and retrieval.
prompts/list
: List all available prompts
prompts/get
: Get a specific prompt
To 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.
get-prompts
: List available prompts
cursor
parameter for paginationget-prompt
: Retrieve and compile a specific prompt
name
parameter: Name of the prompt to retrievearguments
parameter: JSON object with prompt variablesnpm install
# build current file
npm run build
# test in mcp inspector
npx @modelcontextprotocol/inspector node ./build/index.js
npm install
npm run build
Configure Claude for Desktop by editing claude_desktop_config.json
{
"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"
}
}
}
}
Make sure to replace the environment variables with your actual Langfuse API keys. The server will now be available to use in Claude Desktop.
Add new server to Cursor:
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
The MCP Server is a work in progress and has some limitations:
production
label in Langfuse are returnedContributions are welcome! Please open an issue or a PR (repo) if you have any suggestions or feedback.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by zed-industries
Provides real-time collaborative editing powered by Rust, enabling developers to edit code instantly across machines with a responsive, GPU-accelerated UI.
by cline
Provides autonomous coding assistance directly in the IDE, enabling file creation, editing, terminal command execution, browser interactions, and tool extension with user approval at each step.
by continuedev
Provides continuous AI assistance across IDEs, terminals, and CI pipelines, offering agents, chat, inline editing, and autocomplete to accelerate software development.
by github
Enables AI agents, assistants, and chatbots to interact with GitHub via natural‑language commands, providing read‑write access to repositories, issues, pull requests, workflows, security data and team activity.
by block
Automates engineering tasks by installing, executing, editing, and testing code using any large language model, providing end‑to‑end project building, debugging, workflow orchestration, and external API interaction.
by RooCodeInc
An autonomous coding agent that lives inside VS Code, capable of generating, refactoring, debugging code, managing files, running terminal commands, controlling a browser, and adapting its behavior through custom modes and instructions.
by lastmile-ai
A lightweight, composable framework for building AI agents using Model Context Protocol and simple workflow patterns.
by firebase
Provides a command‑line interface to manage, test, and deploy Firebase projects, covering hosting, databases, authentication, cloud functions, extensions, and CI/CD workflows.
by gptme
Empowers large language models to act as personal AI assistants directly inside the terminal, providing capabilities such as code execution, file manipulation, web browsing, vision, and interactive tool usage.