Bitbucket MCP Server logo

Bitbucket MCP Server

Connects AI assistants to Bitbucket Cloud for repository, pull request, pipeline, issue, and source management.

Install Bitbucket MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "bitbucket-mcp-server-2": {
      "command": "uvx",
      "args": [
        "--from",
        "bitbucket-mcp-py",
        "bitbucket-mcp"
      ],
      "env": {
        "BITBUCKET_USERNAME": "YOUR_VALUE_HERE",
        "BITBUCKET_TOKEN": "YOUR_VALUE_HERE",
        "BITBUCKET_WORKSPACE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 96 tools correctly ().

Overview

Bitbucket MCP Server connects MCP-compatible AI assistants to Bitbucket Cloud through a Python-based stdio process. It exposes more than 60 tools for repositories, pull requests, reviews, comments, pipelines, issues, commits, source files, deployments, permissions, and branch restrictions. Run it with uvx or install it with pip, then provide Bitbucket credentials and a workspace slug. Reach for it when an agent needs to inspect or manage Bitbucket development workflows using natural-language requests.

Use cases

  • Review pull requests and summarize diffs, comments, tasks, and statuses
  • Monitor pipeline runs, steps, logs, and build results
  • Create and update pull requests, issues, and review comments
  • Browse repository files, directories, commits, and tags
  • Manage Bitbucket environments, permissions, and branch restrictions

Key features

  • 60+ Bitbucket Cloud MCP tools
  • Pull request review and lifecycle management
  • Pipeline execution and configuration tools
  • Issue, comment, commit, and source browsing
  • MCP 2025 tool safety annotations
  • Configurable tool availability and reduced responses

Tools96

What Bitbucket MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~22.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 78d

What it can do

From the 96 tools this server returned when we ran it; 96 declare their own safety hints.

Can delete or modify data · 16Handles credentials · 3Makes network requests · 58Read-only tools · 80
Network at startup2 connections
Files written at startupNone

Observed 2026-11-15 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4h ago via OSV.dev · bitbucket-mcp-py (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed96Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Bitbucket MCP Server works

What Bitbucket MCP Server does

Bitbucket MCP Server exposes Bitbucket Cloud operations as MCP tools for AI assistants. Its coverage spans repository discovery, pull request management, code review, CI pipelines, issues, commits, source browsing, deployments, branch restrictions, and workspace permissions.

The tool set includes more than 60 operations. Agents can list repositories, inspect files and directories, read commits and diffs, review pull request activity, manage comments and tasks, work with issues, and query build or pipeline status. Write operations cover actions such as creating pull requests, approving or declining them, merging them when enabled, starting pipelines, editing issues, and managing selected configuration resources.

Responses are reduced to remove API noise, which keeps returned data more focused for language-model use. Tools also publish MCP 2025 annotations, including read-only, destructive, idempotent, and open-world hints, along with human-readable titles.

How it works

The server runs as a local stdio MCP process. The recommended launch command uses uvx to fetch the bitbucket-mcp-py package and invoke its bitbucket-mcp entry point:

bash
uvx --from bitbucket-mcp-py bitbucket-mcp

It connects to Bitbucket Cloud using a Bitbucket email address, API token, and workspace slug supplied through environment variables. Credentials can also be stored in the system keychain. An MCP client starts the process and passes requests to the exposed Bitbucket tools.

Tool availability can be changed through configs/tools.json or the BITBUCKET_TOOLS_CONFIG environment variable. This allows deployments to limit the operations presented to an assistant.

Setup and configuration

Install with uvx for an isolated execution environment, or use pip install bitbucket-mcp-py for a persistent installation. A local editable install is available for project development, and Docker can be used for container-based execution.

Configure these environment variables in the MCP client's server definition:

  • BITBUCKET_USERNAME: the Bitbucket email address.
  • BITBUCKET_TOKEN: the Bitbucket API token.
  • BITBUCKET_WORKSPACE: the workspace slug.

The token should use explicit scopes matching the operations the assistant needs, such as repository read access or pull-request read/write access. The server is listed with setup examples for Claude Code, OpenAI Codex, Cursor, and VS Code with GitHub Copilot.

Tools and capabilities

Available tool groups include:

  • Repository listing, repository details, and tag retrieval.
  • Pull request creation, updates, approvals, review requests, draft handling, merging, and status inspection.
  • Pull request comments, tasks, activity, diffs, diff statistics, patches, commits, and review summaries.
  • Pipeline runs, steps, logs, execution control, configuration, variables, schedules, and caches.
  • Issue and issue-comment management, including creation, updates, and deletion.
  • Commit lookup and commit comments, plus file-content and directory browsing.
  • Deployment environments, deployments, deployment variables, branch restrictions, workspace members, and permission queries.

Several operations are disabled by default because they are destructive, write-oriented, safety-sensitive, unsupported by the Bitbucket API, or unsuitable for AI review. Examples include merging pull requests, stopping pipelines, deleting issues or comments, changing pipeline variables and schedules, modifying deployment variables, and creating or updating branch restrictions. The patch retrieval tool is also disabled by default because it returns a git am-formatted patch.

Limitations and notes

This server targets Bitbucket Cloud and requires credentials with scopes appropriate to the requested actions. Disabled tools can be controlled through the tool configuration, but enabling write or destructive operations changes what an assistant can do in the workspace. The package name on PyPI is bitbucket-mcp-py, while the executable name is bitbucket-mcp.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Bitbucket MCP Server

Bitbucket MCP Server is an MCP server that connects AI assistants to Bitbucket Cloud. Its main tools manage repositories, pull requests, comments, tasks, pipelines, issues, commits, source files, deployments, permissions, and branch restrictions through natural-language requests.

Install it with uvx using `uvx --from bitbucket-mcp-py bitbucket-mcp`, or install the package with pip. The package is named `bitbucket-mcp-py`, while the executable is `bitbucket-mcp`. Docker and editable local installation are also available.

Set `BITBUCKET_USERNAME`, `BITBUCKET_TOKEN`, and `BITBUCKET_WORKSPACE`. Use the Bitbucket email address for the username, an API token with explicit scopes for the token, and the workspace slug for the workspace.

Yes, Bitbucket MCP Server works with Cursor through a stdio MCP configuration. Add the `uvx` command and the three Bitbucket environment variables to Cursor's `~/.cursor/mcp.json` file.

Yes, tool availability can be configured with `configs/tools.json` or the `BITBUCKET_TOOLS_CONFIG` environment variable. Several destructive or write-oriented tools are disabled by default, including pull request merging and pipeline stopping.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBitbucket MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bitbucket-mcp-server-2?style=directory)](https://allmcps.com/mcp/bitbucket-mcp-server-2)
HTML Embed
<a href="https://allmcps.com/mcp/bitbucket-mcp-server-2"><img src="https://allmcps.com/api/badge/bitbucket-mcp-server-2?style=directory" alt="Bitbucket MCP Server on AllMCPs" /></a>