GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Braintrust home page
  • Contact us
  • Dashboard
  • Integrations
  • SDKs
  • Reference
  • Cookbook
  • Troubleshooting
  • Changelog
  • Overview
  • Custom providers
  • Overview
  • Braintrust MCP
  • Claude Code

This view

  • Original page
  • New address

GeezerVison is showing docs.braintrust.dev — Braintrust MCP - Braintrust

The Braintrust MCP server is a hosted Model Context Protocol (MCP) server that lets AI tools read and write your Braintrust data directly. Query production logs, author prompts and scorers, configure monitoring, and run evals from Claude Code, Cowork, Cursor, Codex, VS Code, and any other MCP-compatible client.

MCP or CLI?

Which one you want depends on what your tool can access and where the work needs to run.
  • MCP: Best when your AI tool can connect to Braintrust but has no authenticated shell, which is common in chat applications. It also fits when you want an assistant to reason over your Braintrust data and take several connected actions in one conversation, without installing and maintaining a CLI in its execution environment.
  • bt CLI: Best for repeatable work in scripts, CI, local files, and shell pipelines, where you want deterministic commands instead of an assistant’s judgment. Coding agents with shell access can call those commands too.
If your tool supports both, either one works. Pick whichever is more reliable for the task at hand.
This page covers MCP clients, such as Claude Code and Cursor, connecting to the Braintrust MCP server. It does not cover Braintrust connecting to your MCP server or a third-party MCP server. To give prompts access to an external MCP server, see Add external MCP servers. To let Loop use one, see Connect external MCP servers.

Connect your client

Braintrust hosts the MCP server, so there is nothing to install or deploy.
1

Choose authentication

  • OAuth (recommended)
  • API key
Use OAuth when your client supports it. Your client opens a Braintrust authorization page where you sign in and approve access. The server acts with the permissions of the account you sign in with.
  • No Braintrust API key required
  • No OAuth client ID or client secret to configure
The server implements OAuth 2.0 with dynamic client registration and publishes its metadata at /.well-known/oauth-authorization-server on the same host as your MCP endpoint (see next step), so a client can register itself.
Use an API key for clients without OAuth support or for programmatic connections. The server acts with the permissions of the account the key belongs to.
  1. Create a key in Settings > API keys.
  2. Configure your client to send this header on every request, replacing YOUR_BRAINTRUST_API_KEY with your key:
    Authorization: Bearer YOUR_BRAINTRUST_API_KEY
    
2

Choose your endpoint

Use the endpoint for your organization’s data plane region:
RegionMCP endpoint
UShttps://api.braintrust.dev/mcp
EUhttps://api-eu.braintrust.dev/mcp
Other connection details:
  • BYOC: Copy the MCP URL from Settings > Data plane. This is your Braintrust API URL with /mcp appended.
  • Transport: If your client asks you to choose a transport, choose HTTP (also called streamable HTTP). SSE-only clients can’t connect.
3

Configure your client

Follow your client’s documentation to add a remote MCP server using the endpoint and authentication method above. The client documentation covers configuration, authentication controls, and any plan or administrator requirements.
Each client names the HTTP transport setting differently. For example, in Claude Code, add --transport http to claude mcp add. In Gemini CLI’s settings.json, set the server address with httpUrl, not url.
ClientSetup
Amp logoAmp
Amp guide
Claude Code logoClaude Code
Claude Code guide · Braintrust guide
If you installed the retired Braintrust MCP plugin, remove it before you add the server.
Claude logoClaude (chat and Cowork)
Claude guide · Braintrust guide
Codex logoCodex
Codex guide · Braintrust guide
If you installed the retired Braintrust MCP plugin, remove it before you add the server.
Cursor logoCursor
Cursor guide · Braintrust guide
Devin Desktop logoDevin Desktop
Devin guide · Cascade guide (legacy agent) · Braintrust guide
fx logofx
fx guide
Gemini CLI logoGemini CLI
Gemini CLI guide
GitHub Copilot CLI logoGitHub Copilot CLI
Copilot CLI guide
Google Antigravity logoGoogle Antigravity
Antigravity guide · Braintrust guide
goose logogoose
goose guide
Grok logoGrok
Grok guide · Braintrust guide
JetBrains Junie logoJetBrains Junie
Junie guide
Muse Code logoMuse Code
Muse Code guide · Braintrust guide
OpenCode logoOpenCode
OpenCode guide · Braintrust guide
pi logopi
pi guide · Braintrust guide
VS Code logoVS Code
VS Code guide · VS Code configuration reference · Braintrust guide
Warp logoWarp
Warp guide
Zed logoZed
Zed guide
For other clients, check that the client supports remote MCP servers over streamable HTTP with OAuth or bearer-token authentication.
4

