mcp-bitbucket
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_API_KEY | No | API key for authentication | |
| BITBUCKET_URL | Yes | Your Bitbucket Server/Data Center URL | |
| MCP_HTTP_PORT | No | HTTP server port | 3001 |
| BITBUCKET_TOKEN | Yes | Personal Access Token | |
| MCP_HTTP_ENDPOINT | No | HTTP endpoint path | /stream |
| ENABLE_HTTP_TRANSPORT | No | Enable HTTP streaming transport | false |
| BITBUCKET_DEFAULT_PROJECT | No | Default project key for operations |
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 | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| bitbucket_create_pull_requestC | Creates a new Bitbucket pull request |
| bitbucket_get_pull_request_detailsC | Gets details for a Bitbucket pull request |
| bitbucket_approve_pull_requestB | Approves a Bitbucket pull request |
| bitbucket_get_pull_request_diffC | Gets the diff for a Bitbucket pull request |
| bitbucket_get_pull_request_reviewsC | Gets reviews for a Bitbucket pull request |
| bitbucket_list_workspacesC | Lists available Bitbucket workspaces. |
| bitbucket_list_repositoriesC | Lists Bitbucket repositories. |
| bitbucket_search_contentC | Searches content within Bitbucket repositories. |
| bitbucket_get_repository_detailsB | Gets details for a specific Bitbucket repository. |
| bitbucket_get_file_contentC | Gets the content of a specific file from a Bitbucket repository. |
| bitbucket_browse_directoryC | Browses a directory in a Bitbucket repository. |
| bitbucket_create_branchC | Creates a new branch in a Bitbucket repository. |
| bitbucket_add_pull_request_file_line_commentC | Adds a comment to a Bitbucket pull request, optionally as an inline comment on a specific file and line. |
| bitbucket_list_repository_branchesC | Lists branches for a Bitbucket repository. |
| bitbucket_get_user_profileC | Gets Bitbucket user profile details by username. |
| bitbucket_merge_pull_requestC | Merges a Bitbucket pull request |
| bitbucket_decline_pull_requestC | Declines a Bitbucket pull request |
| bitbucket_add_pull_request_commentC | Adds a general comment to a Bitbucket pull request |
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 18 tools
Most tools map cleanly to a distinct resource+action (PR details, diff, reviews, merge, decline, branches, files). The only real overlap is between bitbucket_add_pull_request_file_line_comment (which says it can post inline comments) and bitbucket_add_pull_request_comment, plus mild overlap between get_pull_request_details and get_pull_request_reviews.
Every tool follows the same bitbucket_<verb>_<noun> pattern with uniform snake_case and consistent verb usage (get, list, create, add, merge, approve, decline). No naming outliers or mixed conventions.
18 tools is on the heavier side but each covers a distinct Bitbucket operation across workspaces, repos, branches, files, and PR lifecycle. Slightly above the ideal range, and the two comment tools could plausibly be merged.
PR actions (create, details, diff, reviews, comments, approve, merge, decline), repo/file browsing, and branch creation are covered. However, there is no tool to list pull requests for a repository or list commits, which are core discovery operations and will block common agent workflows.