This MCP server provides an interface for accessing Buildkite data through the Model Context Protocol, allowing AI tools and editors to seamlessly interact with your pipelines, builds, jobs, and tests.
First, create a Buildkite API token with the necessary permissions:
docker pull ghcr.io/buildkite/buildkite-mcp-server
docker run -it --rm -e BUILDKITE_API_TOKEN=bkua_xxxxx ghcr.io/buildkite/buildkite-mcp-server stdio
Download the latest release from GitHub Releases. On macOS, you can use Homebrew:
brew install buildkite/buildkite/buildkite-mcp-server
go install github.com/buildkite/buildkite-mcp-server@latest
# or
goreleaser build --snapshot --clean
# or
make build # uses goreleaser (snapshot)
Create a token with the following scopes for complete access:
read_clusters
- Access cluster & queue informationread_pipelines
- Pipeline configurationread_builds
- Builds, jobs & annotationsread_build_logs
- Job log outputread_user
- Current user inforead_organizations
- Organization detailsread_artifacts
- Build artifacts & metadataread_suites
- Buildkite Test Engine dataAt minimum, include these scopes:
read_builds
- Builds, jobs & annotationsread_pipelines
- Pipeline informationread_user
- User identificationUsing Docker (recommended):
# ~/.config/amp/settings.json
{
"amp.mcpServers": {
"buildkite": {
"command": "docker",
"args": [
"run", "-i", "--rm", "-e", "BUILDKITE_API_TOKEN",
"ghcr.io/buildkite/buildkite-mcp-server", "stdio"
],
"env": { "BUILDKITE_API_TOKEN": "bkua_xxxxxxxx" }
}
}
}
Using Docker:
claude mcp add buildkite -- docker run --rm -i -e BUILDKITE_API_TOKEN=bkua_xxxxxxxx ghcr.io/buildkite/buildkite-mcp-server stdio
{
"inputs": [
{
"id": "BUILDKITE_API_TOKEN",
"type": "promptString",
"description": "Enter your Buildkite Access Token",
"password": true
}
],
"servers": {
"buildkite": {
"command": "docker",
"args": [
"run", "-i", "--rm", "-e", "BUILDKITE_API_TOKEN",
"ghcr.io/buildkite/buildkite-mcp-server", "stdio"
],
"env": { "BUILDKITE_API_TOKEN": "${input:BUILDKITE_API_TOKEN}" }
}
}
}
There is a Zed editor extension available in the official extension gallery. During installation, it will ask for an API token.
Alternatively, configure manually:
// ~/.config/zed/settings.json
{
"context_servers": {
"mcp-server-buildkite": {
"settings": {
"buildkite_api_token": "your-buildkite-token-here"
}
}
}
}
Variable | Description | Default | Usage |
---|---|---|---|
BUILDKITE_API_TOKEN |
Your Buildkite API access token | Required | Authentication for all API requests |
JOB_LOG_TOKEN_THRESHOLD |
Token threshold for job logs | 0 (disabled) |
Local installations only - Downloads logs to temp directory when exceeded |
This setting controls when large job logs are downloaded to your local temporary directory instead of being returned directly. It should only be used with local installations as it:
The MCP server provides access to numerous Buildkite features:
get_cluster
, list_clusters
, get_cluster_queue
, list_cluster_queues
get_pipeline
, list_pipelines
, create_pipeline
, update_pipeline
list_builds
, get_build
, get_build_test_engine_runs
, create_build
get_jobs
, list_artifacts
, get_artifact
search_logs
, tail_logs
, get_logs_info
, read_logs
, list_test_runs
, get_test_run
current_user
, user_token_organization
, access_token
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "buildkite" '{"command":"docker","args":["run","-i","--rm","-e","BUILDKITE_API_TOKEN","ghcr.io/buildkite/buildkite-mcp-server","stdio"],"env":{"BUILDKITE_API_TOKEN":"bkua_xxxxxxxx"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"buildkite": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BUILDKITE_API_TOKEN",
"ghcr.io/buildkite/buildkite-mcp-server",
"stdio"
],
"env": {
"BUILDKITE_API_TOKEN": "bkua_xxxxxxxx"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"buildkite": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BUILDKITE_API_TOKEN",
"ghcr.io/buildkite/buildkite-mcp-server",
"stdio"
],
"env": {
"BUILDKITE_API_TOKEN": "bkua_xxxxxxxx"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect