← All integrations

Bitbucket MCP server

104 operations0 webhooks

Git repository hosting for source code, pull requests, and CI/CD pipelines.

Try Bitbucket with your agent

Connect Bitbucket, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.

Using Corsair, show me what you can do in Bitbucket on my account, then run one read-only example and show me the result.

Runs once, when you ask

Bitbucket tools and triggers

Tools are what your agent can do in Bitbucket through Corsair's MCP server. Triggers are the Bitbucket events a routine can start from.

Commits And Insights

  • Create Repositories Commit Reports AnnotationsWrite

    Adds multiple annotations to a commit report in bulk. Use when you need to add code analysis findings (vulnerabilities, code smells, bugs) to a report attached to a specific commit.

    commitsAndInsights.createRepositoriesCommitReportsAnnotations

  • Create Repositories Commits2Write

    Tool to list commits from a revision using POST method. Identical to GET endpoint but allows sending include/exclude parameters in request body to avoid URL length limits. Use when include/exclude parameters are too long for query strings.

    commitsAndInsights.createRepositoriesCommits2

  • Delete Commit CommentDestructive

    Permanently deletes a specific comment on a commit. Use when removing outdated, incorrect, or unwanted feedback on a commit.

    commitsAndInsights.deleteCommitComment

  • Delete Repositories Commit Reports AnnotationsDestructive

    Deletes a single annotation matching the provided ID from a commit report. Use when you need to remove a specific annotation from a code analysis report.

    commitsAndInsights.deleteRepositoriesCommitReportsAnnotations

  • Get Commit Build StatusRead-only

    Get a specific build status for a commit in Bitbucket. Use when you need to check the status of a particular build/CI run for a commit.

    commitsAndInsights.getCommitBuildStatus

  • Get Commit ChangesRead-only

    Tool to retrieve a page of changes made in a specified commit, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a specific commit or commit range.

    commitsAndInsights.getCommitChanges

  • Get Commit CommentRead-only

    Retrieves a specific comment from a commit by its ID. Use when you need to fetch details of a particular commit comment including content, author, timestamps, and inline location.

    commitsAndInsights.getCommitComment

  • Get Commit DiffRead-only

    Tool to retrieve the unified diff between two provided revisions or for a single commit in a Bitbucket repository. Use when you need to see the actual code changes in a commit or between two commits. Supports filtering by file path and various diff options.

    commitsAndInsights.getCommitDiff

  • Get Repositories CommitRead-only

    Tool to retrieve detailed information about a specific commit in a Bitbucket repository. Use when you need to get complete commit details including author, message, date, parents, and related links.

    commitsAndInsights.getRepositoriesCommit

  • Get Repositories Commit CommentsRead-only

    Retrieves all comments on a specific commit in a Bitbucket repository. Returns both global and inline code comments. Use when you need to view feedback, discussions, or notes left on a specific commit.

    commitsAndInsights.getRepositoriesCommitComments

  • Get Repositories Commit ReportRead-only

    Returns a single report matching the provided ID from a commit. Use when you need to retrieve details of a specific analysis report (e.g., security scan, code coverage, test results, or bug report) for a commit.

    commitsAndInsights.getRepositoriesCommitReport

  • Get Repositories Commit ReportsRead-only

    Tool to get reports linked to a specific commit. Use when you need to retrieve analysis results, test reports, security scans, or code coverage data associated with a commit.

    commitsAndInsights.getRepositoriesCommitReports

Connect Bitbucket to Claude, ChatGPT or Cursor

  1. 1

    Connect Bitbucket in Corsair

    Sign in to Bitbucket once in Corsair. Corsair stores the credential encrypted and makes the Bitbucket API calls for your agent, so it never goes into a prompt or a config file. Connect Bitbucket

    If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Bitbucket. On a ChatGPT personal plan, connect Bitbucket here first.

  2. 2

    Add Corsair's MCP server to your agent

    Every client uses the same address:

    https://mcp.corsair.dev/mcp
    Open Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.

    Codex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client

  3. 3

    Sign in and choose what needs your approval

    Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Bitbucket's read and write operations run right away and its 5 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.

FAQ

Install corsair and @corsair-dev/bitbucket, add the Bitbucket plugin, and connect with OAuth. Then call methods like corsair.bitbucket.api.commitsAndInsights.createRepositoriesCommitReportsAnnotations() from your app. Corsair stores tokens, and syncs data per tenant.

Yes. Bitbucket needs an OAuth app with scopes that match what you automate. Register the app in Bitbucket, configure redirect URLs, then connect through Corsair or managed OAuth in Hub.

Yes. One Corsair client can hit Bitbucket, GitHub, Notion, Stripe, and the rest. Trigger Bitbucket from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.

Teams use Corsair for git repository hosting for source code, pull requests, and CI/CD pipelines. Common builds include sync jobs, admin tooling, and agents that call Bitbucket APIs from your backend. Local DB entities let you query synced Bitbucket records without hitting the API on every read.

The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Bitbucket API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.

We maintain @corsair-dev/bitbucket in the open repo. When Bitbucket ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.

No. Corsair does not read your Bitbucket data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Bitbucket data on your behalf.

Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.

Yes. Put Bitbucket on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 5 destructive Bitbucket operations. You can change a link's mode at hub.corsair.dev/me.