Langfuse Launch Week #5, a week of new features →
DocsMCP Server
DocsPrompt ManagementFeaturesMCP Server

MCP Server for Langfuse Prompts

The Langfuse Model Context Protocol (MCP) Server enables AI assistants and agents to interact with your Prompt Management system. The server is built directly into Langfuse at /api/public/mcp (streamableHttp), no external setup or build steps required.

The MCP Reference is the canonical source for current Langfuse MCP servers, setup snippets, tools, input schemas, and generated request examples.

Setup

See the MCP Server setup guide for complete instructions on authentication and client configuration.

Example Workflows

Create a New Prompt

Ask your AI agent:

"Create a new text prompt called 'customer-email' with a friendly greeting template that includes name and product variables. Tag it as 'draft' and add a production label."

The agent will use createTextPrompt to create the prompt version.

Promote a Prompt to Production

"Move the production label from version 2 to version 3 of the customer-email prompt"

The agent will use updatePromptLabels to update the label assignment.

Iterate on a Chat Prompt

"Create a new version of the code-review prompt with improved system instructions and add an example assistant message showing the review format"

The agent will use createChatPrompt to create a new version with enhanced content after having fetched the prompt with getPrompt.

Feedback

Share your experience with the Langfuse MCP server in our GitHub Discussion. We'd love to hear your feedback and use cases.

Learn More


Was this page helpful?

Last edited