How to Use the Langfuse (LLM Tracing & Evals) MCP in Claude Code
Run terminal commands to audit LLM costs, fetch production traces, and manage prompt templates directly from your shell.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Langfuse (LLM Tracing & Evals) MCP to Claude Code
Create your Vinkius account to connect Langfuse (LLM Tracing & Evals) to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Audit production LLM metrics from your terminal
To monitor system health, Claude Code executes `get_daily_metrics` to retrieve aggregated USD costs and latency statistics directly in your shell. This allows SREs and backend engineers to check operational performance without opening a browser. If the metrics reveal a sudden spike in latency, you can pipe the output of this MCP call to other CLI utilities or have the agent run `list_traces` to isolate the slow requests. It keeps your monitoring workflow fast and terminal-centric.
Pipe trace data and observations into shell scripts
Inspecting raw telemetry is simple because the CLI uses `get_observation` to output explicit span and generation details as clean JSON. You can easily feed this data into grep, jq, or custom bash scripts to automate post-mortem reports. When deeper debugging is required, running the MCP tool `list_observations` lets you scan across thousands of traces to find pattern failures. The terminal client parses these payloads in milliseconds to find bad LLM outputs.
Manage prompts via this terminal-based MCP Server
Keeping track of prompt versions in production is straightforward since the agent uses `list_prompts` to extract deployed templates. This command lets you quickly verify which version of a prompt is currently active in your environment. You can also use `create_observation` to log new events or spans directly from automated CLI test runs. It makes integration testing of prompt chains easy to manage from any CI/CD pipeline.
Set up Langfuse (LLM Tracing & Evals) MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seelangfuse-llm-tracing-evals-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Langfuse (LLM Tracing & Evals) transactions." It will automatically discover and invoke the available Langfuse (LLM Tracing & Evals) tools.
claude mcp add --transport http langfuse-llm-tracing-evals-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Langfuse (LLM Tracing & Evals) MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Langfuse (LLM Tracing & Evals) MCP today
We host it, we monitor it, we maintain it. You just paste one token.