Bitbucket MCP
v0.22.1Bitbucket Cloud MCP in Go: complete API auto-generated from spec, customizable prompts.
Values you need
| Variable | What it is | |
|---|---|---|
BITBUCKET_USERNAME | optional | Your Bitbucket username/ email (required for Basic auth, omit for workspace/repo access tokens) |
BITBUCKET_TOKEN | required secret | Your Bitbucket API token or OAuth2 access token |
Docker discovery passed
Requires Docker
Run in a terminal
claude mcp add bitbucket-mcp -e 'BITBUCKET_TOKEN=<BITBUCKET_TOKEN>' -- docker run -i --rm -e BITBUCKET_TOKEN ghcr.io/fabianschurig/bitbucket-mcp:0.22.1Add to
claude_desktop_config.json{
"mcpServers": {
"bitbucket-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.22.1"
],
"command": "docker",
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"bitbucket-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.22.1"
],
"command": "docker",
"env": {
"BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "BITBUCKET_TOKEN",
"id": "bitbucket-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"bitbucket-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.22.1"
],
"command": "docker",
"env": {
"BITBUCKET_TOKEN": "${input:bitbucket-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.bitbucket-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "BITBUCKET_TOKEN", "ghcr.io/fabianschurig/bitbucket-mcp:0.22.1"]
env = { "BITBUCKET_TOKEN" = "<BITBUCKET_TOKEN>" }For AI agents
- Ask the user for: BITBUCKET_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: bitbucket_branch-restrictions, bitbucket_branching-model, bitbucket_commit-statuses, bitbucket_commits, bitbucket_deployments, bitbucket_downloads, bitbucket_hooks, bitbucket_pipelines, ….
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json