================== /// MCP /// /// MCP /// ================== [server:online] [protocol:ready]
mcp-server-langfuse
by langfuse
Model Context Protocol (MCP) Server that exposes Langfuse prompt management via the MCP Prompts specification and fallback tools.
121
26
Open Source01
prompts/list
List all available prompts with optional cursor-based pagination, returning prompt names and their arguments and a next cursor if more pages exist
02
prompts/get
Retrieve a specific prompt, converting Langfuse text or chat prompts into MCP prompt objects and compiling it with provided variables
03
get-prompts
List available prompts, accepting an optional cursor parameter for pagination and returning prompts with their arguments
04
get-prompt
Retrieve and compile a specific prompt by name, with an optional JSON object of arguments for variable substitution
Installation
1. Prerequisites
• Node.js ≥ 18 and npm (or pnpm/yarn)
• A Langfuse project with API keys (Public & Secret)
2. Clone the repository
git clone https://github.com/langfuse/mcp-server-langfuse.git
cd mcp-server-langfuse
3. Install dependencies
npm install # or: pnpm install / yarn install
4. Configure environment
Create a .env file (or export variables in your shell):
LANGFUSE_PUBLIC_KEY=lf_public_xxx
LANGFUSE_SECRET_KEY=lf_secret_xxx
LANGFUSE_HOST=https://app.langfuse.com # or your self-hosted URL
PORT=3000 # optional, default 3000
5. Build & start
# For development (ts-node/dev-reload)
npm run dev
# For production
npm run build
npm start
6. (Optional) Docker
-e LANGFUSE_PUBLIC_KEY=$LANGFUSE_PUBLIC_KEY \
-e LANGFUSE_SECRET_KEY=$LANGFUSE_SECRET_KEY \
-e LANGFUSE_HOST=$LANGFUSE_HOST langfuse/mcp-server
docker build -t langfuse/mcp-server .
docker run -p 3000:3000 \
After the server starts, the MCP endpoints are accessible at http://localhost:3000/.
Documentation
License: MIT License
Updated 7/30/2025