langfuse-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@langfuse-mcplist my recent traces"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
langfuse-mcp
MCP server for Langfuse — lets Claude Code create projects, manage API keys, and query traces without touching the web UI.
Designed to work with langfuse-kickstart, a self-hosted Langfuse v3 stack running locally via Docker Compose.
Tools
Tool | Description |
| List all projects accessible with the current API key |
| List all organizations |
| Create a new project inside an organization |
| Create a new pk/sk pair for a project |
| List API keys for a project |
| Delete an API key by ID |
| List traces with optional filters |
| Get full trace details including observations |
| List sessions |
| List scores with optional filters |
| Create a score on a trace or observation |
| List spans, generations, and events |
| List datasets |
| Get a dataset and its items |
| List prompts in the prompt library |
| Get a prompt by name, version, or label |
Related MCP server: langfuse-mcp
Requirements
Python 3.11+
A running Langfuse instance (see langfuse-kickstart)
Setup
git clone https://github.com/dominic-righthere/langfuse-mcp
cd langfuse-mcp
cp .env.example .envEdit .env:
LANGFUSE_HOST=http://langfuse.localhost
LANGFUSE_PUBLIC_KEY=pk-lf-kickstart
LANGFUSE_SECRET_KEY=sk-lf-kickstart
LANGFUSE_DATABASE_URL=postgresql://langfuse:YOUR_POSTGRES_PASSWORD@localhost:5432/langfuseLANGFUSE_DATABASE_URL is needed for admin tools (create_project, create_api_key, etc.) that write directly to Postgres. With langfuse-kickstart, Postgres is exposed on 127.0.0.1:5432 — use the POSTGRES_PASSWORD from your kickstart .env.
Claude Code integration
Add to your .mcp.json (project-level) or claude_desktop_config.json:
{
"mcpServers": {
"langfuse": {
"command": "uv",
"args": ["run", "--project", "/path/to/langfuse-mcp", "langfuse-mcp"],
"env": {
"LANGFUSE_HOST": "http://langfuse.localhost",
"LANGFUSE_PUBLIC_KEY": "pk-lf-kickstart",
"LANGFUSE_SECRET_KEY": "sk-lf-kickstart",
"LANGFUSE_DATABASE_URL": "postgresql://langfuse:YOUR_POSTGRES_PASSWORD@localhost:5432/langfuse"
}
}
}
}Replace /path/to/langfuse-mcp with the actual path to the cloned repo.
Alternatively, if you use a .env file in the repo root, you can omit the env block and let the server load it automatically.
Notes
create_api_keyreturns the secret key only at creation time — store it immediately.Admin tools (
create_project,create_api_key,delete_api_key,list_organizations) connect directly to Postgres. If Langfuse changes its schema in a major version these tools may need updating.The REST API tools (
list_traces,get_trace, etc.) use the public Langfuse API and are schema-stable.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dominic-righthere/langfuse-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server