Is the Buildkite MCP server safe? What it can reach
What the Buildkite MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Buildkite runs an official hosted MCP server at mcp.buildkite.com and also publishes a local Docker server. The hosted server signs in with OAuth for one organization, or takes an API token. It can start, cancel and retry builds, edit pipelines and create secrets. A separate /mcp/readonly URL grants read scopes only, and it is the setting to use first.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Buildkite MCP server (hosted) | Official | active |
| buildkite/buildkite-mcp-server (local) | Official | active |
It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://mcp.buildkite.com/mcp.
How it signs in
OAuth limits access to one organization, with access tokens that last up to an hour. A long-lived Buildkite API access token works at the /direct URL and for the local server, and carries whatever scopes you gave it.
| Scope or permission | Access |
|---|---|
read_builds | read |
read_build_logs | read |
read_suites | read |
read_job_env | read |
write_builds | write |
write_pipelines | write |
write_clusters | admin |
write_secrets | admin |
What its tools can do
| Kind | Tools |
|---|---|
| Read | access_token, current_user, user_token_organization, list_clusters, get_cluster, list_cluster_queues, get_cluster_queue, list_cluster_secrets, get_cluster_secret, list_cache_registries, get_cache_registry, list_agents, get_agent, list_pipelines, get_pipeline, list_pipeline_schedules, get_pipeline_schedule, list_builds, get_build, get_build_test_engine_runs, list_jobs, get_job, get_job_env, search_logs, tail_logs, read_logs, list_artifacts_for_build, list_artifacts_for_job, get_artifact, list_annotations, list_tests, get_test, list_test_runs, get_test_run, get_failed_executions |
| Write | create_cluster, update_cluster, create_cluster_queue, update_cluster_queue, create_cache_registry, update_cache_registry, set_default_cache_registry, create_cluster_secret, create_pipeline, update_pipeline, create_pipeline_schedule, update_pipeline_schedule, create_annotation |
| Can’t be undone | create_build, cancel_build, rebuild_build, retry_job, unblock_job, pause_cluster_queue_dispatch, resume_cluster_queue_dispatch, delete_cache_registry |
This list comes from the hosted server’s tools page. The local server’s README names a different set, including retry_failed_jobs, wait_for_build, create_webhook and update_package_registry, and groups tools into toolsets.
Built-in limits
| Option | What it does |
|---|---|
/mcp/readonly endpoint | Issues read scopes only, so only tools needing read_ scopes, plus tools that need no scope, are available. It limits the MCP connection, not a separately signed-in bk CLI. |
Toolsets | The hosted server can limit which toolsets are available. The local server takes --enabled-toolsets. |
--read-only (local) | The local server drops tools that change data. |
Token scopes | Give an API token only the read_ scopes, and use a separate token for each agent with an expiry. |
dry_run (local) | retry_failed_jobs takes dry_run to preview a retry without running it. |
Revocation | Revoke OAuth under Connected Apps, or API tokens under API Access Tokens. |
The risks
- create_build, rebuild_build, retry_job and unblock_job can start builds and release blocked deploy steps, so an injected instruction could kick off a production deploy.
- update_pipeline and create_pipeline can change the steps a pipeline runs, which makes agents run attacker-chosen commands.
- get_job_env reads job environment variables, and create_cluster_secret and the cluster tools reach infrastructure settings, when the matching scopes are granted.
- Build logs and annotations hold text from commits and tests, so the output of read_logs can carry injected instructions back to the agent.
- A long-lived API token on the /direct URL keeps its scopes until it expires or you revoke it.
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 buildkite https://mcp.buildkite.com/mcp/readonlyClaude Code names MCP tools mcp__buildkite__<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__buildkite__delete_cache_registry",
"mcp__buildkite__unblock_job",
"mcp__buildkite__create_cluster_secret"
],
"ask": [
"mcp__buildkite__create_build",
"mcp__buildkite__rebuild_build",
"mcp__buildkite__retry_job",
"mcp__buildkite__cancel_build",
"mcp__buildkite__update_pipeline",
"mcp__buildkite__create_pipeline"
]
}
}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.buildkite]
url = "https://mcp.buildkite.com/mcp/readonly"
disabled_tools = ["delete_cache_registry", "unblock_job", "create_cluster_secret"]Checklist
- Start with the /mcp/readonly URL and add write access only when you need it.
- Prefer OAuth over a long-lived token, and give any token only read_ scopes and an expiry.
- Approve every build, retry and pipeline change by hand.
- Treat logs and annotations as untrusted text.
Checked against the vendor documentation on November 25, 2026. Buildkite MCP server docs · Buildkite MCP server tools · buildkite/buildkite-mcp-server README
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