Buildkite MCP Server
Published
At a glance
- Category
- Code & Git
- GitHub repository
- buildkite/buildkite-mcp-server
- Watch out for
- OAuth access tokens from the hosted server last up to one hour and refresh tokens up to 30 days, so long-lived headless jobs need the API token endpoint.
Buildkite publishes its own MCP server, written in Go, that exposes pipelines, builds, jobs, logs and Test Engine data to AI tools and editors. The source lives at buildkite/buildkite-mcp-server and the full docs sit under buildkite.com/docs/apis/mcp-server.
Buildkite hosts it, or you can run it locally. The remote server is hosted by Buildkite and is the recommended option for interactive use: it updates itself, cannot be pinned to a version, and has its own rate limit separate from your REST API quota. The local server is something you install yourself, as a Docker image (buildkite/mcp-server) or a release binary, and it suits automated workflows where a fixed version matters. Local requests count against your organization's normal REST API limit.
Tools are grouped into toolsets such as investigations, builds, logs, annotations, tests, clusters, packages and retries, so you can hand an agent only the slice it needs. A read-only mode drops the mutating tools.
How it connects
Your AI app
An assistant or agent that supports MCP
Buildkite MCP Server
Runs as
- Docker
- Remote (HTTP)
Gives the agent
- Failure investigation
- Builds and jobs
- Logs
- Scoped retries
- Pipeline management
- Test Engine and clusters
Buildkite
Signs in with
- OAuth / browser sign-in
- Token
What it can do
- Failure investigation
- The investigations toolset includes get_build_failure_summary and compare_builds, which matches jobs between a failing build and the last passing one on the same branch and attaches recent log lines for newly failing steps.
- Builds and jobs
- list_builds, get_build, wait_for_build, list_jobs and get_job read build state, while get_job_diagnostics and get_job_concurrency explain timings, retry policy and concurrency context for a single job.
- Logs
- search_logs, tail_logs and read_logs let an agent pull the relevant part of a job log instead of the whole thing.
- Scoped retries
- The retries toolset adds retry_job and retry_failed_jobs (with a dry_run option) and needs the retry_builds scope rather than full write_builds.
- Pipeline management
- create_pipeline and update_pipeline accept configuration or a pipeline template, plus GitHub provider settings and branch filters.
- Test Engine and clusters
- list_test_workflows, get_test_workflow and list_tests cover test suites, and get_cluster_queue_insights reports agent and job counts and wait times for a queue.
Setting it up
For the hosted server in Claude Code, run claude mcp add --transport http buildkite https://mcp.buildkite.com/mcp and sign in through OAuth when prompted. You can append ?organization=your-organization to the URL to preselect an organization. In VS Code, add a server named buildkite to mcp.json with "type": "http" and "url": "https://mcp.buildkite.com/mcp", or run MCP: Add Server from the Command Palette and choose HTTP. Cursor users can install the Buildkite plugin from the Cursor Marketplace or point a server entry at the same URL. If you want read-only access, use https://mcp.buildkite.com/mcp/readonly instead. For headless use there is https://mcp.buildkite.com/direct, which takes an Authorization: Bearer header with a Buildkite API token. To run it locally, use the buildkite/mcp-server Docker image (tag a version, such as buildkite/mcp-server:<version>, if you need it fixed) or a release binary, and limit tools with flags like buildkite-mcp-server stdio --enabled-toolsets retries.
claude mcp add --transport http buildkite https://mcp.buildkite.com/mcpIf the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Ask why the latest main build failed and get a summary of the failing steps with log excerpts.
- Compare a broken build against the last green build on the same branch to see which steps started failing.
- Retry jobs that hit infrastructure failures, after checking the dry run output first.
- Check queue wait times and agent counts for a cluster queue when builds seem slow to start.
- Create or update a pipeline from a template without leaving the editor.
Limitations and things to watch
- OAuth access tokens from the hosted server last up to one hour and refresh tokens up to 30 days, so long-lived headless jobs need the API token endpoint.
- The /direct token endpoint is limited to 50 requests per minute per user, and the token's scopes decide which calls succeed.
- The hosted server updates automatically and cannot be pinned, so tool behaviour can change under you; pin a Docker tag on the local server if that matters.
- The standard endpoint carries write scopes, so an agent can create pipelines or retry jobs unless you use the read-only endpoint, --read-only or a narrow toolset.
- Some tools depend on organization features, such as Job Diagnostics, Cluster Insights or the RetryBuildsScope flag, and fail if those are not enabled.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /buildkite/buildkite-mcp-server
- buildkite.com /docs/apis/mcp-server
- buildkite.com /docs/apis/mcp-server/remote/configuring-ai-tools
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.