Verify the connection

Ask your assistant:
Use the Braintrust MCP server to list my recent projects.
The assistant calls a Braintrust tool and returns projects you can access. If the call fails, see Troubleshooting.

What the MCP can do

Your assistant works with the data and objects in your Braintrust organization, and it chains several tools in one turn. Suppose a support chatbot starts making claims about your product that aren’t true. In a single conversation, your assistant can:
  1. Query recent logs to find examples of the behavior.
  2. Write an evaluator that detects the unsupported claims, and test it against those traces before saving it.
  3. Add the failing cases to a regression dataset, with the corrected responses as the expected output.
  4. Run an eval comparing the current prompt against a proposed fix.
Each step produces a real Braintrust object, and your assistant returns a permalink so you can inspect or share it. Each capability below lists the tools behind it, and Tools describes every tool in one place.
Write tools act on your Braintrust organization using the permissions of your authenticated account. Configure your MCP client to require confirmation before it runs a write tool.

Install the Braintrust SDK

Before you can query anything, your application has to send traces to Braintrust. Your assistant handles that setup: it detects your programming language and frameworks, installs the appropriate SDK, and configures auto-instrumentation. Once complete, it runs your app, verifies traces are being logged, and provides a permalink to view them in Braintrust. Example prompts:

Set up tracing from scratch

Install the Braintrust SDK and add tracing to my app.

Instrument an existing integration

My app calls the OpenAI SDK. Add Braintrust tracing so those calls show up as spans.

Confirm traces are landing

Run my app and confirm traces are reaching Braintrust. Send me a permalink to one.
See Trace LLM calls for what auto-instrumentation covers. Resource: docs://sdk-install.

Explore your data

Your assistant can answer questions about what your application actually did. It queries logs, experiments, and datasets with SQL, discovers the fields and value distributions in a data source before writing a query, and pulls aggregated metrics for an experiment with or without a baseline to compare against. Because it reads the same data the UI shows, you can investigate a production issue without switching to a browser. When a query result or inferred schema reaches 1 MB, sql_query and infer_schema return a signed URL instead of inline content to keep large results out of your assistant’s context window. See Tools for download and truncation options. When query results include attachment references, your assistant can exchange them for download URLs that expire after five minutes. Example prompts:

Find recent errors

Show me the last 10 logged requests with errors, and include the error message and the model used.

See what fields your data has

What fields are available in my production logs, and which ones are populated most often?

Break down cost

What did my chatbot experiments cost last week, broken down by model?

Compare an experiment to its baseline

Summarize my latest experiment and compare it to the baseline. Call out any score that regressed.
See SQL for query syntax, and View logs for the equivalent in the UI. Tools: sql_query, infer_schema, summarize_experiment, resolve_attachments.

Find and share objects

Most Braintrust tools take an object ID, so your assistant finds the right project, experiment, or dataset by name and translates between names and IDs on its own. It usually does this as a step inside a larger request rather than as something you ask for. When you want to hand a result to someone else, it produces a direct link to the object. It can also reverse the lookup, finding a person’s traces from their name or email. Example prompts:

List recent work in a project

What experiments have I run recently in the 'chatbot' project?

Identify a Braintrust URL

What does this Braintrust URL point to, and what does the object contain?

Get a link to share

Give me a shareable link to those experiment results so I can post it for my team.

Attribute traces to a teammate

Who logged the traces in this project this week, and which API keys produced the rest?
Tools: list_recent_objects, resolve_object, generate_permalink, lookup_users, lookup_api_keys.

Manage patterns

Patterns record recurring behaviors in your traces. Your assistant can search existing findings, check for duplicates even when their wording differs, and add evidence to existing patterns. In Loop, you can also create new patterns with supporting evidence. Example prompts:

Investigate a suspected problem in Loop

I think we might be overspending on web searches. Dig into that, and report a pattern if you find one.

Review active patterns

What patterns are active that I can solve right now?

Supply pattern evidence

