
Bitbucket MCP
Auto-generated from Bitbucket Cloud's OpenAPI spec, this server gives Claude the full Bitbucket API surface through tool calls. You get repo management, pull requests, pipelines, branch restrictions, and everything else in the spec without waiting for manual endpoint additions. It's built in Go, ships as a container, and uses the same code generation pipeline that powers a CLI and Terraform provider. Reach for this when you want Claude to handle Bitbucket operations directly instead of you writing scripts or clicking through the UI. The prompts are customizable, and because it regenerates from the live spec, new Bitbucket features flow in automatically.
- tools
- 17
- auth
- Secret needed
- transport
- STDIO
- env vars
- 2
- last updated
- Aug 21, 2026
Tools
17 toolsPublic tool metadata for what this MCP can expose to an agent.
BITBUCKET_CREATE_BRANCHCreates a new branch in a Bitbucket repository from a target commit hash; the branch name must be unique, adhere to Bitbucket's naming conventions, and not include the 'refs/heads/' prefix.4 params
Creates a new branch in a Bitbucket repository from a target commit hash; the branch name must be unique, adhere to Bitbucket's naming conventions, and not include the 'refs/heads/' prefix.
namestringrepo_slugstringtarget_hashstringworkspacestringBITBUCKET_CREATE_ISSUECreates a new issue in a Bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component IDs exist.11 params
Creates a new issue in a Bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component IDs exist.
assigneestringcomponent_idintegercontentstringdue_onstringkindstringmilestone_idintegerprioritystringrepo_slugstringtitlestringversion_idintegerworkspacestringBITBUCKET_CREATE_ISSUE_COMMENTAdds a new comment with markdown support to an existing Bitbucket issue.4 params
Adds a new comment with markdown support to an existing Bitbucket issue.
contentstringissue_idstringrepo_slugstringworkspacestringBITBUCKET_CREATE_PULL_REQUESTCreates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.8 params
Creates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.
close_source_branchbooleandescriptionstringdestination_branchstringrepo_slugstringreviewersarraysource_branchstringtitlestringworkspacestringBITBUCKET_CREATE_REPOSITORYCreates a new Bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project_key` is not provided.9 params
Creates a new Bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project_key` is not provided.
descriptionstringfork_policystringallow_forks · no_public_forks · no_forksdefault: allow_forkshas_issuesbooleanhas_wikibooleanis_privatebooleanlanguagestringproject_keystringrepo_slugstringworkspacestringBITBUCKET_CREATE_SNIPPET_COMMENTPosts a new top-level comment or a threaded reply to an existing comment on a specified Bitbucket snippet.4 params
Posts a new top-level comment or a threaded reply to an existing comment on a specified Bitbucket snippet.
contentstringencoded_idstringparent_idintegerworkspacestringBITBUCKET_DELETE_ISSUEPermanently deletes a specific issue, identified by its `issue_id`, from the repository specified by `repo_slug` within the given `workspace`.3 params
Permanently deletes a specific issue, identified by its `issue_id`, from the repository specified by `repo_slug` within the given `workspace`.
issue_idstringrepo_slugstringworkspacestringBITBUCKET_DELETE_REPOSITORYPermanently deletes a specified Bitbucket repository; this action is irreversible and does not affect forks.2 params
Permanently deletes a specified Bitbucket repository; this action is irreversible and does not affect forks.
repo_slugstringworkspacestringBITBUCKET_GET_CURRENT_USERRetrieves the profile information (UUID, display name, links, creation date) for the currently authenticated Bitbucket user.
Retrieves the profile information (UUID, display name, links, creation date) for the currently authenticated Bitbucket user.
No parameter schema in public metadata yet.
BITBUCKET_GET_FILE_FROM_REPOSITORYRetrieves a specific file's content from a Bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.4 params
Retrieves a specific file's content from a Bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.
commitstringpathstringrepo_slugstringworkspacestringBITBUCKET_GET_PULL_REQUESTGet a single pull request by ID with complete details.3 params
Get a single pull request by ID with complete details.
pull_request_idintegerrepo_slugstringworkspacestringBITBUCKET_GET_SNIPPETRetrieves a specific Bitbucket snippet by its encoded ID from an existing workspace, returning its metadata and file structure.3 params
Retrieves a specific Bitbucket snippet by its encoded ID from an existing workspace, returning its metadata and file structure.
accept_formatstringencoded_idstringworkspacestringBITBUCKET_LIST_PULL_REQUESTSLists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLINED).5 params
Lists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLINED).
pageintegerpagelenintegerrepo_slugstringstatestringOPEN · MERGED · DECLINEDworkspacestringBITBUCKET_LIST_REPOSITORIES_IN_WORKSPACELists repositories in a specified Bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results.4 params
Lists repositories in a specified Bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results.
qstringrolestringsortstringworkspacestringBITBUCKET_LIST_WORKSPACE_MEMBERSLists all members of a specified Bitbucket workspace; the workspace must exist.1 params
Lists all members of a specified Bitbucket workspace; the workspace must exist.
workspacestringBITBUCKET_LIST_WORKSPACESLists Bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.2 params
Lists Bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.
qstringsortstringBITBUCKET_UPDATE_ISSUEUpdates an existing issue in a Bitbucket repository by modifying specified attributes; requires `workspace`, `repo_slug`, `issue_id`, and at least one attribute to update.12 params
Updates an existing issue in a Bitbucket repository by modifying specified attributes; requires `workspace`, `repo_slug`, `issue_id`, and at least one attribute to update.
assignee_account_idstringcomponentstringcontentstringissue_idstringkindstringmilestonestringprioritystringrepo_slugstringstatestringtitlestringversionstringworkspacestringSponsors
Configuration
BITBUCKET_USERNAMEYour Bitbucket username/ email (required for Basic auth, omit for workspace/repo access tokens)
BITBUCKET_TOKEN*secretYour Bitbucket API token or OAuth2 access token
Readme
Details
- Repository
- github.com/fabianschurig/bitbucket-cli
- Category
- Developer Tools
- Package
ghcr.io/fabianschurig/bitbucket-mcp:0.20.2- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active