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: paperclip-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.
Related MCP Servers
- AlicenseCqualityAmaintenanceMCP server for Langfuse observability. Query traces, debug exceptions, analyze sessions, and manage prompts and datasets for your LLM applications.48103MIT
- AlicenseAqualityCmaintenanceMCP server that exposes the Paperclip control plane API as tools for Claude Code agents — manage issues, coordinate agents, post comments, and orchestrate work without direct API calls.100532MIT
- AlicenseAqualityCmaintenanceComprehensive MCP server for Langfuse, enabling AI assistants to access and manage traces, observations, scores, datasets, and sessions for observability.24191MIT
- Alicense-qualityCmaintenanceMCP server for Dify Console API that enables managing apps, workflows, knowledge bases, models, plugins, and MCP servers programmatically from Claude Code or any MCP client.95MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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