Review these traces for evidence of the pattern we identified. Add examples that
support it, quoting the relevant span fields and including enough context to
explain the behavior. Estimate how often it occurs and state the time range
and sample you used.
The input schema for update_pattern includes the following requirements. The same requirements apply when Loop creates a pattern.
  • Trace evidence: Each trace_evidence entry accepts one evidence item or an array. Its optional path uses SQL identifier syntax, such as output[0].message.content or metadata."request.id". Supported fields include input, output, expected, metadata, scores, metrics, error, and span_attributes.name (or name). JSONPath, slash-separated paths, and free text are rejected.
  • Question scope: Set evidence.frequency.question_scope to session when you assess a session’s traces together, or trace for individual traces (the default).
  • Sampled frequency: A question requires a snapshot with time_window and counts, including counts.sampled. Group counts by total, matching, and, for a comparison group, similar and similar_matching. Each holds counts by unit: traces, users, or sessions. Include the estimate range in matching_range and, for a comparison group, similar_matching_range.
  • User and session fields: Set counts.user_id_field and counts.session_id_field to the first configured paths from get_project_settings, or null if none is configured. Estimates using different fields are rejected.
A snapshot takes only counts and time_window, and a snapshot without counts is rejected. Other keys are dropped without an error, such as the legacy impact field and the trace-count fields affected_trace_count, population_affected_trace_count, population_trace_count, and total_trace_count on snapshot, or ungrouped names such as unit and affected_count inside counts. Put every count inside counts, under the group and unit it measures. search_patterns and measure_pattern_frequency return snapshots in the shape that new_pattern and update_pattern accept. To record a new measurement, pass the snapshot from measure_pattern_frequency unchanged.

Reopen a closed pattern

To reopen a closed or duplicate pattern, call update_pattern with status: "active" and the newest matching trace’s created timestamp as last_seen. When the closure time is known, the newer of the supplied and saved last_seen values must be later. Otherwise, the update is rejected without sending an alert.Moving a pattern from investigating to active isn’t a reopen. It doesn’t require a newer last_seen and doesn’t send a reopen alert.Calls using your own credentials on your behalf, such as a direct API-key call or a Loop conversation you started, skip this check. Loop still requires newer traces unless you explicitly ask it to reopen the pattern.Use search_patterns with include: ["all"] to read closed_at. It returns the latest closure time, or the latest write time if no closure was recorded. It is null for active or investigating patterns, or when neither time is available.

Manage duplicate patterns

Compare these two patterns and their evidence. If they describe the same
behavior, mark the newer one as a duplicate of the older one. Otherwise,
explain what makes them different.
You can also manage duplicate patterns:
  • Find duplicates: search_patterns accepts status: "duplicate" and returns duplicate_of, the canonical pattern’s ID.
  • Close a duplicate: Call update_pattern with status: "duplicate" and duplicate_of set to an existing canonical pattern in the same project. The target cannot be the pattern itself or another duplicate.
  • Undo duplicate closure: Call update_pattern with duplicate_of: null and status: "active" or status: "inactive". Both fields are required. Use inactive to keep the pattern closed, or active to reopen it.
Closing a pattern as a duplicate removes it from the default Patterns table. Its history is preserved, and it links to the canonical pattern. To undo the closure in the UI, set the duplicate’s Status to Open or Closed in its Properties panel, which removes its link to the canonical pattern. This requires the project’s Update permission.

Add an Activity comment

Add a comment to this pattern with our investigation findings and a link to the tracking issue.
To post a comment to a pattern’s Activity, call update_pattern with project_id, pattern_id, a nonblank comment, and a reason explaining the update. The pattern must belong to the specified project, and you need its Update permission.You can post a comment alone or include property changes. Use comment for investigation updates and links. Use feedback for judgments about usefulness or classification. Feedback does not appear in Activity. Use reason to briefly explain a change. Status-change reasons appear in Activity, so don’t repeat the reason in comment.
See Review patterns to assess findings and act on them in Braintrust. Tools: search_patterns, measure_pattern_frequency, update_pattern. Loop uses new_pattern to create findings.

Configure Topics

Topics preprocesses traces into text, extracts facets from that text, and clusters the results to show what your users actually do. Your assistant builds that pipeline for you: it writes a preprocessor that matches your trace shape, tests it against real traces before saving, defines the facets to extract, and enables the automation that keeps it running. It can also rewind an automation over historical traffic.
Rewinding a Topics automation processes historical traces and draws from your monthly Braintrust credits.
Example prompts:

