Provides tools for managing Pull Requests on Bitbucket Cloud, including creating, listing, updating, and reviewing PRs, adding comments, and managing reviewers and workspace members.
Bitbucket MCP Server
A FastMCP server for managing Pull Requests on Bitbucket Cloud. Create, list, view, update, and review PRs directly from Claude.
Features
Create PRs with automatic default reviewer support
List and view PR details
Update PR title, description, destination branch, and reviewers
Approve, unapprove, or request changes on PRs
Add comments to PRs
List workspace members for reviewer selection
Installation
Or with uv:
Getting an API Token
Go to Atlassian API Tokens
Click Create API token
Give it a name (e.g., "Bitbucket MCP")
Copy the generated token
Configuration
Option 1: Interactive Setup (Recommended)
Use the setup_bitbucket tool:
This stores credentials securely in ~/.bitbucket-mcp/config.json with 600 permissions.
Option 2: Environment Variables
Claude Desktop Configuration
Add to your claude_desktop_config.json:
Or with uv:
Available Tools
Configuration
setup_bitbucket
Configure Bitbucket credentials.
get_config_status
Check if Bitbucket is configured.
Workspace
list_workspace_members
List members of a workspace. Useful for finding reviewers.
get_default_reviewers
Get the default reviewers configured for a repository.
Pull Requests
create_pull_request
Create a new Pull Request. Automatically includes default reviewers.
list_pull_requests
List PRs for a repository.
get_pull_request
Get details of a specific PR.
update_pull_request
Update an existing PR.
Reviews
approve_pull_request
Approve a PR.
unapprove_pull_request
Remove your approval from a PR.
request_changes_pull_request
Request changes on a PR.
add_pull_request_comment
Add a comment to a PR (supports markdown).
Example Usage with Claude
First time setup:
"Set up Bitbucket with my workspace 'mycompany', username 'me@example.com', and API token 'abc123'"
Create a PR:
"Create a PR in my-repo from feature/login to main titled 'Add user login'"
List open PRs:
"Show me all open PRs in my-repo"
Review a PR:
"Approve PR #42 in my-repo"
Add a comment:
"Add a comment to PR #42 saying 'LGTM!'"
Find reviewers:
"List all members in my workspace so I can add them as reviewers"
Security
Credentials are stored in
~/.bitbucket-mcp/config.jsonwith 600 permissions (owner-only access)API tokens are never logged or exposed in error messages
Environment variables are supported for CI/CD scenarios
License
MIT License - see LICENSE for details.