Bitbucket MCP Server
Review pull requests, run pipelines and manage Bitbucket Cloud repos from an AI assistant
Bitbucket MCP Server is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI
- Runs
- Locally
- What it can do
- Can change data (6 tools)
- Version
- 1.29.2
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add bitbucket-mcp -- uvx bitbucket-mcp-pyAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"bitbucket-mcp": {
"command": "uvx",
"args": [
"bitbucket-mcp-py"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"bitbucket-mcp": {
"command": "uvx",
"args": [
"bitbucket-mcp-py"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"bitbucket-mcp": {
"command": "uvx",
"args": [
"bitbucket-mcp-py"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"bitbucket-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"bitbucket-mcp-py"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add bitbucket-mcp -- uvx bitbucket-mcp-pyOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.bitbucket-mcp]
command = "uvx"
args = ["bitbucket-mcp-py"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"bitbucket-mcp": {
"command": "uvx",
"args": [
"bitbucket-mcp-py"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Or run: gemini mcp add -s user bitbucket-mcp uvx -- bitbucket-mcp-py
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "bitbucket-mcp": { "command": "uvx", "args": [ "bitbucket-mcp-py" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Bitbucket MCP Server
This Python server covers a wide slice of the Bitbucket Cloud API: repositories, pull requests, comments and tasks, diffs, commits, source browsing, issues, deployments and environments, branch restrictions and workspace permissions. The README counts 60-plus tools, and every tool carries MCP read-only and destructive annotations so clients can auto-approve reads and warn on risky calls.
Pull request work goes beyond basics: draft pull requests, suggested reviewers, a review summary, pending-review discovery and a batch review submission. Pipeline support includes runs, steps and logs plus variables, schedules and caches. Merging a pull request and stopping a pipeline are disabled by default for safety, and the tool set can be trimmed through a tools.json config.
Responses are slimmed to save tokens. Authentication uses a scoped Bitbucket API token (a global token without scopes does not work) along with username and workspace in environment variables or the system keychain. Run it with uvx from PyPI; it is MIT-licensed.
Tools this server provides (14)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 6 of 14 tools change data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- list_repositoriesName suggests: reads
- Lists repositories in the workspace.
- get_pull_requestsName suggests: reads
- Lists pull requests.
- create_pull_requestName suggests: changes
- Creates a pull request.
- approve_pull_requestName suggests: changes
- Approves a pull request.
- merge_pull_requestName suggests: changes
- Merges a pull request; disabled by default.
- get_pull_request_diffName suggests: reads
- Returns a pull request's diff.
- add_pull_request_commentName suggests: changes
- Adds a comment to a pull request.
- submit_pull_request_batch_review
- Submits a batch review.
- list_pipeline_runsName suggests: reads
- Lists pipeline runs.
- get_pipeline_step_logsName suggests: reads
- Reads pipeline step logs.
- run_pipelineName suggests: changes
- Triggers a pipeline.
- stop_pipelineName suggests: changes
- Stops a pipeline; disabled by default.
- list_issuesName suggests: reads
- Lists issues.
- get_file_contentName suggests: reads
- Reads a file from the repository.
What it does
- Pull request lifecycle
- Create, update, approve, decline and comment, with draft support.
- Pipeline control
- Inspect runs, steps and logs, and manage variables and schedules.
- Safety defaults
- Merge and stop-pipeline tools are off until enabled.
- Tool annotations
- Read-only and destructive hints guide client prompts.
- Configurable toolset
- Enable or disable tools through a JSON file or env variable.
Good for
- Summarise a pull request's diff and comments
- Find pull requests waiting for your review
- Check why a pipeline run failed from step logs
- Manage issues and commit comments by chat
- Audit branch restrictions and workspace permissions
Pricing
Open source
MIT licence
Bitbucket MCP Server FAQ
What credentials does Bitbucket MCP Server need?
A Bitbucket email, a scoped API token and your workspace slug.
Can Bitbucket MCP Server merge pull requests?
Only if you enable merge_pull_request, which is off by default.
Which clients are documented?
Claude Code, OpenAI Codex, Cursor and VS Code with GitHub Copilot.
How is Bitbucket MCP Server installed?
uvx --from bitbucket-mcp-py bitbucket-mcp.
Is Bitbucket MCP Server free?
Yes. Bitbucket MCP Server is open source, so you can use and self-host it for free.
How do I add Bitbucket MCP Server to Claude Code?
Run this command in your terminal: claude mcp add bitbucket-mcp -- uvx bitbucket-mcp-py
What are the best alternatives to Bitbucket MCP Server?
The closest alternatives to Bitbucket MCP Server are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


