
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
What it does
- Reads pull requests with
listPullRequests,getPullRequest,getPullRequestDiff, andgetPullRequestComments, plus build state vialistPipelines,getPipeline, andgetPipelineStepLog - Writes reviews with
addPullRequestComment,resolvePullRequestComment,addPullRequestTask, andsetPullRequestReviewStatus; merging and declining go throughmergePullRequestanddeclinePullRequest - 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 toolsPublic 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_KEYOAuth consumer key of your own Bitbucket Cloud OAuth consumer. Together with BITBUCKET_OAUTH_SECRET this enables the browser login flow.
BITBUCKET_OAUTH_SECRETsecretOAuth consumer secret matching BITBUCKET_OAUTH_KEY.
BITBUCKET_ACCESS_TOKENsecretBitbucket Cloud access token sent as a Bearer credential. Takes precedence over every other credential and skips the OAuth flow.
BITBUCKET_EMAILAtlassian account e-mail, used with BITBUCKET_API_TOKEN as Basic credentials.
BITBUCKET_API_TOKENsecretAtlassian API token, used with BITBUCKET_EMAIL as Basic credentials.
BITBUCKET_DEFAULT_WORKSPACEWorkspace 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 3Similar to Bitbucket Mcp
More Developer Tools
GithubMCP serverdave-london141 starsMCP server wrapping GitHub's REST and GraphQL APIs for pull requests, issues, Actions, and repositories.
GitLab MCP ServerMCP serverzereight2.1K starsRead and write access to GitLab projects, merge requests, issues, pipelines, and branches.
bktSkillavivsinai/bitbucket-cli2.1K installsBitbucket CLI covering repositories, pull requests, branches, pipelines, and webhooks for Cloud and Data Center.
check-prSkillgreptileai/skills1.5K installsChecks a GitHub, GitLab, or Perforce pull request for unresolved review comments, failing checks, and incomplete descriptions.
Gk CliMCP servergitkraken466 starsAccess to git repos and GitHub, GitLab, and Bitbucket issues and pull requests through GitKraken.
MergestormMCP servermarginsystemsConnects to GitHub pull requests and issues for AI code review, automated fixes, and stacked merges.