How to connect Braintrust MCP to Claude

Connect Claude Web, Desktop and Cowork to Braintrust MCP. Query braintrust logs for failed traces, run an eval on the latest dataset, and more using natural language, with authentication handled for you.

Braintrust MCP logoBraintrust MCP
Dcr Oauth

Braintrust MCP is a hosted Model Context Protocol server for Braintrust observability and evaluation data. It gives agents a secure, structured way to work with logs, evals, prompts, datasets, and alerts.

60 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your Braintrust account to Claude via Composio Connect, enabling it to query Braintrust logs for failed traces, run an eval on the latest dataset, list active Braintrust alerts and dashboards, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Braintrust MCP with

Connecting Braintrust to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

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

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

2. 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 Web, Desktop, and Cowork

3. Connect your Braintrust account

Back in Claude, ask it to connect to Braintrust or give it any Braintrust-related task.

For example, ask Claude to:

  • "Query Braintrust logs for failed traces"
  • "Run an eval on the latest dataset"
  • "List active Braintrust alerts and dashboards"

It will prompt you to authenticate and authorize access.

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

What is the Braintrust Claude Connector, and what's possible with it?

The Braintrust MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Braintrust account. It provides structured and secure access to project logs, evaluations, prompts, datasets, dashboards, alerts, and Topics automations, so your agent can analyze application behavior, run evaluations, manage testing data, and monitor projects on your behalf.

  • Evaluation and scorer management: Have your agent run experiments with hosted or inline datasets, prior experiments, functional tasks, and saved or inline scorers, then create versioned evaluators for future testing.
  • Log analysis and project monitoring: Direct your agent to inspect available data fields, measure patterns across users, sessions, or traces, generate dashboard chart SQL, and review saved monitoring views.
  • Prompt and dataset workflows: Let the agent create versioned prompts, add project log rows to datasets, edit dataset rows, and list custom views for labeling and review.
  • Alerts and scheduled automation: Instruct your agent to create log, threshold, or environment update alerts, list existing automations, configure Topics, and run or review scheduled Loop jobs.
  • Human review and sharing: Have your agent send traces or dataset rows to a human review queue, create review score definitions, and generate shareable links to Braintrust objects.

Troubleshooting

1. Why does Claude not use the Composio connector for Braintrust?

The connector can show as connected, but Claude must use it in each Braintrust conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to Braintrust again.

2. Why does Claude show an MCP server error before Braintrust connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Braintrust.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect Braintrust.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the Braintrust authorization link not work?

The Composio connector is one server. Your Braintrust account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the Braintrust connection.
  • Composio creates a fresh Braintrust authorization link.
  • Open that link in your browser and finish the Braintrust sign-in.

4. Why do Braintrust actions fail after they worked before?

The Braintrust connection can expire or lose permission.

  • Ask Claude to inspect the Braintrust connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the Braintrust account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in Braintrust.
  • If the action still fails with a permission error, check that the connected account has that permission in Braintrust itself.

5. How do I switch to a different Braintrust account?

Claude can manage the Braintrust connection for you.

  • Ask Claude to disconnect or delete the current Braintrust account.
  • Ask Claude to connect Braintrust again.
  • Open the new Composio authorization link for Braintrust.
  • Sign in with the other Braintrust account in the browser.
  • After the account connects, ask Claude to retry the Braintrust task.

6. Why is my Braintrust connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Braintrust connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If Braintrust tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Braintrust.
TOOLS

Supported Tools

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

Add to dataset

Add up to 1000 project log rows to a Braintrust dataset by row ID, like the UI's "Add to dataset", without reading and re-sending their contents.

Add to human review queue

Add existing project log traces, experiment traces, or dataset rows to Human Review, optionally assigning individual reviewers.

Create dashboard sql

Create a project-scoped dashboard, optionally containing SQL charts that were already previewed with generate_dashboard_chart_sql.

Create environment update alert

Create an alert for environment updates.

Create evaluator

Create a versioned Braintrust LLM or inline code evaluator.

Create facet

Create a versioned Braintrust facet that extracts structured information from spans or traces.

Create human review score

Create a native Human Review score definition for a project: categorical choices, a numeric slider, or a free-form text field such as Review notes.

Create log alert

Create an alert for individual matching project logs.

Create preprocessor

Create a versioned Braintrust preprocessor from inline JavaScript using the same QuickJS runtime as the Braintrust UI.

Create prompt

Create a versioned Braintrust prompt using the same function representation as project.prompts.create() and bt functions push.

Create protected field rule

Add a protected field rule to a scope's policy, creating the policy if needed.

Create scheduled loop job

Create a custom Loop job that runs on an interval or cron schedule over a recent project-data window.

Create threshold alert

Create a threshold alert for an aggregate over a recent project-data window.

Delete protected field rule

Delete a protected field rule by id.

Edit dataset rows

Insert, update, or delete up to 1000 Braintrust dataset rows using explicit operations.

Enable topics automation

Enable Topics for a Braintrust project.

Fail dashboard section

Report a failure for a precomputed dashboard section using the target and revision from its computation request.

Generate dashboard chart sql

Generate a SQL-backed dashboard chart configuration for visualizing data from project_logs.

Generate permalink

Generate a direct web link (permalink) to a Braintrust object for sharing or bookmarking.

Get monitoring view

Inspect a saved Monitoring view, including its options and ordered chart definitions.

Get project settings

Get Braintrust project settings, including the configured field paths in settings.user_id_fields and settings.session_id_fields.

Get protected field policy

Get the protected field policy and its rules for a scope.

Infer schema

Look up field paths and types when the query depends on an unknown field.

List automations

List a project's automations, including online scoring rules, alerts, exports, retention policies, Topics automations, and other automation kinds.

List dataset custom views

List up to 100 saved custom views for labeling dataset rows in a project, including each view's code and a link reviewers can open.

List monitoring views

List the saved Monitoring views and chart IDs for a project so the user can choose a view or chart to inspect or edit.

List recent objects

List recently created projects, experiments, datasets, prompts, or functions you have access to.

List scheduled loop job runs

List a saved scheduled Loop job's run threads, newest first, with thread IDs, names, and Braintrust links.

List slack channels

List the Slack workspaces connected to a project's org and the public channels in a workspace, so a Slack alert action targets the channel the user named instead of a guessed ID.

Load braintrust skill

Load a guide when the request matches the workflow or SDK task described below.

Lookup api keys

Look up Braintrust API keys and service tokens by exact IDs, exact name, or an explicit request to list all visible keys.

Lookup users

Look up human Braintrust organization members by exact user IDs, partial name or email, or an explicit request to list all users.

Measure pattern frequency

Measure distinct users, sessions, or traces matched by a pattern in one time window of up to 14 days.

Publish dashboard section

Publish one precomputed chart, Markdown note, or insight to a registered dashboard artifact target.

Read patterns rubric

Read the project's Patterns rubric, which defines how to assign pattern severity and categories.

Resolve attachments

Resolve one attachment reference or a batch from sql_query results into temporary download URLs.

Resolve object

Convert names to IDs (or vice versa) and parse Braintrust URLs.

Rewind topics automation

Rewind an existing Topics automation to process historical data from an explicit start time or recent window.

Run eval

Run a Braintrust experiment through the authenticated Eval API with a hosted dataset, inline rows, or a prior experiment, any saved or inline functional task, and zero or more saved or inline scorers.

Run scheduled loop job

Run a saved active scheduled Loop job using the same execution path as Run now in Braintrust.

Save dataset custom view

Create or update a versioned custom view that reviewers use to label rows of a dataset.

Search docs

Search Braintrust documentation to find relevant information and guidance.

Search patterns

Search existing patterns in a project by text, semantic similarity, ID, status, or quality.

Send feedback

Send feedback to the Braintrust team about a problem with this MCP server, such as a missing capability, a tool error that looks like a server bug, malformed or inconsistent output, or parameters that are confusing or rejected despite matching the schema.

Set automation status

Pause or activate an alert, scheduled job, or online scoring rule.

Set project default preprocessor

Set or clear the default preprocessor for a Braintrust project.

Set project session id field

Configure the project's session or conversation ID field and create its bloom index.

Set project user id field

Configure the project's derived end-user ID field and create its bloom index.

Set topics automation

Update an existing Topics automation's configuration.

Sql query

Run one read-only Braintrust SQL (BTQL) query.

Summarize experiment

Get aggregated performance metrics for an experiment, optionally compared to a baseline.

Test evaluator

Run one saved, global, or inline evaluator on representative inputs without writing results.

Test facet on trace

Run an inline facet definition with a saved, global, inline, or project-default preprocessor on one to ten canonical span, trace, or group references concurrently using the same preview path as the Braintrust UI.

Test preprocessor on trace

Run a saved, global, or inline preprocessor on one to 50 canonical span, trace, or group references concurrently using the same preview path as the Braintrust UI.

Unpin topic maps

Remove version pins from topic maps on an existing Topics automation so they classify new traffic with each topic map's latest version.

Update dashboard sql

Apply one or more SQL chart or section edits to an existing project dashboard.

Update debug report

Save or replace the diagnosis report for one trace.

Update online scoring rule

Save or rewind an online-scoring rule that runs saved evaluator functions.

Update pattern

Update an existing project pattern's content, source review, status, quality, or feedback, and optionally attach quoted evidence to matching traces.

Update protected field rule

Update fields of an existing protected field rule by id.

FRAMEWORKS

How to build Braintrust MCP Agent with another framework

FAQ

Frequently asked questions

Start with Braintrust MCP.It takes 30 seconds.

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

Start building