Bitbucket MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BITBUCKET_TOKEN | No | Your HTTP access token (for Server). | |
| BITBUCKET_BASE_URL | No | The base URL of your Bitbucket Server instance (e.g., https://bitbucket.yourcompany.com). | |
| BITBUCKET_USERNAME | No | Your Bitbucket username (for Cloud) or email (for Server). | |
| BITBUCKET_APP_PASSWORD | No | Your Bitbucket app password (for Cloud). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_pull_requestA | Get details of a Bitbucket pull request including merge commit information |
| list_pull_requestsC | List pull requests for a repository with optional filters |
| create_pull_requestC | Create a new pull request |
| update_pull_requestA | Update an existing pull request. When updating without specifying reviewers, existing reviewers and their approval status will be preserved. |
| add_commentA | Add a comment to a pull request. Supports: 1) General PR comments, 2) Replies to existing comments, 3) Inline comments on specific code lines (using line_number OR code_snippet), 4) Code suggestions for single or multi-line replacements. For inline comments, you can either provide exact line_number or use code_snippet to auto-detect the line. |
| merge_pull_requestC | Merge a pull request |
| list_branchesB | List branches in a repository |
| delete_branchC | Delete a branch |
| get_pull_request_diffB | Get the diff/changes for a pull request with optional filtering |
| approve_pull_requestC | Approve a pull request |
| unapprove_pull_requestA | Remove approval from a pull request |
| request_changesB | Request changes on a pull request |
| remove_requested_changesB | Remove change request from a pull request |
| get_branchA | Get detailed information about a branch including associated pull requests |
| list_directory_contentA | List files and directories in a repository path |
| get_file_contentB | Get file content from a repository with smart truncation for large files |
| list_branch_commitsB | List commits in a branch with detailed information and filtering options |
| list_pr_commitsB | List all commits that are part of a pull request |
| search_codeA | Search for code across Bitbucket repositories with enhanced context-aware search patterns (currently only supported for Bitbucket Server) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Each tool targets a distinct resource and action: pull request lifecycle (create, update, get, list, merge, approve, unapprove, request/remove changes, comment, diff, commits), branch management (get, list, delete, commits), and file browsing (list directory, get file). No two tools have overlapping purposes, and descriptions clearly differentiate similar-sounding operations like list_branch_commits vs list_pr_commits.
Tool names generally follow a clear verb_noun pattern (e.g., create_pull_request, list_branches, get_file_content). Minor inconsistencies exist: 'list_pr_commits' abbreviates 'pull_request' while other tools use the full term, and 'add_comment' lacks the 'pull_request' qualifier. Overall, the naming is predictable and readable with only small deviations.
With 19 tools, the server is slightly above the ideal 3-15 range but remains well-scoped for a Bitbucket MCP covering repositories, branches, pull requests, and code search. Each tool serves a distinct purpose, and the count is justified by the breadth of PR workflow actions (approve, request changes, comment, merge, diff, etc.). It feels comprehensive rather than bloated.
The tool surface covers most of the core Bitbucket workflows, especially pull requests (create, update, list, get, merge, approve, request changes, comment, diff, commits). However, notable gaps exist: there is no create_branch (only get, list, delete), no decline_pull_request, and no way to edit or commit file content. These missing operations could hinder agents in common scenarios, though many workarounds are possible.