Bitbucket MCP
v0.2.0Bitbucket MCP for Data Center: PR review with multi-line comments, plus Code Mode over the REST API.
Values you need
| Variable | What it is | |
|---|---|---|
BITBUCKET_BASE_URL | required | Bitbucket Data Center base URL, e.g. https://bitbucket.example.com |
BITBUCKET_TOKEN | required secret | HTTP access token (sent as Bearer) |
BITBUCKET_READ_ONLY | optional | true hides and refuses every write |
BITBUCKET_TOOLS | optional | 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.0Add 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
- 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.
- 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: get_pull_request, list_pull_requests, get_pull_request_diff, create_pull_request, update_pull_request, merge_pull_request, add_comment, manage_comment, ….
- 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