Langfuse
Give the Sazabi agent tools to inspect LLM traces, observations, metrics, scores, comments, and prompts from your Langfuse project.
About
Langfuse is an MCP connector that gives the Sazabi agent tools to inspect LLM traces, observations, metrics, scores, comments, and prompts. Langfuse hosts an MCP server over Streamable HTTP at /api/public/mcp, region-scoped by Langfuse Cloud host — US (https://us.cloud.langfuse.com), EU (https://cloud.langfuse.com), or JP (https://jp.cloud.langfuse.com). Sazabi authenticates using HTTP Basic Auth built from a Langfuse project API key pair (pk-lf-... / sk-lf-...), stored securely and sent in the Authorization header.
What the agent can do:
- Query traces and observations to investigate LLM application behavior
- Retrieve metrics, scores, and evaluation results
- Read comments attached to traces and observations
- Fetch managed prompts from Prompt Management
- Scope the connection to your Langfuse Cloud region (US, EU, or JP)
Prerequisites
- A Langfuse Cloud account (or self-hosted deployment via the custom connector)
- A Langfuse project API key pair (Public
pk-lf-...and Secretsk-lf-...) from Project settings > API keys
Set up in the dashboard
Configure connectors in the dashboard under Settings > MCP connectors.
Open the connector
Find Langfuse in Settings > MCP connectors.
Add your key
Select your Langfuse Cloud region (US, EU, or JP). In Langfuse, open Project settings > API keys and create a new key pair. Base64-encode publicKey:secretKey and enter it as Basic <encoded>. Sazabi sends this value as the Authorization header to Langfuse's hosted MCP endpoint.
Set up with the CLI
Langfuse authenticates with Langfuse project API keys, and sazabi mcp-connectors connect only supports OAuth providers — so set up this connector in the dashboard first (above). Once it's connected, the Sazabi CLI can inspect and manage it (installed and authenticated — see sazabi mcp-connectors reference):
sazabi mcp-connectors list
sazabi mcp-connectors details <connection-id>Find the connection ID with sazabi mcp-connectors list. To rotate the stored credentials later, use sazabi mcp-connectors update-credentials <connection-id>.
Verify
Open the connector's connection page under Settings > MCP connectors and confirm Sazabi lists the tools it discovered. Then, in a thread, ask the agent to use one of those tools and confirm it runs. If no tools appear, confirm the connection is authorized (OAuth) or the key/header is correct (token auth).
Troubleshooting
No tools discovered — Confirm the Authorization value is correctly formatted as Basic <base64(pk-lf-...:sk-lf-...)> and that you selected the correct region; re-enter from Settings > MCP connectors.
Connection shows needs attention — The authorization or key may have expired or been revoked; reconnect from Settings > MCP connectors.