How to connect Langfuse to Claude Cowork

Cowork is Anthropic's AI agent for knowledge work. Think of it as Claude Code for everything else. It works autonomously with your computer, local files, and applications to accomplish complex tasks. This guide walks you through the easiest and most secure way to connect your Langfuse account to Cowork via Composio Connect, enabling it to list recent Langfuse traces with errors, compare production prompt versions in Langfuse, review Langfuse metrics for latency spikes, and more such actions on your behalf without compromising your account security.

Langfuse logoLangfuse
Api Key

Langfuse is an open source LLM engineering platform for traces, evals, prompt management, and metrics. It helps teams debug, monitor, and improve LLM applications with clear observability data.

10 Tools

Introduction

Cowork is Anthropic's AI agent for knowledge work. Think of it as Claude Code for everything else. It works autonomously with your computer, local files, and applications to accomplish complex tasks.

This guide walks you through the easiest and most secure way to connect your Langfuse account to Cowork via Composio Connect, enabling it to list recent Langfuse traces with errors, compare production prompt versions in Langfuse, review Langfuse metrics for latency spikes, and more such actions on your behalf without compromising your account security.

Also integrate Langfuse with

Connecting Langfuse to Claude Cowork

1. Open Customize

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

2. Add the Composio MCP server

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

3. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Cowork

4. Connect your Langfuse account

Back in Cowork, ask the agent to connect to Langfuse or give it any Langfuse-related task.

For example, ask Cowork to:

  • "List recent Langfuse traces with errors"
  • "Compare production prompt versions in Langfuse"
  • "Review Langfuse metrics for latency spikes"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Cowork, and your Langfuse account is ready to use.

What is Claude Cowork?

Claude Cowork is Anthropic's agent for general knowledge work. It can use your computer, files, and connected applications to complete longer-running tasks across your work tools.

With Composio Connect, Cowork can securely access apps like Langfuse through MCP without you sharing account credentials directly with the agent.

What is the Langfuse MCP server, and what's possible with it?

The Langfuse MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Langfuse account. It provides structured and secure access to your prompts, traces, evaluations, datasets, experiments, and metrics, so your agent can retrieve prompts, inspect observations, review scores, explore datasets, and analyze performance on your behalf.

  • Prompt retrieval: Have your agent fetch text or chat prompts by name, deployment label, or version, with related prompt dependencies when needed.
  • Trace and observation analysis: Instruct your agent to search generations, spans, events, agent activity, and tool calls to investigate application behavior.
  • Evaluation score management: Let the agent review existing evaluation results or attach new scores to traces, sessions, dataset runs, and specific observations.
  • Dataset and experiment review: Direct your agent to explore available datasets and their items, then review experiments from a chosen time range with metadata and scores.
  • Metrics and evaluation resources: Have your agent query aggregate performance metrics, inspect model pricing definitions, and list annotation queues used for human evaluation.
TOOLS

Supported Tools

Every Langfuse action and event your agent gets out of the box.

Create Score

Attach an evaluation score to exactly one Langfuse trace, session, or dataset run, optionally narrowing a trace score to an observation.

Get Prompt

Retrieve a Langfuse text or chat prompt by name, deployment label, or exact version, with optional dependency resolution.

List Annotation Queues

List annotation queues configured for human evaluation in the connected Langfuse project.

List Dataset Items

List dataset items, optionally scoped to a dataset, source trace or observation, or historical dataset version.

List Datasets

List datasets available to the connected Langfuse project.

List Experiments

List Langfuse experiments active in a required time range, optionally including metadata and directly attached scores.

List Models

List Langfuse-managed and project-custom model pricing definitions used for usage and cost calculation.

List Observations

Search Langfuse observations such as generations, spans, events, agents, and tool calls, selecting only the field groups needed.

List Scores

Search numeric, boolean, categorical, text, and correction scores with subject and annotation context.

Query Metrics

Run an aggregate Langfuse metrics query over observations or numeric, boolean, or categorical scores.

FAQ

Frequently asked questions

With a standalone Langfuse MCP server, the agents and LLMs can only access a fixed set of Langfuse tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Langfuse and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Claude Cowork fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Langfuse tools.

Yes, absolutely. You can configure which Langfuse scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Langfuse data and credentials are handled as safely as possible.

Start with Langfuse.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Langfuse tool your agent needs.Free to start.

Start building