100+ integrations are ready to connect to your AI.Connect your first MCP

Bitbucket MCP server for your AI

Review a pull request with its changed files, comments and build results in one call, find out why a Pipelines run failed, commit a fix on a new branch, then open the pull request and merge it once the build is green.

PopMCPBitbucket

Review pull request #42 in web-app: what changed, what's still unresolved, and is the build green?

Supported Bitbucket tools

Every Bitbucket Cloud REST operation from pull requests to runners and deployment variables, the one-call review and failed-build tools, and the push, pull request and build events PopMCP can watch.

273 tools in the full catalog: 153 read and 120 write. 38 load by default, and the rest are found with tool search.

bitbucket_get_failed_pipeline_logs

Why a Bitbucket Pipelines run failed, in one call: the failed steps and the end of each one's log.

bitbucket_get_pipeline

Get a pipeline.

bitbucket_get_pipeline_step_log

Get log file for a step.

bitbucket_list_pipeline_steps

List steps for a pipeline.

bitbucket_list_pipelines

List pipelines.

bitbucket_run_pipeline

Run a pipeline.

bitbucket_approve_pull_request

Approve a pull request.

bitbucket_create_pull_request

Create a pull request.

bitbucket_create_pull_request_comment

Create a comment on a pull request.

bitbucket_create_pull_request_task

Create a task on a pull request.

bitbucket_decline_pull_request

Decline a pull request.

bitbucket_get_pull_request

Get a pull request.

bitbucket_get_pull_request_context

Everything needed to review a pull request in one call: details, reviewers and approvals, changed files, comments, tasks and build results.

bitbucket_get_pull_request_diff

List changes in a pull request.

bitbucket_list_pull_request_comments

List comments on a pull request.

bitbucket_list_pull_request_commits

List commits on a pull request.

bitbucket_list_pull_requests

List pull requests.

bitbucket_merge_pull_request

Merge a pull request.

bitbucket_request_pull_request_changes

Request changes for a pull request.

bitbucket_update_pull_request

Update a pull request.

bitbucket_get_repository

Get a repository.

bitbucket_list_repositories

List repositories in a workspace.

bitbucket_get_commit

Get a commit.

bitbucket_get_diff

Compare two commits.

bitbucket_list_commits

List commits.

bitbucket_list_deployments

List deployments.

bitbucket_list_projects

List projects in a workspace.

bitbucket_list_user_pull_requests

List workspace pull requests for an user.

bitbucket_list_workspace_members

List users in a workspace.

bitbucket_list_workspaces

List workspaces for the current user.

bitbucket_search_code

Search code in a workspace.

bitbucket_create_branch

Create a branch.

bitbucket_list_branches

List open branches.

bitbucket_list_tags

List tags.

bitbucket_commit_files

Create a commit by uploading a file.

bitbucket_get_file_or_directory

Get file or directory contents.

bitbucket_list_commit_statuses

List commit statuses for a commit.

bitbucket_list_file_history

List commits that modified a file.

bitbucket_create_environment_variable

Create a variable for an environment.

bitbucket_create_pipeline_known_host

Create a known host.

bitbucket_create_pipeline_schedule

Create a schedule for the given repository.

bitbucket_create_repository_runner

Create repository runner.

bitbucket_create_repository_variable

Create a variable for a repository.

bitbucket_create_workspace_runner

Create workspace runner.

bitbucket_create_workspace_variable

Create a variable for a workspace.

bitbucket_delete_environment_variable

Delete a variable for an environment.

bitbucket_delete_pipeline_cache

Delete a cache.

bitbucket_delete_pipeline_caches_by_name

Delete caches.

bitbucket_delete_pipeline_known_host

Delete a known host.

bitbucket_delete_pipeline_schedule

Delete a schedule.

bitbucket_delete_pipeline_ssh_key_pair

Delete SSH key pair.

bitbucket_delete_repository_runner

Delete repository runner by uuid.

bitbucket_delete_repository_variable

Delete a variable for a repository.

bitbucket_delete_workspace_runner

Delete workspace runner by uuid.

bitbucket_delete_workspace_variable

