Braintrust MCP
Query Braintrust logs with SQL, run evals and evaluators, manage prompts, datasets, dashboards, alerts and Topics automations through Braintrust's hosted MCP server.
Integration
- Vendor
- Braintrust MCP
- Category
- other
- Auth
- OAUTH2
- Tools
- 50
- Composio slug
braintrust_mcp
Tools
- 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. Find candidate rows with sql_query against project_logs, then pass their `id` values. Each co
- Add to human review queue
Add existing project log traces, experiment traces, or dataset rows to Human Review, optionally assigning individual reviewers. Omit experiment_id and dataset_id to target project logs, or provide exactly one to select another source in the
- Create dashboard sql
Create a project-scoped dashboard, optionally containing SQL charts that were already previewed with generate_dashboard_chart_sql. A dashboard is what list_monitoring_views and get_monitoring_view call a Monitoring view. Only call this whe
- Create environment update alert
Create an alert for environment updates. Use config.environment_filter to limit notifications to specific environment slugs, or omit it to match all environments.
- Create evaluator
Create a versioned Braintrust LLM or inline code evaluator. Set output_type to score for numeric scores or classification for categorical labels. For an LLM score evaluator, provide choice_scores. For an LLM classification evaluator, provi
- Create facet
Create a versioned Braintrust facet that extracts structured information from spans or traces. Before using this tool, load and follow "braintrust/topics-workflow" with load_braintrust_skill. Topics and topic-classification requests use th
- 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. Call once per score. Fails if the name already exists.
- Create log alert
Create an alert for individual matching project logs. config.btql_filter is a boolean expression, not a SELECT query, and config.interval_seconds throttles repeated notifications without aggregating logs.
- Create preprocessor
Create a versioned Braintrust preprocessor from inline JavaScript using the same QuickJS runtime as the Braintrust UI. When the preprocessor is for Topics or a facet, first load and follow "braintrust/topics-workflow" with load_braintrust_
- Create prompt
Create a versioned Braintrust prompt using the same function representation as project.prompts.create() and bt functions push. Provide either a completion-style prompt or chat messages. By default, the tool fails if the slug already exists
- Create protected field rule
Add a protected field rule to a scope's policy, creating the policy if needed. A policy is identified by scope_object_type (organization, project_group_projects, or project), scope_object_id, and restrict_object_type (project_log by default
- Create scheduled loop job
Create a custom Loop job that runs on an interval or cron schedule over a recent project-data window. The config must include Loop instructions and cannot include a threshold, so the job runs for every scheduled window. Delivery actions are
- Create threshold alert
Create a threshold alert for an aggregate over a recent project-data window. Use this for averages, counts, rates, percentages, percentiles, distributions, or other conditions evaluated on a schedule. config.threshold.calculation.btql_quer
- Delete protected field ruledestructive
Delete a protected field rule by id. A policy is identified by scope_object_type (organization, project_group_projects, or project), scope_object_id, and restrict_object_type (project_log by default; use dataset for dataset rules).
- Edit dataset rows
Insert, update, or delete up to 1000 Braintrust dataset rows using explicit operations. Target an existing dataset by ID or name. Set create_if_missing only when a new named dataset should be created.
- Enable topics automation
Enable Topics for a Braintrust project. Before using this tool, load and follow "braintrust/topics-workflow" with load_braintrust_skill, then inspect existing automations with list_automations using kind "topic". Provide a distinct name to
- Fail dashboard section
Report a failure for a precomputed dashboard section using the target and revision from its computation request. Keeps the last successful widgets.
- Generate dashboard chart sql
Generate a SQL-backed dashboard chart configuration for visualizing data from project_logs. The chart's query is authored directly as SQL, so it supports aggregates and shapes the structured chart definition cannot express: several percent
- Generate permalink
Generate a direct web link (permalink) to a Braintrust object for sharing or bookmarking. This tool creates URLs that link directly to projects, experiments, datasets, prompts, functions, or specific log entries in the Braintrust web appli
- Get monitoring view
Inspect a saved Monitoring view, including its options and ordered chart definitions. Pass view_id: overview to read the built-in Overview's current AI section targets, instructions, artifact paths and publication revision. The built-in Ove
- Get project settings
Get Braintrust project settings, including the configured field paths in settings.user_id_fields and settings.session_id_fields. Read these before grouping logs by user or session. If no session field is configured and each trace represents
- Get protected field policy
Get the protected field policy and its rules for a scope. A policy is identified by scope_object_type (organization, project_group_projects, or project), scope_object_id, and restrict_object_type (project_log by default; use dataset for dat
- Infer schema
Look up field paths and types when the query depends on an unknown field. Pass only the relevant fields, such as ["metadata", "output"]. Request sample values only when the query depends on a value you do not know. This searches indexed dat
- List automations
List a project's automations, including online scoring rules, alerts, exports, retention policies, Topics automations, and other automation kinds. Returns complete configurations so an existing automation can be inspected before using a spe
- 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. Use this to find an existing view to update with save_dataset_custom_view, or to reuse one as a template: c
- 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. You can use this to browse for objects and as a crude way of searching for objects (you will need to filter the results yourself). If an objec
- List scheduled loop job runs
List a saved scheduled Loop job's run threads, newest first, with thread IDs, names, and Braintrust links. Requires project read access and returns only threads visible to the caller. Pass next_cursor as cursor to continue with the same pro
- 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. Call this before setting any Slack action's workspace_id and
- Load braintrust skill
Load a guide when the request matches the workflow or SDK task described below. Use sql_query directly for ad hoc questions about Braintrust data. Available skills: - braintrust/automations-workflow: Set up, validate, and manage Braintrust
- 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. Provide exactly one of api_key_ids, name, or list_all: true. Results follow the existing API-key and service-token vis
- Lookup users
Look up human Braintrust organization members by exact user IDs, partial name or email, or an explicit request to list all users. Provide exactly one of user_ids, search, or list_all: true. Use this to resolve span_attributes.created_by_us
- Measure pattern frequency
Measure distinct users, sessions, or traces matched by a pattern in one time window of up to 14 days. Uses users when the configured end-user field covers at least half the traces, sessions when session IDs cover at least half, and traces o
- Publish dashboard section
Publish one precomputed chart, Markdown note, or insight to a registered dashboard artifact target. Use the exact project_id, view_id, group_id, chart_id and revision from the automation run. Publish widgets:[] with unchanged:true when no u
- 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. Provide the owning org_id and complete attachment references. Results preserve input order and include the original reference, upload status, a
- Resolve object
Convert names to IDs (or vice versa) and parse Braintrust URLs. App URLs retain their organization scope. Pattern, prompt, and scorer links return the containing project as object_id and the resource as row_id; query that project collection
- Rewind topics automation
Rewind an existing Topics automation to process historical data from an explicit start time or recent window. Before using this tool, load and follow "braintrust/topics-workflow" with load_braintrust_skill. Estimate the eligible population
- 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. When a prior experiment is used as dat
- Run scheduled loop job
Run a saved active scheduled Loop job using the same execution path as Run now in Braintrust. Runs its configured delivery actions and requires project update permission. Returns submission confirmation; use list_scheduled_loop_job_runs to
- Save dataset custom view
Create or update a versioned custom view that reviewers use to label rows of a dataset. Returns a link that opens the dataset with this view selected. By default, the tool fails if the slug already exists; set if_exists to replace to creat
- Search docs
Search Braintrust documentation to find relevant information and guidance. IMPORTANT: For SDK installation/setup tasks, do not use this tool. Instead, read the mcp resource docs://sdk-install This tool searches through the official
- Search patterns
Search existing patterns in a project by text, semantic similarity, ID, status, or quality. limit must be 1–100. Omit query for a listing. Ordinary listings and text searches use stable insertion order, newest first; while has_more is true,
- 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 match
- Set automation status
Pause or activate an alert, scheduled job, or online scoring rule. This controls configured online scoring rules, not reusable scorer functions. Repeating the current status is a successful no-op.
- Set project default preprocessor
Set or clear the default preprocessor for a Braintrust project. When configuring Topics, first load and follow "braintrust/topics-workflow" with load_braintrust_skill. Pass a saved preprocessor reference, a global preprocessor such as "thr
- Set project session id field
Configure the project's session or conversation ID field and create its bloom index. Inspect multiple traces to identify the metadata or span_attributes field linking turns of the same conversation. Automatic discovery must leave only_if_un
- Set project user id field
Configure the project's derived end-user ID field and create its bloom index. Inspect traces to identify the application's end user in metadata or span_attributes. Automatic discovery must leave only_if_unset true to preserve existing confi
- Set topics automation
Update an existing Topics automation's configuration. Before using this tool, load and follow "braintrust/topics-workflow" with load_braintrust_skill and inspect the current automation with list_automations using kind "topic". This changes
- Sql query
Run one read-only Braintrust SQL (BTQL) query. Use it directly when the source and fields are known. Pass one complete SELECT in query. Use FROM project_logs('<project_id>'), experiment('<id>'), or dataset('<id>'). Log rows are spans by de
Setup
- Create or open a Switchy Project.
- Open Integrations and connect Braintrust MCP.
- Authorise through oauth2. Switchy stores the connection against your org.
- Everyone in the Project can now @-mention the Braintrust MCP tools in chat.
What teammates see: by default, memories from Braintrust MCP are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Projects have used this MCP together with a given model.