Bitbucket MCP server
Bitbucket is Atlassian's Git hosting platform for teams to store repositories and review code, used by engineering teams to manage pull requests, pipelines, and branches. Connect through Arc0 to use the actions your identity is allowed to call.
Agent workflows for Bitbucket.
List workspaces
Use when you need to discover the workspaces accessible to the connected account.
List repositories
Use when you need to find repositories in a known workspace before reviewing code.
List pull requests
Use when you need to find pull requests to review in a repository. Defaults to open requests.
12 Bitbucket actions, graded by risk.
These actions come from the Arc0 registry. Your identity, provider permissions and Arc0 policies determine which actions can run.
read
10Look things up, subject to your permissions.
- bitbucket.list_workspacesList workspaces
Use when you need to discover the workspaces accessible to the connected account.
- bitbucket.list_repositoriesList repositories
Use when you need to find repositories in a known workspace before reviewing code.
- bitbucket.list_pull_requestsList pull requests
Use when you need to find pull requests to review in a repository. Defaults to open requests.
- bitbucket.list_commitsList commits
Use when you need to inspect recent commit history without exposing commit author contact details.
- bitbucket.list_commentsList comments
Use when you need to read PR discussion or reconcile a comment with an unknown write outcome before retrying. Newest comments first by default.
- bitbucket.get_diffstatGet diffstat
Use when you need to review bounded file-change statistics using source and destination commit hashes from get_pull_request. Uses merge-base comparison.
- bitbucket.get_repositoryGet repository
Use when you need to inspect a known repository and its default branch.
- bitbucket.get_pull_requestGet pull request
Use when you need to read a PR and its source/destination hashes before reviewing changes.
- bitbucket.get_commentGet comment
Use when you need to read a known PR comment to verify a write or its deleted state.
- bitbucket.get_file_contentGet file content
Use when reading a small text source file at an immutable commit hash. Maximum 64 KiB; directories, binaries, LFS redirects and credential paths are refused. Do not use to retrieve secrets.
write
1Create and change things. Allow, or ask the user first.
- bitbucket.create_commentCreate comment
Use when posting a final PR review comment as the connected user. May notify PR participants/watchers immediately per their settings; do not use for drafts or secrets. On unknown outcome, list comments before retrying.
destructive
1Delete, cancel or archive. Ask first, or deny outright.
- bitbucket.delete_commentDelete comment
Use when removing a specific PR comment you are authorized to delete, including an Arc0 test comment. Verify the comment ID first; deletion removes discussion content.
Control access to Bitbucket.
Connect the intended Bitbucket account, authorize your AI client and set policies for its tools.
Provider permissions and Arc0 policy both apply. Allow reads, require approval for selected writes, or deny destructive actions. The audit log records execution decisions.
Configure policies and approvalsExample policy choices
- Read actions: allow where authorized
- bitbucket.create_comment: require approval
- bitbucket.delete_comment: deny
Arc0 MCP endpoint: https://api.arc0.ai/mcp
How Bitbucket connects.
Connect Bitbucket using Email and API token. OAuth grants the provider scopes shown during consent; API keys and other credentials retain the permissions configured at the provider. Arc0 stores credentials in its encrypted vault and does not pass them to the model. Disconnect to remove access through Arc0; revoke a key at the provider to invalidate it there. Token refresh and provider-side revocation depend on the authentication lane and provider.
The connection serves authorized calls through Arc0 MCP and REST. How Arc0 handles credentials →
- AUTH
- Email and API token
- CREDENTIALS
- Per-tenant encrypted vault
- MODEL SEES
- Results only, never credentials
- AUDIT LOG
- Every call, on every plan
Use Bitbucket with your AI client.
Sign in to Arc0 and connect Bitbucket in My apps. Then authorize your AI client separately. It only receives tools and accounts allowed for that identity.
Bitbucket with Claude
Claude Desktop + Claude Code
- In Claude Desktop, add Arc0 through the remote MCP settings and use OAuth. Follow the generic remote-client steps if your account’s interface differs.
- For Claude Code, run the command below. Open /mcp, select Arc0, and authenticate in your browser. Select your workspace and review access.
- Check the connection with claude mcp get arc0.
claude mcp add --transport http --scope user arc0 https://api.arc0.ai/mcpFull MCP setup and troubleshootingBitbucket with ChatGPT
ChatGPT on the web
- Open Plugins in ChatGPT, select the plus button, then Add custom MCP server.
- Name it Arc0, enter the server URL below, and choose OAuth. Use dynamic client registration if asked; no Arc0 API key is needed.
- Review the notice and select Create as a plugin. Complete Arc0 sign-in, workspace selection and consent, then install and select the plugin in your conversation. Labels and access vary by account; managed workspaces may require administrator approval.
https://api.arc0.ai/mcpFull MCP setup and troubleshootingBitbucket with OpenAI Codex
Codex app + CLI
- Run the registration command below. The app and CLI share ~/.codex/config.toml.
- Complete browser OAuth, choose your Arc0 workspace, and review access. If authentication does not start, run codex mcp login arc0.
- Check codex mcp list, then open a new Codex chat. Inspect an existing arc0 entry before changing it.
codex mcp add arc0 --url https://api.arc0.ai/mcpFull MCP setup and troubleshootingBitbucket with Cursor
Remote MCP setup
- Add Arc0 in your client’s remote MCP settings using the server URL below.
- Choose OAuth, sign in to Arc0, select the intended workspace and review access.
- Confirm the server is connected and start with an allowed read. These are generic remote-MCP steps; consult your client’s settings for its current interface.
https://api.arc0.ai/mcpFull MCP setup and troubleshootingBitbucket with VS Code
Remote MCP setup
- Add a remote HTTP MCP server named Arc0 using the URL below.
- Use OAuth and finish Arc0 sign-in, workspace selection and consent.
- Confirm discovery succeeds before requesting a read. These are generic remote-MCP steps; client UI and availability may differ.
https://api.arc0.ai/mcpFull MCP setup and troubleshootingBitbucket with Any MCP client
Streamable HTTP
- Use a client that supports remote MCP over Streamable HTTP. Add the server URL below and choose OAuth.
- For a client without OAuth, use a self-bound API key with execute permission in the X-API-Key header. Store it in secret storage or an environment variable, outside source control. Never send both an API key and an OAuth bearer token.
- Use the MCP clients guide for the SDK transport example and Embedded identity for business-managed end users.
https://api.arc0.ai/mcpFull MCP setup and troubleshootingAfter setup, ask your agent to find an allowed read action, load its schema, and execute it on the intended account. Check Activity for the receipt. A connected MCP client alone does not confirm a successful provider call.
Bitbucket and Arc0, answered.
Does Bitbucket work with Claude Desktop and Claude Code?
Yes, after connecting the account and authorizing the client. Use Arc0’s remote MCP endpoint with OAuth. Claude Code has a documented registration command; Desktop uses the generic remote-client setup.
Can I use Bitbucket with OpenAI Codex, ChatGPT and Cursor?
Yes, after connecting the account and authorizing the client. Codex and ChatGPT have setup instructions in Arc0’s MCP clients guide. Cursor uses the generic remote-MCP steps. Tool access remains scoped to the authorized identity.
Is this the official Bitbucket MCP server?
This is Arc0’s integration page, not a claim of an official Bitbucket server. Arc0 adds a shared connection, policy and audit experience across apps. Consult Bitbucket for its own current MCP offerings.
Which Bitbucket actions are supported?
12 registry-defined actions: 10 read, 1 write and 1 destructive. Provider permissions, access enablement and Arc0 policy determine what can execute.
Which permissions does Bitbucket need?
Connect Bitbucket using Email and API token. OAuth grants the provider scopes shown during consent; API keys and other credentials retain the permissions configured at the provider. Arc0 stores credentials in its encrypted vault and does not pass them to the model. Disconnect to remove access through Arc0; revoke a key at the provider to invalidate it there. Token refresh and provider-side revocation depend on the authentication lane and provider.
Can I restrict writes in Bitbucket?
You can deny write and destructive actions or require approval. Provider scopes and Arc0 action policies are separate controls; a policy does not grant additional provider permissions.
What does Bitbucket through Arc0 cost?
See Arc0 pricing for current connectivity plans. The provider may require its own subscription or charge per request. Arc0 plan allowances do not make third-party data or paid actions free.
Plug Bitbucket into your agent.
Bitbucket MCP server: 12 actions including list workspaces, list repositories, list pull requests. Connect through Arc0.
Free to build · MCP + REST · Audit log on every plan
Bitbucket and its logo are trademarks of their respective owners. Arc0 is not affiliated with or endorsed by Bitbucket.