Bitbucket for git workflows
Bitbucket's MCP server, maintained by MatanYemini, lets an agent work with repositories, pull requests, and pipelines on Bitbucket Cloud and Server. For git workflows it is the fourth of four picks, and the reason is scope: it is the right server specifically for teams whose code and reviews live in Bitbucket, inside the Atlassian ecosystem, rather than the broadest option for git work in general.
It ranks last of four because the leading picks cover either the local repo itself or the larger hosted platforms, but if your pull requests happen on Bitbucket, this is the server that reaches them. It is community-maintained rather than official, which is worth weighing for a critical workflow.
How Bitbucket fits
The pull-request surface is where it does the most. getPullRequests lists PRs filtered by state, getPullRequest reads one, and createPullRequest and updatePullRequest open and edit them. The review verbs are all here: approvePullRequest, unapprovePullRequest, requestChanges, declinePullRequest, and mergePullRequest, with getPullRequestActivity for the audit trail. listRepositories and getRepository handle browsing. An agent can draft a PR, request changes on a teammate's, and merge once it passes.
The honest gap: there are no commit, branch, or diff-inspection tools in this set, so the local mechanical parts of a git workflow (staging, committing, reading a raw diff) are not what it does. Git is the first pick for exactly that local work on the repo itself. GitHub and GitLab are the matches when your reviews live on those platforms instead, and both ship richer, more heavily used servers. Choose Bitbucket here when your team is on Bitbucket and the job is operating pull requests and pipelines there.
Tools you would use
| Tool | What it does |
|---|---|
| listRepositories | Lists repositories in a workspace, with optional name filtering and pagination. |
| getRepository | Gets details for a specific repository. |
| getPullRequests | Gets pull requests for a repository, optionally filtered by state (OPEN, MERGED, DECLINED, SUPERSEDED). |
| createPullRequest | Creates a new pull request. |
| getPullRequest | Gets details for a specific pull request. |
| updatePullRequest | Updates a pull request. |
| getPullRequestActivity | Gets the activity log for a pull request. |
| approvePullRequest | Approves a pull request. |
| unapprovePullRequest | Removes an approval from a pull request. |
| declinePullRequest | Declines a pull request. |
FAQ
- Can the Bitbucket server commit code and read diffs locally?
- No. Its tools operate Bitbucket pull requests, repositories, and pipelines, not local git mechanics. For staging, committing, and inspecting diffs on the repo itself, the Git server is the first pick; use Bitbucket for the review-and-merge side on Bitbucket.
- Is this an official Bitbucket server?
- No. It is a maintained community server by MatanYemini covering Bitbucket Cloud and Server. It still drives the full pull-request lifecycle, from createPullRequest through approvePullRequest and mergePullRequest, but factor the non-official status into critical workflows.