Set up Topics from scratch

Set up Topics for my project. Validate the preprocessor and facets on real traces before you enable anything.

Write a preprocessor for an unusual trace shape

My traces don't store conversation text on LLM spans. Write a preprocessor that works with my trace shape, and test it on a few traces.

Process historical traces

Rewind my Topics automation so it covers the last 30 days.
Tools: create_preprocessor, test_preprocessor_on_trace, create_facet, test_facet_on_trace, enable_topics_automation, set_topics_automation, unpin_topic_maps, rewind_topics_automation.

Build dashboards

Dashboards collect the charts you check regularly. Your assistant previews a chart against real project logs so you can see it before anything is saved, then puts it into a new or existing dashboard. It can also read back what a dashboard already contains and edit charts in place, one at a time or in bulk. Example prompts:

Preview a chart before saving it

Chart daily cost for this project over the last two weeks. Show it to me before you save anything.

Create a cost dashboard

Create a dashboard for daily cost analysis, with charts for total cost, cost per trace, and cost by model.

Add a chart to an existing view

Add a p95 latency chart to my error monitoring dashboard.
See Build charts for chart types and configuration options. Tools: generate_dashboard_chart_sql, list_monitoring_views, get_monitoring_view, create_dashboard_sql, update_dashboard_sql.

Manage automations and alerts

Automations watch your data so you don’t have to. Your assistant inspects what a project already runs, including online scoring rules, exports, and retention policies, then creates what’s missing: an alert on individual matching logs, an alert on an aggregate threshold over a recent window, an alert on environment updates, or a Loop job that analyzes recent traffic on a schedule. It can also pause or resume any of them, run a saved Loop job without waiting for its schedule, and list the job’s past runs. Example prompts:

Audit what's configured

What automations are configured in this project, and which ones are paused?

Alert on an error rate

Alert me when the error rate goes above 2% over the last hour.

Schedule recurring analysis

Every Monday morning, analyze last week's traces and summarize the top failure modes.

Pause an automation

Pause the online scoring rule you just created.
See Alerts for delivery channels and tuning, and Loop automations for scheduled analysis. Tools: list_automations, set_automation_status, run_scheduled_loop_job, list_scheduled_loop_job_runs, create_log_alert, create_environment_update_alert, create_threshold_alert, create_scheduled_loop_job, list_slack_channels.

Author prompts and evaluators

Prompts and evaluators are versioned objects that your application, experiments, and online scoring all share. Your assistant drafts one from what it found in your logs, runs it against real traces to see how it behaves before anything is saved, and saves it as a new version when you’re satisfied. It can then attach an evaluator to an online scoring rule so it scores production logs continuously. Example prompts:

Write a scorer for errors you found

Write a scorer that detects the errors in these logs, then test it on a few traces before saving it.

Create an LLM-as-a-judge

Create an LLM-as-a-judge scorer for helpfulness and test it on ten recent traces.

Apply a scorer to production logs

Set up online scoring with the scorer you just created. Leave it paused so I can review the configuration first.

Save a prompt as a new version

Save this prompt to my project as a new version of the summarizer prompt.
See Create prompts and Write scorers for details. Tools: create_prompt, create_evaluator, test_evaluator, update_online_scoring_rule.

Run evals and edit datasets

Evals, and the datasets that feed them, are how you measure whether a change helps. Your assistant curates dataset rows from the failures it finds in your logs, then runs an experiment against them using a saved or inline task and whichever scorers you want. A prior experiment can supply the input data, in which case its outputs become the expected values. Use add_to_dataset to copy project log rows into a dataset in the same project without loading their full contents into the assistant’s context. Find rows with sql_query against project_logs, then pass their id values in log_row_ids, along with project_id and either dataset_id or dataset_name. Use row IDs, not span_id or root_span_id values. Set create_if_missing to create a new named dataset.
  • Copied fields. Each row preserves input, metadata, and tags, with an origin link to the source log. Its expected comes from the log’s expected, falling back to output when expected is missing or null.
  • Missing rows. If any requested row ID is missing, the tool writes no rows.
  • Batch limits. Both add_to_dataset and edit_dataset_rows accept up to 1,000 rows per call on hosted Braintrust. Check the tool’s description for its limit and split larger batches across calls.
