New advertisers: 50% off your first month with code FIRSTMONTHSee slots
lahma avatar

Bitbucket Mcp

lahma/bitbucket-mcp

Bitbucket Cloud pull requests and Pipelines: review, comment, merge, and diagnose failing builds.

GitHub stars
1
tools
22
auth
Secret needed
transport
STDIO
env vars
6
last updated
Nov 18, 2026
View on GitHub

What it does

  • Reads pull requests with listPullRequests, getPullRequest, getPullRequestDiff, and getPullRequestComments, plus build state via listPipelines, getPipeline, and getPipelineStepLog
  • Writes reviews with addPullRequestComment, resolvePullRequestComment, addPullRequestTask, and setPullRequestReviewStatus; merging and declining go through mergePullRequest and declinePullRequest
  • Requires a Bitbucket Cloud API token with pull-request and pipeline read scopes, runs as a local binary, and reads only Bitbucket Cloud, not Data Center
  • Designed for reviewing code, checking merge blockers, and finding the failing step behind a red build without opening the web UI

Tools

22 tools

Public tool metadata for what this MCP can expose to an agent.

listPullRequestsLists a repository's pull requests, most recently updated first — a summary per pull request (id, title, state, author, branches, `closeSourceBranch`, web URL).

Lists a repository's pull requests, most recently updated first — a summary per pull request (id, title, state, author, branches, `closeSourceBranch`, web URL).

No parameter schema in public metadata yet.

getPullRequestReads one pull request in full: title, description, state, branches, web URL, reviewers and participants with their approvals.

Reads one pull request in full: title, description, state, branches, web URL, reviewers and participants with their approvals.

No parameter schema in public metadata yet.

getPullRequestDiffFetches a pull request's changes: with no arguments it lists the changed files, and passing `paths` returns those files' unified diff.

Fetches a pull request's changes: with no arguments it lists the changed files, and passing `paths` returns those files' unified diff.

No parameter schema in public metadata yet.

getPullRequestCommentsLists a pull request's comments — general and inline — oldest first, with deleted comments filtered out; `unresolvedOnly` leaves out the threads already resolved.

Lists a pull request's comments — general and inline — oldest first, with deleted comments filtered out; `unresolvedOnly` leaves out the threads already resolved.

No parameter schema in public metadata yet.

listDefaultReviewersLists the repository's effective default reviewers with their account UUIDs, including the ones inherited from its project.

Lists the repository's effective default reviewers with their account UUIDs, including the ones inherited from its project.

No parameter schema in public metadata yet.

listPullRequestStatusesLists the build statuses reported against a pull request, each with the URL of its run.

Lists the build statuses reported against a pull request, each with the URL of its run.

No parameter schema in public metadata yet.

listPullRequestTasksLists a pull request's tasks, `RESOLVED` or `UNRESOLVED` — the outstanding work, which the comments alone do not tell you.

Lists a pull request's tasks, `RESOLVED` or `UNRESOLVED` — the outstanding work, which the comments alone do not tell you.

No parameter schema in public metadata yet.

getPullRequestMergeabilityBitbucket's own dry run of a merge: state, permission, conflicts, every configured merge check and the merge queue, blocking checks first.

Bitbucket's own dry run of a merge: state, permission, conflicts, every configured merge check and the merge queue, blocking checks first.

No parameter schema in public metadata yet.

createPullRequestOpens a new pull request. Title and source branch are required, and `closeSourceBranch` and `draft` are settable here.

Opens a new pull request. Title and source branch are required, and `closeSourceBranch` and `draft` are settable here.

No parameter schema in public metadata yet.

updatePullRequestChanges an existing pull request's title, description, destination branch, reviewer list, `closeSourceBranch` flag or `draft` status.

Changes an existing pull request's title, description, destination branch, reviewer list, `closeSourceBranch` flag or `draft` status.

No parameter schema in public metadata yet.

addPullRequestCommentPosts a comment: general, a reply, or inline on a line of the diff — anchored by `codeSnippet` copied verbatim out of the diff, or by `line` plus `lineType`.

Posts a comment: general, a reply, or inline on a line of the diff — anchored by `codeSnippet` copied verbatim out of the diff, or by `line` plus `lineType`.

No parameter schema in public metadata yet.

updatePullRequestCommentCorrects one of your own comments, or deletes it.

Corrects one of your own comments, or deletes it.

No parameter schema in public metadata yet.

resolvePullRequestCommentMarks a comment thread resolved, or reopens it — any top-level comment, inline or on the pull request as a whole.

Marks a comment thread resolved, or reopens it — any top-level comment, inline or on the pull request as a whole.

No parameter schema in public metadata yet.

addPullRequestTaskAdds a task — one tracked item of work, optionally hung off a comment.

Adds a task — one tracked item of work, optionally hung off a comment.

No parameter schema in public metadata yet.

updatePullRequestTaskTicks a task off, reopens it, or rewrites its text.

Ticks a task off, reopens it, or rewrites its text.

No parameter schema in public metadata yet.

setPullRequestReviewStatusSets the authenticated user's own review state: `APPROVED`, `CHANGES_REQUESTED` or `UNAPPROVED` (clears both flags).

Sets the authenticated user's own review state: `APPROVED`, `CHANGES_REQUESTED` or `UNAPPROVED` (clears both flags).

No parameter schema in public metadata yet.

mergePullRequestMerges a pull request into its destination branch, with an optional merge strategy.

Merges a pull request into its destination branch, with an optional merge strategy.

No parameter schema in public metadata yet.

declinePullRequestDeclines a pull request, closing it without merging.

Declines a pull request, closing it without merging.

No parameter schema in public metadata yet.

listPipelinesLists a repository's pipeline runs, newest first, filterable by branch, commit or state.

Lists a repository's pipeline runs, newest first, filterable by branch, commit or state.

No parameter schema in public metadata yet.

getPipelineReads one run with its steps: which step failed, its `errorMessage`, and the `stepUuid` to read next.

Reads one run with its steps: which step failed, its `errorMessage`, and the `stepUuid` to read next.

No parameter schema in public metadata yet.

getPipelineStepLogReads a step's build log — the end by default, or the lines matching `pattern` anywhere in it. Always truncated, always visibly.

Reads a step's build log — the end by default, or the lines matching `pattern` anywhere in it. Always truncated, always visibly.

No parameter schema in public metadata yet.

listCodeInsightsLists a commit's Code Insights reports and the file-and-line findings behind the failing ones.

Lists a commit's Code Insights reports and the file-and-line findings behind the failing ones.

No parameter schema in public metadata yet.

Configuration

BITBUCKET_OAUTH_KEY

OAuth consumer key of your own Bitbucket Cloud OAuth consumer. Together with BITBUCKET_OAUTH_SECRET this enables the browser login flow.

BITBUCKET_OAUTH_SECRETsecret

OAuth consumer secret matching BITBUCKET_OAUTH_KEY.

BITBUCKET_ACCESS_TOKENsecret

Bitbucket Cloud access token sent as a Bearer credential. Takes precedence over every other credential and skips the OAuth flow.

BITBUCKET_EMAIL

Atlassian account e-mail, used with BITBUCKET_API_TOKEN as Basic credentials.

BITBUCKET_API_TOKENsecret

Atlassian API token, used with BITBUCKET_EMAIL as Basic credentials.

BITBUCKET_DEFAULT_WORKSPACE

Workspace slug used when a tool call omits the workspace argument.

Readme

Details

Repository
github.com/lahma/bitbucket-mcp
Categories
Developer Tools, DevOps & Cloud
Package
bitbucket-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from lahma

All 3

Similar to Bitbucket Mcp

More Developer Tools