MCP Directory

Langfuse Prompt Management MCP Server

Official

Access and manage your Langfuse prompts through the Model Context Protocol.

Unverified
stdio (local)
API key
Stale
TypeScript

Add to your client

Copy the config for your MCP client and paste it into its config file.

Install / run
npm install && npm run build

Paste 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-prompts

List available prompts. Optional `cursor` parameter for pagination. Returns a list of prompts with their arguments.

get-prompt

Retrieve 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.

Verified
stdio (local)
No auth
TypeScript
9 tools
Updated 5 months agoRepo

Structured step-by-step reasoning tool for breaking problems into revisable thought sequences.

Verified
stdio (local)
No auth
TypeScript
1 tool
Updated 6 months agoRepo

Fully managed remote server for AWS docs, blogs, What's-New and Well-Architected guidance — no key.

Verified
HTTP (remote)
No auth
Hosted
6 tools
Updated 5 months agoRepo