Use save_dataset_custom_view to give reviewers a custom view for labeling a dataset’s rows. The tool saves the view’s React code on the dataset and returns a link that opens the dataset with the view selected. To reuse a view as a template, call list_dataset_custom_views to read its code, adjust it, and save it on another dataset under a new slug. Set if_exists to replace to save a new version of an existing view. Example prompts:

Build a regression dataset from failures

Add the traces that failed the helpfulness scorer to my regression dataset, and set the expected output from the corrected responses.

Compare two prompts

Run an eval comparing these two prompts on my regression dataset, and tell me which one wins.

Re-run last week's inputs

Run my task against the inputs from last week's experiment and compare the results.
See Run evaluations and Datasets for details. Tools: run_eval, edit_dataset_rows, add_to_dataset, list_dataset_custom_views, save_dataset_custom_view.
run_eval creates an experiment and can execute your code or call AI providers, so it incurs compute and model usage.
edit_dataset_rows can permanently delete dataset rows. Review the operations your assistant proposes before approving them.

Manage project settings

Your assistant can inspect and change project defaults, including the default preprocessor used by facets and other functions unless they select their own. It can also set the end-user ID field and session ID field that Patterns uses to count affected users and conversations. Example prompts:

Check the default preprocessor

What preprocessor is my project using by default?

Change the default

Make the preprocessor you just created the project default.

Set the end-user ID field

Find the field that identifies my end users and set it as the project's end-user ID field.

Set the session ID field

Find the field that links turns of the same conversation across traces and set it as the project's session ID field.
See Projects for project settings in the UI and the REST API. Tools: get_project_settings, set_project_default_preprocessor, set_project_user_id_field, set_project_session_id_field.

Search docs and load skills

Your assistant grounds its answers in Braintrust documentation rather than guesswork, so it can explain a concept or find the right guide without leaving your editor. For multi-step work, it loads a skill first: a workflow guide that tells it the order to do things in and what to validate at each stage. Example prompts:

Ask a product question

How do I create a custom scorer in Braintrust?

Clarify a concept

What's the difference between experiments and project logs?

Follow a guided workflow

Walk me through building an evaluator and applying it to my logs.
See Skills for guidance on loading the right skill for a task. Tools: search_docs, load_braintrust_skill.

Reference

Tools

