Skip to content
← All MCP servers

Is the Bitbucket MCP server safe? What it can reach

What the Bitbucket MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Atlassian covers Bitbucket Cloud through its hosted Atlassian MCP server at mcp.atlassian.com, which also serves Jira and Confluence. It signs in with OAuth or an API token, and an org admin controls access by permission group. The write group can merge pull requests, create commits and run pipelines, so keep it off unless you need it.

Who maintains it

ImplementationKindStatus
Atlassian MCP server, Bitbucket Cloud tools (Atlassian, hosted)Officialactive
MatanYemini/bitbucket-mcp (community)Communityactive

It runs as a hosted remote server. The documented endpoint is https://mcp.atlassian.com/v2/mcp.

How it signs in

OAuth 2.1, or an API token sent in the Authorization header (personal token with Basic auth, or a service account key as Bearer). The server acts as that user or service account. Only Bitbucket workspaces linked to an Atlassian organization work.

Scope or permissionAccess
read:bitbucket:agent-interfaceread
write:bitbucket:agent-interfacewrite

What its tools can do

KindTools
ReadlistBitbucketWorkspaces, getBitbucketWorkspace, listBitbucketRepositories, getBitbucketRepository, getBitbucketRepoDefaultReviewers, getBitbucketRepoFileContent, getBitbucketRepoBranch, getBitbucketRepoCommit, listBitbucketRepoCommitReports, getBitbucketRepoCommitReport, getBitbucketRepoCommitReportAnnotations, listBitbucketRepoPullRequests, getBitbucketRepoPullRequest, getBitbucketRepoPullRequestDiff, listBitbucketRepoPullRequestComments, listBitbucketRepoPullRequestTasks, listBitbucketRepoPipelines, getBitbucketRepoPipeline, listBitbucketRepoPipelineSteps, getBitbucketRepoPipelineStep, getBitbucketRepoPipelineStepLog, listBitbucketRepoDeployments, getBitbucketRepoDeployment, listBitbucketRepoEnvironments, getBitbucketRepoEnvironment
WritecreateBitbucketRepoPullRequest, updateBitbucketRepoPullRequest, approveBitbucketRepoPullRequest, requestChangesOnBitbucketRepoPullRequest, addBitbucketRepoPullRequestComment, resolveBitbucketRepoPullRequestComment, reopenBitbucketRepoPullRequestComment, createBitbucketRepoPullRequestTask, setBitbucketRepoPullRequestTaskState, createBitbucketRepoBranch, createBitbucketRepoCommit
Can’t be undonemergeBitbucketRepoPullRequest, runBitbucketRepoPipeline

This lists only the Bitbucket Cloud tools from Atlassian’s supported-tools page, which also covers Jira, Confluence and more. By default the server shows a few tools (discover, executeRead, executeWrite, executeDestructive) and loads the rest on demand, so rules on the names above match only with the ?tools=all endpoint. The page does not say which execute pathway each Bitbucket tool uses.

Built-in limits

OptionWhat it does
Permission groups (read_bitbucket, write_bitbucket)Organization admins grant or revoke access at the permission group level, and each group needs its own scope.
API token authentication switchAn org admin must enable API token auth for the organization before token connections work.
Service account keyA service account with limited access can be used with Bearer auth instead of a personal token.

The risks

  • mergeBitbucketRepoPullRequest and approveBitbucketRepoPullRequest let an injected instruction approve and merge code into a branch, with the token owner’s name on it.
  • runBitbucketRepoPipeline starts pipelines that can deploy, and createBitbucketRepoCommit writes code, so a poisoned pull request comment can lead to a pipeline run.
  • Pull request diffs, comments and pipeline step logs are untrusted text that can contain instructions, and logs can also hold secrets.
  • A personal API token carries all the access of its owner for the scopes you picked, so it can reach every repository that user can.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp

Claude Code names MCP tools mcp__atlassian__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__atlassian__mergeBitbucketRepoPullRequest",
      "mcp__atlassian__runBitbucketRepoPipeline"
    ],
    "ask": [
      "mcp__atlassian__createBitbucketRepoCommit",
      "mcp__atlassian__createBitbucketRepoPullRequest",
      "mcp__atlassian__approveBitbucketRepoPullRequest"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.atlassian]
url = "https://mcp.atlassian.com/v2/mcp"
disabled_tools = ["mergeBitbucketRepoPullRequest", "runBitbucketRepoPipeline"]

Checklist

  • Grant only read_bitbucket unless the agent must open or change pull requests.
  • Use a service account with access to the repositories you name.
  • Keep merge and pipeline runs for a human to approve.
  • Treat pull request text and pipeline logs as untrusted.

Checked against the vendor documentation on November 25, 2026. Atlassian MCP supported tools · Configure authentication via API token · Get started with the Atlassian MCP server · Bitbucket Cloud on the Atlassian Rovo MCP server · MatanYemini/bitbucket-mcp README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing