Bitbucket MCP

v0.2.0
io.github.adarshba/bitbucket-mcp Checked 12 hours ago Published 21 hours ago

Bitbucket MCP for Data Center: PR review with multi-line comments, plus Code Mode over the REST API.

Values you need

VariableWhat it is
BITBUCKET_BASE_URLrequired Bitbucket Data Center base URL, e.g. https://bitbucket.example.com
BITBUCKET_TOKENrequired secret HTTP access token (sent as Bearer)
BITBUCKET_READ_ONLYoptional true hides and refuses every write
BITBUCKET_TOOLSoptional all, curated or code

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add bitbucket-mcp -e 'BITBUCKET_BASE_URL=<BITBUCKET_BASE_URL>' -e 'BITBUCKET_TOKEN=<BITBUCKET_TOKEN>' -- npx -y @adarsh.ba/bitbucket-mcp@0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "bitbucket-mcp": {
      "args": [
        "-y",
        "@adarsh.ba/bitbucket-mcp@0.2.0"
      ],
      "command": "npx",
      "env": {
        "BITBUCKET_BASE_URL": "<BITBUCKET_BASE_URL>",
        "BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "bitbucket-mcp": {
      "args": [
        "-y",
        "@adarsh.ba/bitbucket-mcp@0.2.0"
      ],
      "command": "npx",
      "env": {
        "BITBUCKET_BASE_URL": "<BITBUCKET_BASE_URL>",
        "BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BITBUCKET_BASE_URL",
      "id": "bitbucket-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "BITBUCKET_TOKEN",
      "id": "bitbucket-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "bitbucket-mcp": {
      "args": [
        "-y",
        "@adarsh.ba/bitbucket-mcp@0.2.0"
      ],
      "command": "npx",
      "env": {
        "BITBUCKET_BASE_URL": "${input:bitbucket-base-url}",
        "BITBUCKET_TOKEN": "${input:bitbucket-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.bitbucket-mcp]
command = "npx"
args = ["-y", "@adarsh.ba/bitbucket-mcp@0.2.0"]
env = { "BITBUCKET_BASE_URL" = "<BITBUCKET_BASE_URL>", "BITBUCKET_TOKEN" = "<BITBUCKET_TOKEN>" }

For AI agents

  1. Ask the user for: BITBUCKET_BASE_URL, 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: get_pull_request, list_pull_requests, get_pull_request_diff, create_pull_request, update_pull_request, merge_pull_request, add_comment, manage_comment, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json