MCP server for Bitbucket Cloud - read and manage pull requests, branches, and repositories from any MCP client
Bitbucket MCP demonstrates solid tool design with consistent naming (verb_noun pattern), comprehensive parameter descriptions, and proper schema definitions. All 10 tools follow the verb-first convention (list_, get_, create_, decline_, merge_). Descriptions are clear and contextual, averaging ~120 chars. Parameters include type definitions and descriptions. However, output schemas are not explicitly documented in the source, and error handling lacks recovery guidance. Tool composition is clean with proper chaining (list_workspaces → list_repos → list_branches). No security issues detected (credentials handled server-side via storage.js). Missing tool annotations (readOnlyHint/destructiveHint) and structured error responses.
Create a new pull request in a Bitbucket repository.
Decline (close) a pull request.
List all files changed in a pull request with their status and line counts.
Get the line-by-line diff of a specific file in a pull request.
Get details of a specific pull request by ID.
List pull requests for a repository. Call list_workspaces first to get valid workspace IDs.
Output schemas not documented. Tool descriptions state what is returned (e.g., 'List all configured Bitbucket workspace connections') but do not specify the structure of returned objects (fields, types, pagination). LLMs cannot plan downstream tool calls without knowing what fields to extract.
Missing tool annotations. Tools lack readOnlyHint, destructiveHint, and idempotentHint metadata. Agents cannot distinguish safe (read-only) tools from irreversible ones (merge_pull_request) without explicit hints. This is a current MCP spec pattern (2026-07-28).
Error handling lacks recovery guidance. No evidence of structured error responses that tell LLMs what to do next (e.g., 'User not found. Try search_users() with a partial name.'). Errors should categorize as retryable, user-fixable, or fatal.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | <=2025-11-25 | v2 |
List branches in a Bitbucket repository. Useful for finding valid branch names before creating a pull request.
List repositories in a Bitbucket workspace. Call list_workspaces first to get valid workspace IDs.
List all configured Bitbucket workspace connections. Call this first to get valid workspace IDs for other tools.
Merge a pull request.
Irreversible operations lack confirmation step. merge_pull_request and decline_pull_request are irreversible but have no dry-run or confirmation mechanism. Agents can accidentally merge/decline PRs without user approval.
Pagination not visible in tool definitions. list_workspaces, list_repos, list_branches, and get_pull_requests likely return paginated results but no limit/offset/cursor parameters are documented. Large result sets risk context window exhaustion.