langfuse/mcp-server-langfuse

View on GitHub ↗

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.

173 ★36 forksTypeScriptUpdated 1y ago

What you need to know

MCP server for Langfuse Prompt Management - lets AI assistants list and retrieve production prompts with optional variable compilation

Install

npm install and npm run build from the repo
Add the server with LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY and LANGFUSE_BASEURL env

Usage

  • Configure in Claude Desktop or Cursor with your Langfuse API keys
  • List available prompts with prompts/list and retrieve one with prompts/get

Key features

  • Implements the MCP Prompts specification for discovery and retrieval
  • get-prompts and get-prompt tools for clients without prompt capability
  • Compiles prompts with provided variables
  • Cursor-based pagination for large prompt lists

Best for

Teams using Langfuse prompt management who want agents to consume production prompts

Caveats

  • Only prompts with the production label are returned
  • All arguments are assumed optional without descriptions
  • List operations fetch each prompt individually - not efficient for large sets
Platforms: LocalClients: Claude Desktop · Cursor

Reviewed 2026-08-11

Topics

langfusellmllmopsmcpmodel-context-protocolprompt-managementprompting
Stars
173★
Forks
36
Language
TypeScript
License
MIT
Created
2025-02-15
Last push
2025-02-16