daniloneto/bitbucket-mcp

πŸ”„ Version Control🟒 Verified Active
0 Views
0 Installs

πŸ“‡ ☁️ - MCP server for Bitbucket Cloud focused on pull-request review β€” read PRs, diffs, comments, commits, files and the repo tree; post inline/general comments, approve, or request changes. Uses Atlassian API tokens (stdio).

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "daniloneto-bitbucket-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "daniloneto-bitbucket-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

bitbucket-mcp

English Β· PortuguΓͺs (BR)

MCP server for Bitbucket Cloud, focused on the first pass of pull-request review. stdio transport, for use with Claude Code or Claude Desktop.

Why an API token (and not an app password)

Bitbucket Cloud app passwords have been in brownout since 2026-06-09 and are removed on 2026-07-28. This server uses an API token, and the HTTP Basic pair is email:token β€” the Bitbucket REST API requires the Atlassian account email, not the username. Using the username results in a silent 401.

1. Create the API token

  1. Bitbucket top bar β†’ Settings β†’ Atlassian account settings β†’ Security.
  2. Create and manage API tokens β†’ Create API token with scopes.
  3. Name it, set an expiry, and select Bitbucket as the app.
  4. Minimum scopes for PR review:
    • read:repository:bitbucket (read repositories, diffs, files)
    • read:pullrequest:bitbucket (read PRs and comments)
    • write:pullrequest:bitbucket (comment, approve, request changes)
  5. Copy the token (shown only once).

2. Install and build

npm install
npm run build

This generates dist/index.js (the server binary).

3. Configure in Claude Code

Add this to the project's .mcp.json (or to your global Claude Code config):

{
  "mcpServers": {
    "bitbucket": {
      "command": "node",
      "args": ["/absolute/path/to/bitbucket-mcp/dist/index.js"],
      "env": {
        "BITBUCKET_EMAIL": "your-email@domain.com",
        "BITBUCKET_API_TOKEN": "your_api_token",
        "BITBUCKET_WORKSPACE": "your_workspace"
      }
    }
  }
}

Alternative, via the CLI:

claude mcp add bitbucket \
  -e BITBUCKET_EMAIL=your-email@domain.com \
  -e BITBUCKET_API_TOKEN=your_api_token \
  -e BITBUCKET_WORKSPACE=your_workspace \
  -- node /absolute/path/to/bitbucket-mcp/dist/index.js

BITBUCKET_WORKSPACE is optional; if omitted, each tool must be given workspace explicitly.

Tools

Read (no side effects):

ToolPurpose
list_repositoriesRepositories in the workspace
list_pull_requestsPRs by state (OPEN/MERGED/DECLINED/SUPERSEDED)
get_pull_requestPR metadata (description, branches, reviewers, approvals)
get_pull_request_diffUnified diff β€” the basis for the review
get_pull_request_commentsExisting comments (general and inline)
get_pull_request_commitsPR commits
list_directoryLists the repo file tree at a commit/branch (explore the project)
get_fileContents of a file (default branch if commit is omitted)

Write (mutate state in Bitbucket):

ToolPurpose
add_pull_request_commentComment on the PR; path + line together = inline
approve_pull_requestApprove the PR
request_changes_pull_requestMark "request changes"

Security note

The token grants read/write access to the workspace's PRs. Treat it as a secret: keep it in an environment variable / secret manager, and never commit it. For a first-pass subagent that only suggests review without mutating anything, use a read-only scoped token β€” that way approve/comment fail on permission rather than relying on prompt discipline.

License

MIT Β© JosΓ© Danilo

Related MCP Servers

modelcontextprotocol/server-gitlabVerified

πŸ“‡ ☁️ 🏠 - GitLab platform integration for project management and CI/CD operations

πŸ”„ Version Control2 views
modelcontextprotocol/server-gitVerified

🐍 🏠 - Direct Git repository operations including reading, searching, and analyzing local repositories

πŸ”„ Version Control1 views
adhikasp/mcp-git-ingest

🐍 🏠 - Read and analyze GitHub repositories with your LLM

πŸ”„ Version Control0 views
costajohnt/oss-autopilot

πŸ“‡ ☁️ 🏠 🍎 πŸͺŸ 🐧 - Open source contribution manager with PR tracking across repos, issue discovery, CI failure diagnosis, and maintainer response drafting. Available as CLI, MCP server, and Claude Code plugin.

πŸ”„ Version Control0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Active

Recent health check succeeded.

Last checked: 7/28/2026, 9:23:26 PM

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.