Delete a variable for a workspace.

bitbucket_get_pipeline_cache_download_link

Get cache content URI.

bitbucket_get_pipeline_container_log

Get the logs for the build container or a service container for a given step of a pipeline.

bitbucket_get_pipeline_known_host

Get a known host.

bitbucket_get_pipeline_schedule

Get a schedule.

bitbucket_get_pipeline_ssh_key_pair

Get SSH key pair.

bitbucket_get_pipeline_step

Get a step of a pipeline.

bitbucket_get_pipeline_step_test_reports

Get a summary of test reports for a given step of a pipeline.

bitbucket_get_pipelines_config

Get configuration.

bitbucket_get_pipelines_oidc_configuration

Get OpenID configuration for OIDC in Pipelines.

bitbucket_get_pipelines_oidc_keys

Get keys for OIDC in Pipelines.

bitbucket_get_repository_runner

Get repository runner.

bitbucket_get_repository_variable

Get a variable for a repository.

bitbucket_get_workspace_runner

Get workspace runner by uuid.

bitbucket_get_workspace_variable

Get variable for a workspace.

bitbucket_list_environment_variables

List variables for an environment.

bitbucket_list_pipeline_caches

List caches.

bitbucket_list_pipeline_known_hosts

List known hosts.

bitbucket_list_pipeline_schedule_executions

List executions of a schedule.

bitbucket_list_pipeline_schedules

List schedules.

bitbucket_list_pipeline_step_test_cases

Get test cases for a given step of a pipeline.

bitbucket_list_repository_runners

Get repository runners.

bitbucket_list_repository_variables

List variables for a repository.

bitbucket_list_test_case_reasons

Get test case reasons (output) for a given test case in a step of a pipeline.

bitbucket_list_workspace_runners

Get workspace runners.

bitbucket_list_workspace_variables

List variables for a workspace.

bitbucket_set_next_build_number

Update the next build number that should be assigned to a pipeline.

bitbucket_set_pipeline_ssh_key_pair

Update SSH key pair.

bitbucket_stop_pipeline

Stop a pipeline.

bitbucket_update_environment_variable

Update a variable for an environment.

bitbucket_update_pipeline_known_host

Update a known host.

bitbucket_update_pipeline_schedule

Update a schedule.

bitbucket_update_pipelines_config

Update configuration.

bitbucket_update_repository_runner

Update repository runner.

bitbucket_update_repository_variable

Update a variable for a repository.

bitbucket_update_workspace_runner

Update workspace runner.

bitbucket_update_workspace_variable

Update variable for a workspace.

bitbucket_add_default_reviewer

Add an user to the default reviewers.

bitbucket_delete_pull_request_comment

Delete a comment on a pull request.

bitbucket_delete_pull_request_task

Delete a task on a pull request.

bitbucket_get_default_reviewer

Get a default reviewer.

bitbucket_get_pull_request_comment

Get a comment on a pull request.

bitbucket_get_pull_request_conflicts

Get file conflicts for a pull request.

bitbucket_get_pull_request_diffstat

Get the diff stat for a pull request.

bitbucket_get_pull_request_merge_status

Get the merge task status for a pull request.

bitbucket_get_pull_request_patch

Get the patch for a pull request.

bitbucket_get_pull_request_task

Get a task on a pull request.

bitbucket_list_commit_pull_requests

List pull requests that contain a commit.

bitbucket_list_default_reviewers

List default reviewers.

bitbucket_list_effective_default_reviewers

List effective default reviewers.

bitbucket_list_pull_request_activity

List a pull request activity log.

bitbucket_list_pull_request_mergeability_checks

List pull request mergeability checks.

bitbucket_list_pull_request_statuses

List commit statuses for a pull request.

bitbucket_list_pull_request_tasks

List tasks on a pull request.

bitbucket_list_repository_pull_request_activity

List a pull request activity log.

bitbucket_remove_default_reviewer

Remove an user from the default reviewers.

bitbucket_remove_pull_request_change_request

Remove change request for a pull request.

bitbucket_reopen_pull_request_comment

Reopen a comment thread.

bitbucket_resolve_pull_request_comment

Resolve a comment thread.

bitbucket_unapprove_pull_request

Unapprove a pull request.

bitbucket_update_pull_request_comment

Update a comment on a pull request.

bitbucket_update_pull_request_task

Update a task on a pull request.

bitbucket_check_snippet_watch

Check if the current user is watching a snippet.

bitbucket_create_snippet

Create a snippet.

bitbucket_create_snippet_comment

Create a comment on a snippet.

bitbucket_create_workspace_snippet

Create a snippet for a workspace.

bitbucket_delete_snippet

Delete a snippet.

bitbucket_delete_snippet_comment

Delete a comment on a snippet.

bitbucket_delete_snippet_revision

Delete a previous revision of a snippet.

bitbucket_get_snippet

Get a snippet.

bitbucket_get_snippet_change

Get a previous snippet change.

bitbucket_get_snippet_comment

Get a comment on a snippet.

bitbucket_get_snippet_diff

Get snippet changes between versions.

bitbucket_get_snippet_file

Get a snippet's raw file at HEAD.

bitbucket_get_snippet_patch

Get snippet patch between versions.

bitbucket_get_snippet_revision

Get a previous revision of a snippet.

bitbucket_get_snippet_revision_file

Get a snippet's raw file.

bitbucket_list_snippet_changes

List snippet changes.

bitbucket_list_snippet_comments

List comments on a snippet.

bitbucket_list_snippets

List snippets in a workspace.

bitbucket_unwatch_snippet

Stop watching a snippet.

bitbucket_update_snippet

Update a snippet.

bitbucket_update_snippet_comment

Update a comment on a snippet.

bitbucket_update_snippet_revision

Update a previous revision of a snippet.

bitbucket_watch_snippet

Watch a snippet.

bitbucket_create_repository

Create a repository.

bitbucket_delete_repository

Delete a repository.

bitbucket_delete_repository_group_permission

Delete an explicit group permission for a repository.

bitbucket_delete_repository_user_permission

Delete an explicit user permission for a repository.

bitbucket_fork_repository

Fork a repository.

bitbucket_get_repository_group_permission

Get an explicit group permission for a repository.

bitbucket_get_repository_settings_inheritance

Retrieve the inheritance state for repository settings.

bitbucket_get_repository_user_permission

Get an explicit user permission for a repository.

bitbucket_list_forks

List repository forks.

bitbucket_list_my_repository_permissions

List repository permissions in a workspace for an user.

bitbucket_list_repository_group_permissions

List explicit group permissions for a repository.

bitbucket_list_repository_user_permissions

List explicit user permissions for a repository.

bitbucket_list_repository_watchers

List repositories watchers.

bitbucket_set_repository_group_permission

Update an explicit group permission for a repository.

bitbucket_set_repository_settings_inheritance

Set the inheritance state for repository settings.

bitbucket_set_repository_user_permission

Update an explicit user permission for a repository.

bitbucket_update_repository

Update a repository.

bitbucket_approve_commit

Approve a commit.

bitbucket_create_commit_comment

Create comment for a commit.

bitbucket_delete_commit_comment

Delete a commit comment.

bitbucket_get_commit_comment

Get a commit comment.

bitbucket_get_diffstat

Compare two commit diff stats.

bitbucket_get_file_conflicts

Get file conflicts for a commit spec

bitbucket_get_merge_base

Get the common ancestor between two commits.

bitbucket_get_patch

Get a patch for two commits.

bitbucket_list_commit_comments

List a commit's comments.

bitbucket_list_commits_for_revision

List commits for revision.

bitbucket_list_commits_for_revision_with_filters

List commits for revision using include/exclude.

bitbucket_list_commits_with_filters

List commits with include/exclude.

bitbucket_unapprove_commit

Unapprove a commit.

bitbucket_update_commit_comment

Update a commit comment.

bitbucket_add_deploy_key

Add a repository deploy key.

bitbucket_add_project_default_reviewer

Add the specific user as a default reviewer for the project.

bitbucket_add_project_deploy_key

Create a project deploy key.

bitbucket_create_environment

Create an environment.

bitbucket_create_project

Create a project in a workspace.

bitbucket_delete_deploy_key

Delete a repository deploy key.

bitbucket_delete_environment

Delete an environment

bitbucket_delete_project

Delete a project for a workspace.

bitbucket_delete_project_deploy_key

Delete a deploy key from a project.

bitbucket_delete_project_group_permission

Delete an explicit group permission for a project.

bitbucket_delete_project_user_permission

Delete an explicit user permission for a project.

bitbucket_get_deploy_key

Get a repository deploy key.

bitbucket_get_deployment

Get a deployment.

bitbucket_get_environment

Get an environment.

bitbucket_get_project

Get a project for a workspace.

bitbucket_get_project_default_reviewer

Get a default reviewer.

bitbucket_get_project_deploy_key

Get a project deploy key.

bitbucket_get_project_group_permission

Get an explicit group permission for a project.

bitbucket_get_project_user_permission

Get an explicit user permission for a project.

bitbucket_list_deploy_keys

List repository deploy keys.

bitbucket_list_environments

List environments.

bitbucket_list_project_default_reviewers

List the default reviewers in a project.

bitbucket_list_project_deploy_keys

List project deploy keys.

bitbucket_list_project_group_permissions

List explicit group permissions for a project.

bitbucket_list_project_user_permissions

List explicit user permissions for a project.

bitbucket_remove_project_default_reviewer

Remove the specific user from the project's default reviewers.

bitbucket_set_project_group_permission

Update an explicit group permission for a project.

bitbucket_set_project_user_permission

Update an explicit user permission for a project.

bitbucket_update_deploy_key

Update a repository deploy key.

bitbucket_update_environment

Update an environment

bitbucket_update_project

Update a project for a workspace.

bitbucket_create_repository_webhook

Create a webhook for a repository.

bitbucket_create_workspace_webhook

Create a webhook for a workspace.

bitbucket_delete_repository_webhook

Delete a webhook for a repository.

bitbucket_delete_workspace_webhook

Delete a webhook for a workspace.

bitbucket_get_my_workspace_permission

Get user permission on a workspace.

bitbucket_get_repository_webhook

Get a webhook for a repository.

bitbucket_get_workspace

Get a workspace.

bitbucket_get_workspace_gpg_public_key

Get the workspace system GPG public key(s).

bitbucket_get_workspace_member

Get user membership for a workspace.

bitbucket_get_workspace_webhook

Get a webhook for a workspace.

bitbucket_list_repository_permissions

List a repository permissions for a workspace.

bitbucket_list_repository_webhooks

List webhooks for a repository.

bitbucket_list_webhook_event_types

List subscribable webhook types.

bitbucket_list_webhook_resources

Get a webhook resource.

bitbucket_list_workspace_permissions

List user permissions in a workspace.

bitbucket_list_workspace_repository_permissions

List all repository permissions for a workspace.

bitbucket_list_workspace_webhooks

List webhooks for a workspace.

bitbucket_update_repository_webhook

Update a webhook for a repository.

bitbucket_update_workspace_webhook

Update a webhook for a workspace.

bitbucket_create_tag

Create a tag.

bitbucket_delete_branch

Delete a branch in the specified repository.

bitbucket_delete_commit_report

Delete a report.

bitbucket_delete_report_annotation

Delete an annotation.

bitbucket_delete_tag

Delete a tag in the specified repository.

bitbucket_get_branch

Get a branch.

bitbucket_get_commit_report

Get a report.

bitbucket_get_report_annotation

Get an annotation.

bitbucket_get_tag

Get a tag.

bitbucket_list_commit_reports

List reports.

bitbucket_list_refs

List branches and tags.

bitbucket_list_report_annotations

List annotations.

bitbucket_set_commit_report

Create or update a report.

bitbucket_set_report_annotation

Create or update an annotation.

bitbucket_set_report_annotations

Bulk create or update annotations.

bitbucket_get_branching_model

Get the branching model for a repository.

bitbucket_get_branching_model_settings

Get the branching model config for a repository.

bitbucket_get_effective_branching_model

Get the effective, or currently applied, branching model for a repository.

bitbucket_get_project_branching_model

Get the branching model for a project.

bitbucket_get_project_branching_model_settings

Get the branching model config for a project.

bitbucket_update_branching_model_settings

Update the branching model config for a repository.

bitbucket_update_project_branching_model_settings

Update the branching model config for a project.

bitbucket_add_ssh_key

Add a new SSH key.

bitbucket_create_branch_restriction

Create a branch restriction rule.

bitbucket_delete_branch_restriction

Delete a branch restriction rule.

bitbucket_delete_ssh_key

Delete a SSH key.

bitbucket_get_branch_restriction

Get a branch restriction rule.

bitbucket_get_merge_queue

Get a merge queue.

bitbucket_get_merge_queue_pull_request

Get a pullrequest in a merge queue.

bitbucket_get_ssh_key

Get a SSH key.

bitbucket_list_branch_restrictions

List branch restrictions.

bitbucket_list_merge_queue_pull_requests

List pullrequests in a merge queue.

bitbucket_list_merge_queues

List merge queues.

bitbucket_list_ssh_keys

List SSH keys.

bitbucket_remove_pull_request_from_merge_queue

Remove a pullrequest from a merge queue.

bitbucket_update_branch_restriction

Update a branch restriction rule.

bitbucket_update_ssh_key

Update a SSH key.

bitbucket_add_gpg_key

Add a new GPG key.

bitbucket_create_commit_build_status

Create a build status for a commit.

bitbucket_delete_download

Delete a download artifact.

bitbucket_delete_gpg_key

Delete a GPG key.

bitbucket_get_commit_build_status

Get a build status for a commit.

bitbucket_get_current_user

Get current user.

bitbucket_get_current_user_email

Get an email address for current user.

bitbucket_get_download_link

Get a download artifact link.

bitbucket_get_gpg_key

Get a GPG key.

bitbucket_get_user

Get an user.

bitbucket_list_current_user_emails

List email addresses for current user.

bitbucket_list_downloads

List download artifacts.

bitbucket_list_gpg_keys

List GPG keys.

bitbucket_list_root_files

Get the root directory of the main branch.

bitbucket_update_commit_build_status

Update a build status for a commit.

bitbucket_upload_download

Upload a download artifact.

Connect Bitbucket to Claude, ChatGPT and Claude Code

Credentials off one Bitbucket screen, then an endpoint your client signs into. Nothing to deploy, and nothing to install.

In your Atlassian account settings choose Security, then Create API token with scopes, pick Bitbucket and tick the read and write scopes you want. Paste the token and pick the workspace. A repository, project or workspace access token works too.

API token••••••••••••3f7a
Workspace (only for an access token)acme or https://bitbucket.org/acme/web
ConnectionVerified

Then just ask for the work

  • “Review pull request #42 in web-app: what changed, what's still unresolved, and is the build green?”

    • get_pull_request_context
  • “Why did the last Pipelines run on main fail? Rerun it if it was a flaky test”

    • get_failed_pipeline_logs
    • run_pipeline
  • “Which open pull requests are waiting on me, and which of them have a failing build?”

    • list_user_pull_requests
    • list_pull_request_statuses
  • “Fix the typo in the README on a new branch and open a pull request for it”

    • get_file_or_directory
    • create_branch
    • commit_files
    • create_pull_request

Use Bitbucket from the assistant you already open

One hosted endpoint, registered once per client. The same tools and the same permissions, whichever window the request comes from.

Claude DesktopCustom connector

Add the PopMCP URL under Customize → Connectors and the tools appear in every chat.

Claude WebCustom connector

The same endpoint, registered in the browser. Nothing to install on the machine you are working from.

ChatGPTCustom connector

Register PopMCP as a custom connector, then let ChatGPT read and update the account.

CodexDesktop & CLI

Wire the endpoint into Codex or the Codex CLI when a task needs live business context, not a fixture.

OpenCodeCoding agent

Register the remote MCP server in OpenCode's config for terminal-first and scripted agent runs.

ZCodeDesktop app

Add PopMCP as an MCP server in Z.ai's desktop app and work the account from the same window.

Bitbucket MCP server questions

What teams ask before putting Bitbucket behind an AI client.

What kind of Bitbucket token does the MCP server need?

An Atlassian API token with scopes for Bitbucket. In your Atlassian account settings open Security, then Create and manage API tokens, then Create API token with scopes; name it, set an expiry (a year at most), choose Bitbucket and tick the scopes: read and write for repositories, pull requests, pipelines and webhooks, and read for workspaces, projects and user. App passwords no longer work: Atlassian switched them off in 2026. A repository, project or workspace access token works too; enter its workspace under More options.

Can I connect more than one Bitbucket workspace?

Yes. After you paste the token PopMCP lists every workspace it reaches and you choose which ones to connect, each into its own PopMCP workspace. A connection stays bound to the workspace you picked: the AI never has to name it, and a request for another workspace is refused rather than answered from the wrong one.

Can the AI review a pull request and explain a failed build?

Yes. get_pull_request_context returns a pull request's details, reviewers and approvals, changed files with line counts, comments with their file and line, tasks and build results in one call. get_failed_pipeline_logs finds the newest failed Pipelines run and reads the end of each failed step's log. With write actions allowed the AI can then comment inline, approve, ask for changes, rerun the pipeline or merge.

Which Bitbucket events can PopMCP watch?

15 of them. Through a workspace webhook PopMCP registers with the connection's own token: code pushed, pull request opened, updated, approved, merged or declined, changes requested, pull request and commit comments, a build started or finished, a repository forked or changed. By comparing snapshots: a new repository and a finished deployment. Registering the webhook needs the webhook scopes and a workspace admin's token.

How many Bitbucket tools load into my AI client?

38 load by default; the rest of the 274 operations stay searchable, from branch restrictions and deploy keys to runners, schedules, Code Insights reports and merge queues. 154 read and 120 write. A read-only connection, or a token with only read scopes, keeps every write tool from running.

Do Bitbucket issues and wikis work?

No. Atlassian removed the Bitbucket Cloud issue tracker and wikis on 20 August 2026 and moved people to Jira and Confluence, so there is nothing left to call. Connect Jira and Confluence in PopMCP for those.

Do I have to run or host the Bitbucket MCP server myself?

No. PopMCP hosts it and gives you a Streamable HTTP MCP URL. There is nothing to deploy, no callback URL to register, and no infrastructure to keep running or patch.

Which AI clients can use this MCP server?

Any client that supports a remote Streamable HTTP MCP server: Claude Desktop, Claude Web, Claude Code, ChatGPT custom connectors, Codex and the Codex CLI, OpenCode and Z.ai's ZCode, as well as editors such as Cursor, Windsurf and Zed. Your client signs in to PopMCP with OAuth; the provider credential never leaves the server.

How do I connect Bitbucket to Claude Code?

Connect Bitbucket in PopMCP first, then run claude mcp add --transport http popmcp https://app.popmcp.com/mcp in a terminal. Inside Claude Code, run /mcp and sign in to PopMCP in the browser window it opens, ticking Bitbucket on the consent screen. The Bitbucket tools are then available in that session, and no Bitbucket credential is stored on your machine.

Why do only 38 of the 273 tools load by default?

Loading 273 tool definitions into every conversation burns context before the work starts. PopMCP loads a curated 38-tool set covering the everyday workflows and keeps the rest searchable, so your AI pulls a specialist tool only when a task needs it. Every tool stays searchable, and on Scale the owner can load the full catalog for a teammate's connection.

What is the difference between a tool and a trigger?

A tool is something your AI calls, and there are 273 here. A trigger is something PopMCP watches for you: 15 Bitbucket events that can start work on the PopMCP side. Triggers never enter your AI client's context, and none of them ask you to paste a callback URL into Bitbucket.

Connect Bitbucket to your AI in minutes

Launch a hosted MCP endpoint for Bitbucket, keep tool access under control, and start testing real workflow prompts right away.

Connect your first MCP