Every tool the server exposes, in the order of the capabilities above. General-purpose tools appear at the end. To run these tools from your terminal without an MCP client, use bt mcp.
ToolDescription
sql_queryQuery experiments, datasets, and logs using SQL. Pass one complete statement in query, such as SELECT id FROM project_logs('<project_id>') LIMIT 10. Supports SELECT, FROM, SAMPLE <n> PERCENT, WHERE, GROUP BY, ORDER BY, and LIMIT. FROM takes an optional shape of spans, traces, or summary. Without LIMIT, a query returns at most 10 rows. LIMIT can’t exceed 1,000.
infer_schemaDiscover the available fields, data types, and most common values in experiments, datasets, or logs. The limit parameter defaults to 1,000 fields and cannot exceed 1,000. Use fields to narrow the result to specific top-level fields such as metadata.
summarize_experimentGet aggregated performance metrics for an experiment, optionally compared to a baseline.
resolve_attachmentsResolve up to 100 attachment references from sql_query results into download URLs that expire after five minutes. Call it again to get fresh URLs. Pass org_id and each reference exactly as the query returned it. Results keep the input order and include each attachment’s upload status. A reference that can’t be resolved returns its own error without failing the rest. The tool reads metadata only and doesn’t download attachment contents.
list_recent_objectsList recently created projects, experiments, datasets, prompts, or functions you have access to.
resolve_objectConvert names to IDs or vice versa, and parse Braintrust URLs. For pattern, prompt, and scorer URLs, returns the containing project as object_id and the resource as row_id. App URLs retain their organization scope. Supply org_name to disambiguate name lookups. Ambiguous names return an error.
generate_permalinkGenerate a direct web link to a Braintrust object for sharing or bookmarking. For project_logs, project_patterns, project_prompts, and project_functions, supply project_name or the project UUID as object_id. Pass root_span_id as row_id for log entries, or the resource ID as row_id for patterns, prompts, and scorers. Supply org_name to scope a name lookup to one organization.
lookup_usersResolve Braintrust organization member IDs to names and emails. Pass a batch of user IDs, search by partial name or email, or list every member.
lookup_api_keysResolve API key and service token IDs to their names. Pass a batch of IDs, match an exact name, or list every key visible to you. Results follow existing API key and service token visibility rules.
search_patternsSearch existing project patterns by text, semantic similarity, ID, status (active, investigating, inactive, or duplicate), or quality. Pass similar_to with one or more pattern IDs or unreported pattern drafts to catch duplicates that use different wording. For listings and text searches, continue while has_more is true by passing the returned cursor with the same project and filters. Semantic searches using similar_to do not support cursors. Results include each pattern’s source_review. Omit include for summaries, or pass an array of "counts" (saved counts of affected, similar, and total traces, users, or sessions, with the dates measured), "evidence" (saved filters, monitors, and references), or "all" (full pattern page details and charts, plus closed_at).
measure_pattern_frequencyMeasure the distinct users, sessions, or traces that match a pattern in one time window of up to 14 days. It counts users when the project’s end-user ID field covers at least half the traces, sessions when session IDs cover at least half, and traces otherwise. Returns a snapshot with counts and time_window to pass to new_pattern or update_pattern as evidence.frequency.snapshot.
update_patternUpdate an existing project pattern, attach evidence to matching traces, or manage duplicate patterns. Can also set status to active, investigating, inactive, or duplicate, change severity but not clear it, set category, set or clear quality (useful or noise), post an Activity comment, record feedback that does not appear in Activity, and add a missing source_review. Posting a comment returns comment_id. Empty or whitespace-only comments are rejected. When a person has corrected the pattern’s severity or categories, new values apply only to requests made with a person’s own credentials, such as their API key or a Loop conversation they started. Other requests return a warning, and the corrected value stays. Raising an active pattern’s severity from below the project’s alert severity to at or above it sends a pattern alert. A write that reports matching traces, attaches trace evidence, or reopens a pattern requires last_seen and first_seen only when the pattern doesn’t already have them; omit either to preserve the pattern’s saved value. See reopening requirements for closed or duplicate patterns.
create_preprocessorCreate a versioned preprocessor from inline JavaScript that converts raw trace data into text.
test_preprocessor_on_traceRun a saved, global, or inline preprocessor on up to 50 span, trace, or group references without writing to the source trace. Each result is capped at 128 KiB. The text previews returned to the assistant share a separate 128 KiB budget across the whole batch. When a batch exceeds that budget, longer previews are shortened from the middle. Test fewer references at a time to get more detail.
create_facetCreate a versioned facet that extracts a short summary from spans or traces. Facet extraction always uses Braintrust’s built-in facet model.
test_facet_on_traceRun an inline facet definition on up to ten span, trace, or group references without writing the result to the source trace.
enable_topics_automationEnable Topics for a project. This seeds processing for new traffic and doesn’t rewind historical data.
set_topics_automationUpdate an existing Topics automation’s facets, topic maps, scope, filters, sampling, or timing. facets only adds facets and leaves configured facets unchanged. Each new facet gets a new topic map, which has no topics until topics are generated. To remove facets and the topic maps generated from them, use remove_facets. To remove specific topic maps, use remove_topic_map_ids. Removing a topic map also removes its topics from the Topics page. To switch a facet’s version, add the new version and remove the old one in the same call. facet_mode: "replace" returns an error.
unpin_topic_mapsRemove version pins from a Topics automation’s topic maps so new traffic uses each topic map’s latest version. Facets, filters, and other settings stay the same, and existing labels don’t change.
rewind_topics_automationRewind an existing Topics automation to process historical data from a start time or a recent window.
generate_dashboard_chart_sqlPreview a SQL chart for project logs without modifying a saved dashboard. Pass an optional view_id to return the dashboard’s saved search filters and filterScope in previewContext.
list_monitoring_viewsList a project’s saved monitor views and chart IDs.
get_monitoring_viewInspect a saved monitor view, including its options and ordered chart definitions.
create_dashboard_sqlCreate a project-scoped dashboard, optionally containing SQL charts you already previewed.
update_dashboard_sqlInsert, update, or remove SQL charts in an existing dashboard, one edit at a time or several in bulk.
list_automationsList a project’s automations, including online scoring rules, alerts, exports, retention policies, and Topics automations. Filter by automation_id, name, or kind. Returns complete configurations, so you can inspect an automation before updating it. For Topics automations, also lists each topic map’s source facet and whether it has topics.
set_automation_statusPause or activate an alert, scheduled job, or online scoring rule.
run_scheduled_loop_jobRun a saved Loop automation now, the same as clicking Run now. Requires project Update permission and doesn’t run paused automations. Sends results to the automation’s configured destinations. Returns confirmation that the run was submitted, not its output. To review the output, use list_scheduled_loop_job_runs or the automation’s Past runs tab. Each call can start another run, so don’t call it again to check progress.
list_scheduled_loop_job_runsList a scheduled Loop automation’s past runs, newest first, with each run’s thread ID, name, and Braintrust link. Other automation types have no run history. Requires project Read permission and returns only runs you can see. Returns 20 runs per page by default, up to 100 with limit. To get the next page, pass next_cursor as cursor. Continue until next_cursor is null, even if a page is empty. A continuous job can reuse one thread for several runs. To see a run’s status or output, open its link.
create_log_alertCreate an alert for individual matching project logs. Use config.interval_seconds to throttle repeated notifications.
create_environment_update_alertCreate an alert for environment updates. Use config.environment_filter to limit notifications to specific environment slugs.
create_threshold_alertCreate an alert for an aggregate over a recent window of project data, evaluated on a schedule. Use it for averages, counts, rates, percentages, percentiles, and distributions.
create_scheduled_loop_jobCreate a Loop job that runs on an interval or cron schedule over a recent window of project data.
list_slack_channelsList connected Slack workspaces and public channels for a project to resolve workspace and channel IDs before configuring Slack delivery.
create_promptCreate a versioned prompt from a completion-style prompt or chat messages. Set if_exists to replace to save a new version, or ignore to leave an existing prompt unchanged.
create_evaluatorCreate a versioned LLM or inline code evaluator. Set output_type to score for numeric scores or classification for categorical labels.
create_human_review_scoreCreate a categorical, slider, or free-form human review score for a project. Fails if the name already exists.
add_to_human_review_queueAdd up to 100 project log traces, experiment traces, or dataset rows from one source to human review by row ID. Targets project logs by default. Pass experiment_id or dataset_id to select an experiment or dataset in the same project. Optionally assign reviewers via assignee_user_ids. If any row is missing or already marked complete, the tool writes no rows.
test_evaluatorRun a saved, global, or inline evaluator against span, trace, or group references without writing results to the source trace.
update_online_scoring_ruleSave or rewind an online scoring rule that runs saved evaluator functions. New rules default to paused.
run_evalRun an experiment with a hosted dataset, inline rows, or a prior experiment as input data, any saved or inline task, and zero or more saved or inline scorers. When a prior experiment supplies the data, its outputs become expected values unless an expected value was already recorded.
edit_dataset_rowsInsert, update, or delete dataset rows. Target a dataset by ID or name, and set create_if_missing to create a new named dataset. Inserts accept optional tags and origin. Updates accept optional tags that replace the row’s tags. Tags must be unique. Pass an empty array to clear them, or omit tags to leave them unchanged. See Batch limits.
add_to_datasetCopy project log rows into a dataset by row ID, preserving their data and source links. See Copy behavior and limits.
list_dataset_custom_viewsList up to 100 of a project’s saved dataset custom views, optionally for one dataset, with each view’s code and a link that opens it.
save_dataset_custom_viewSave a custom view for labeling a dataset’s rows and return a link that opens the dataset with the view selected. Set if_exists to replace to save a new version of an existing view, or ignore to leave an existing view unchanged.
get_project_settingsReturn a project’s typed settings, including the effective default preprocessor, end-user ID field (user_id_fields), and session ID field (session_id_fields). An unset default resolves to the built-in thread preprocessor.
set_project_default_preprocessorSet or clear a project’s default preprocessor. Pass null to restore the built-in default. This changes the default used by facets and other project functions that don’t select a preprocessor explicitly.
set_project_user_id_fieldSet or clear a project’s end-user ID field. Pass field as an identifier in metadata or span_attributes, such as metadata.customer_id or span_attributes."enduser.id". By default (only_if_unset: true), it sets the field only if none is configured. Pass only_if_unset: false to replace the field, or to clear it with field: null. Requires the project’s Update permission. Returns the stored user_id_fields.
set_project_session_id_fieldSet or clear a project’s session ID field. Pass field as an identifier in metadata or span_attributes, such as metadata.conversation_id or span_attributes."session.id". By default (only_if_unset: true), it sets the field only if none is configured. Pass only_if_unset: false to replace the field, or to clear it with field: null. Requires the project’s Update permission. Returns the stored session_id_fields.
search_docsSearch Braintrust documentation to find relevant guides, API references, and code examples.
load_braintrust_skillLoad a Braintrust workflow guide or developer skill. The tool’s description and skill_name parameter list the skills available on your MCP server.
send_feedbackReport a problem with the MCP server to the Braintrust team, such as a missing capability, a tool error or malformed output, or a confusing tool schema. Agents send a report when you ask them to, or when you agree to a report they offer. Takes a feedback string and an optional context object with the affected tool’s name in tool, plus other keys such as parameter names, the error message, and object IDs. Reports refer to objects by ID and leave out project data such as trace contents and query results. Doesn’t change any data and returns Feedback recorded.
For sql_query, infer_schema, and list_recent_objects, results of 1 MB or larger return an overflow envelope instead of inline content by default. It includes overflow_url (a signed URL to the JSON result), byte_length, row_count (when available), and retrieval instructions.
  • SQL downloads. Set return_url: true to download or save a result of any size without loading it into model context.
  • SQL field values. For non-summary queries, inline and downloaded results truncate field values to preview_length characters (1024 by default). Set preview_length: -1 for untruncated values.
  • Inferred schemas. Small schemas return inline text. Overflow files contain the complete returned schema, including full sample values when requested, encoded as a JSON string.
  • Object listings. Overflow files contain the complete page of objects. The envelope includes starting_after, the ID of the page’s last object, so you can request the next page without fetching the overflow file.

Skills

Skills are workflow guides your assistant loads with load_braintrust_skill and then follows. They cover Braintrust workflows such as Topics, evaluators, patterns, and automations, as well as working with the Braintrust SDK and your application code. Loading a skill is read-only and costs one tool call. The catalog combines Braintrust’s built-in workflow guides with skills from the public Braintrust skills repository. You can also install the public skills directly into your assistant by following the repository’s installation instructions. Ask your assistant to inspect load_braintrust_skill for the available names, then load the relevant skill. Each MCP server release includes a pinned revision of the public skills alongside its built-in guides, so its contents can differ from the latest version on GitHub. Follow each skill’s prerequisites, such as access to your application repository or an authenticated Braintrust CLI. Loop uses a selected subset of this catalog. A skill available to an external MCP client is not necessarily available to Loop. Use the names advertised to the assistant making the request.

Resources

MCP resources provide contextual documentation that AI assistants can read to perform tasks more effectively.
  • docs://sdk-install - Step-by-step guidance for installing the Braintrust SDK into a project, setting up tracing, configuring auto-instrumentation, and running your first eval.
  • docs://url-formats - Reference for Braintrust URL patterns, used by the resolve_object tool.
  • docs://experiments - Background on Braintrust experiments and how to create them.
docs://sdk-install has companion resources for Python, TypeScript, Go, Java, Ruby, and C#. Your assistant reads the one matching your project automatically.

