Is the Braintrust MCP server safe? What it can reach
What the Braintrust MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Braintrust runs an official hosted MCP server at api.braintrust.dev/mcp, with an EU endpoint and a BYOC option. You sign in with OAuth or send an API key. Its tools query logs and datasets and also create alerts, run evals and edit dataset rows, with the permissions of the account or key. Braintrust says to require client confirmation for write tools.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Braintrust MCP server (hosted) | Official | active |
It runs as a hosted remote server. The documented endpoint is https://api.braintrust.dev/mcp.
How it signs in
OAuth 2.0 with dynamic client registration, or an API key sent as a Bearer token. The server acts with the permissions of the signed-in account or the key’s owner, so project Read, Update and Create checks still apply.
What its tools can do
| Kind | Tools |
|---|---|
| Read | sql_query, infer_schema, summarize_experiment, resolve_attachments, list_recent_objects, resolve_object, generate_permalink, lookup_users, lookup_api_keys, search_patterns, measure_pattern_frequency, test_preprocessor_on_trace, test_facet_on_trace, test_evaluator, generate_dashboard_chart_sql, list_monitoring_views, get_monitoring_view, list_automations, list_scheduled_loop_job_runs, list_slack_channels, list_dataset_custom_views, get_project_settings, search_docs, load_braintrust_skill |
| Write | create_preprocessor, create_facet, enable_topics_automation, unpin_topic_maps, rewind_topics_automation, create_dashboard_sql, create_log_alert, create_environment_update_alert, create_threshold_alert, create_scheduled_loop_job, set_automation_status, run_scheduled_loop_job, create_prompt, create_evaluator, create_human_review_score, add_to_human_review_queue, update_online_scoring_rule, run_eval, add_to_dataset, save_dataset_custom_view, send_feedback |
| Can’t be undone | edit_dataset_rows, set_topics_automation, update_dashboard_sql, update_pattern, set_project_user_id_field, set_project_session_id_field, set_project_default_preprocessor |
Braintrust’s docs don’t label tools by risk, so this split follows each tool’s description. The test_* tools don’t write to the source trace but still run code or model calls. run_eval, rewind_topics_automation and Loop and Patterns work use credits. edit_dataset_rows can permanently delete rows, and the docs say to review those operations before you approve them.
Built-in limits
| Option | What it does |
|---|---|
Client confirmation | Braintrust says to configure your client to require confirmation before any write tool runs. |
Account and project permissions | Every tool acts with the signed-in user’s or key owner’s permissions. add_to_dataset and run_scheduled_loop_job need Update on the project. |
Regional endpoints | Use api-eu.braintrust.dev/mcp for the EU data plane, or the MCP URL under Settings, then Data plane, for BYOC. |
Dedicated API key | Keys are created under Settings, then API keys, so you can issue one for this client and revoke it alone. |
The risks
- sql_query and resolve_attachments read production traces, datasets and attachments, which can hold prompts, outputs and user data that then enter the agent’s context.
- edit_dataset_rows can permanently delete up to 1,000 rows per call, and set_topics_automation can delete topic maps and their topics.
- run_eval and run_scheduled_loop_job execute code and call AI providers, so an injected instruction can spend compute and credits.
- create_log_alert, create_threshold_alert and the automation tools change alerting and scoring that your team relies on, and set_project_default_preprocessor changes how facets behave project-wide.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http braintrust https://api.braintrust.dev/mcpClaude Code names MCP tools mcp__braintrust__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__braintrust__set_project_user_id_field",
"mcp__braintrust__set_project_session_id_field",
"mcp__braintrust__set_project_default_preprocessor",
"mcp__braintrust__set_topics_automation"
],
"ask": [
"mcp__braintrust__edit_dataset_rows",
"mcp__braintrust__update_dashboard_sql",
"mcp__braintrust__update_pattern",
"mcp__braintrust__run_eval",
"mcp__braintrust__rewind_topics_automation",
"mcp__braintrust__run_scheduled_loop_job",
"mcp__braintrust__create_log_alert",
"mcp__braintrust__create_threshold_alert",
"mcp__braintrust__set_automation_status",
"mcp__braintrust__update_online_scoring_rule"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.braintrust]
url = "https://api.braintrust.dev/mcp"
disabled_tools = ["set_project_user_id_field", "set_project_session_id_field", "set_project_default_preprocessor", "set_topics_automation"]Checklist
- Sign in with an account that has access only to the projects you want the agent to see.
- Turn on your client’s confirmation for every write tool.
- Read each edit_dataset_rows operation before you approve it.
- Prefer the bt CLI for AI agents that have an authenticated shell, as Braintrust’s docs suggest.
- Revoke the API key or OAuth grant when the task ends.
Checked against the vendor documentation on November 25, 2026. Braintrust MCP integration docs · Braintrust MCP tool reference
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing