Bitbucket MCP

v0.22.1
io.github.FabianSchurig/bitbucket-mcp Checked 1 hour ago Published 2 days ago

Bitbucket Cloud MCP in Go: complete API auto-generated from spec, customizable prompts.

Values you need

VariableWhat it is
BITBUCKET_USERNAMEoptional Your Bitbucket username/ email (required for Basic auth, omit for workspace/repo access tokens)
BITBUCKET_TOKENrequired 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.1
Add 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

  1. Ask the user for: BITBUCKET_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json