Usage and billing

MCP calls can start work that consumes Braintrust credits. Starting December 7, 2026, work that runs Loop or Patterns consumes credits, including when Loop uses your own provider key. This applies whether you start the work through MCP or the Braintrust UI. A call doesn’t consume credits simply because it uses MCP. See Braintrust credits for how Loop, Patterns, and built-in inference are billed.

Troubleshooting

Authentication fails: For OAuth, sign in again using your client’s authentication controls. If you are switching from API-key authentication, remove the manually configured Authorization header or bearer token first. For API-key authentication, verify that the key is valid and that your client sends the header as Authorization: Bearer YOUR_BRAINTRUST_API_KEY. Invalid client errors: Verify that the URL matches your organization’s MCP endpoint, including /mcp and no trailing slash. Data plane errors or empty query results: If a tool returns an error saying your organization is configured to use a different data plane, or sql_query returns no rows for projects that show data in the UI, your client is connected to the wrong data plane. Reconnect using your organization’s MCP endpoint. BYOC organizations must use the MCP URL from Settings > Data plane. Connection timeouts: Check your internet connection. Corporate networks might need to allowlist *.braintrust.dev and, for BYOC deployments, your MCP endpoint. MCP server not appearing: Restart your client, then check the server configuration and connection status using your client’s MCP documentation. Request body too large (HTTP 413): The MCP server accepts request bodies up to 100 MiB. A tool call whose payload exceeds that limit returns an HTTP 413 error. Split the input into smaller requests, or fetch the data incrementally.

Was this page helpful?

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.