Skip to main content
← Back to Articles
mcpbitbucketcursorideatlassiansetup2026

Bitbucket MCP Server Cursor IDE Setup (2025-2026): App Password Config for PRs & Pipelines

Bitbucket MCP server setup for Cursor IDE, 2025-2026 edition: the exact App Password scopes and mcp.json block your AI needs to read pull requests, check pipeline status, and manage branches from chat. Cloud and Server/Data Center configs included.

By Web MCP GuideAugust 15, 202615 min read


Bitbucket MCP Server Setup for Cursor IDE (2025-2026)

How do you set up the Bitbucket MCP server in Cursor? Create an App Password scoped to repositories and pull requests, add a bitbucket block to your mcp.json with that password and your workspace slug, then restart Cursor. Once connected, your AI can read pull requests, check pipeline status, and manage branches without you switching tabs.

This guide walks through the complete setup for Cursor IDE — current through both the 2025 and 2026 release lines, since the App Password flow hasn't changed — plus the Bitbucket Server/Data Center variant if you're self-hosted.

Quick Reference

| | |
|---|---|
| Auth method (Cloud) | App Password (Repositories + Pull requests + Pipelines scopes) |
| Auth method (Server) | Personal Access Token |
| Config keys (Cloud) | BITBUCKET_USERNAME, BITBUCKET_APP_PASSWORD, BITBUCKET_WORKSPACE |
| Config keys (Server) | BITBUCKET_TYPE, BITBUCKET_BASE_URL, BITBUCKET_TOKEN |
| Package | bitbucket-mcp-server (or @modelcontextprotocol/server-bitbucket) |
| Setup time | Under 15 minutes |

What You Can Do With Bitbucket MCP

Once connected, Cursor can:

  • Read repository content — browse files, directories, and commit history

  • Manage pull requests — create PRs, read comments, check review status

  • Run pipeline status checks — see if builds are passing before suggesting merges

  • Create and switch branches — manage branching workflows from chat

  • Search code — find usages, patterns, and references across all repos

  • Read issues and tasks — pull context from Bitbucket Issues
  • Prerequisites


  • Cursor IDE 0.43+

  • A Bitbucket Cloud account (or Bitbucket Server/Data Center)

  • A Bitbucket App Password (for Cloud) or Personal Access Token (for Server)

  • Node.js 18+ installed
  • Step 1: Create a Bitbucket App Password

    For Bitbucket Cloud:

    1. Log in to bitbucket.org
    2. Click your avatar → Personal settings
    3. Go to App passwordsCreate app password
    4. Label it cursor-mcp-2026
    5. Grant these permissions:

  • Repositories: Read, Write

  • Pull requests: Read, Write

  • Issues: Read

  • Pipelines: Read

  • 6. Click Create and copy the password

    Your workspace slug is visible in your Bitbucket URL: bitbucket.org/YOUR-WORKSPACE/

    Step 2: Install the Bitbucket MCP Server

    npm install -g bitbucket-mcp-server
    

    Or use the community package:

    npm install -g @modelcontextprotocol/server-bitbucket
    

    Verify the install:

    bitbucket-mcp-server --version
    

    Step 3: Add to Cursor MCP Config

    Open Cursor → Settings → MCP and add the Bitbucket server:

    {
      "mcpServers": {
        "bitbucket": {
          "command": "npx",
          "args": ["-y", "bitbucket-mcp-server"],
          "env": {
            "BITBUCKET_USERNAME": "your-bitbucket-username",
            "BITBUCKET_APP_PASSWORD": "your-app-password-here",
            "BITBUCKET_WORKSPACE": "your-workspace-slug",
            "BITBUCKET_DEFAULT_REPO": "my-main-repo"
          }
        }
      }
    }
    

    BITBUCKET_DEFAULT_REPO is optional — it sets a default so you don't have to specify the repo on every request.

    Restart Cursor to load the new config.

    Step 4: Test the Connection

    In Cursor chat, try:

    List my Bitbucket repositories
    

    Or:

    Show me the open pull requests in the backend-api repo
    

    A successful response with real data means you're connected.

    Step 5: Practical Workflows

    Code review assistance

    Read PR #47 in the payments-service repo. Summarize the changes and flag any potential issues I should review before approving.
    

    Pre-commit checks

    Before I push this branch, check if there are any open PRs on main that might conflict with my changes to /src/billing/
    

    Branch management

    Create a new branch called feature/stripe-webhooks from main in the payments-service repo
    

    Pipeline monitoring

    What's the status of the last pipeline run on the main branch of payments-service?
    

    Automated PR creation

    I just finished the feature. Create a pull request from feature/stripe-webhooks to main with the title "Add Stripe webhook handling" and a description summarizing the changes in this diff
    

    Bitbucket Server / Data Center Setup

    If you're on Bitbucket Server (self-hosted), the config is slightly different:

    {
      "mcpServers": {
        "bitbucket": {
          "command": "npx",
          "args": ["-y", "bitbucket-mcp-server"],
          "env": {
            "BITBUCKET_TYPE": "server",
            "BITBUCKET_BASE_URL": "https://bitbucket.yourcompany.com",
            "BITBUCKET_TOKEN": "your-personal-access-token",
            "BITBUCKET_PROJECT_KEY": "PROJ"
          }
        }
      }
    }
    

    Personal Access Tokens on Bitbucket Server are found under Profile → Manage Account → Personal Access Tokens.

    Bitbucket MCP Server Setup: What It Actually Takes

    If you've skimmed a few of these guides across tools, here's the Bitbucket-specific version stripped of filler: one App Password (five minutes, no admin approval needed for your own account), one JSON block with four fields, one restart. No OAuth app to register, no waiting on a Bitbucket admin to whitelist anything — that's the whole reason this setup path stays under 15 minutes even for someone touching Cursor's MCP settings for the first time.

    The trade-off is that an App Password is a static credential, not a short-lived token. Treat it like any other long-lived secret: scope the permissions to what you actually need (Step 1), and rotate it if you ever suspect it leaked into a shared config or a committed .env.

    Combining Bitbucket With Jira and Confluence

    Bitbucket, Jira, and Confluence are all part of the Atlassian ecosystem. With all three MCP servers configured, you can do powerful cross-tool workflows:

    Find Jira ticket PROJ-892, read the spec in Confluence, check if there's already a branch for it in Bitbucket, and if not, create one called feature/PROJ-892
    

    This is a workflow that normally requires 3 browser tabs. With all three MCP servers, Cursor handles it in one prompt.

    See our guides for Jira MCP setup, Confluence MCP setup, and the combined Atlassian MCP bundle.

    Troubleshooting

    "Invalid credentials" error
    Make sure you're using an App Password, not your account password. Account passwords don't work with the API.

    "Repository not found"
    Check your workspace slug matches exactly. It's case-sensitive in some configurations.

    Pipelines not showing
    Pipelines access requires the Pipelines: Read permission on your App Password. Recreate the password with that permission checked.

    Slow responses on large repos
    The MCP server paginates results. For repos with thousands of files or PRs, add a limit: "Show me the 5 most recent open PRs" rather than "show all open PRs."

    App Password works, but only some repos show up
    App Passwords inherit whatever the underlying Bitbucket account can already see. If a repo belongs to a different workspace or the account isn't a member of it, it won't appear — check workspace membership before assuming the credential is scoped wrong.

    Config copied from an older (2025) tutorial won't connect
    The env var names in Step 3 (BITBUCKET_USERNAME, BITBUCKET_APP_PASSWORD, BITBUCKET_WORKSPACE) are unchanged from earlier 2025 guides. If an old config still fails, it's almost always an expired or revoked App Password rather than a schema change — generate a fresh one rather than debugging the JSON.

    Using the Atlassian bundle's OAuth route instead of an App Password, and it suddenly stopped connecting
    Check the endpoint, not your App Password — this only applies to the OAuth path, not the one in this guide. Atlassian retired the Rovo MCP Server's older /v1/sse endpoint after June 30, 2026, replacing it with /v1/mcp/authv2, as part of a broader OAuth identity provider migration that started May 27, 2026. A saved config from earlier in 2026 pointing at the old endpoint will fail silently rather than with a clear error. See the Atlassian MCP bundle guide for the current endpoint. This guide's App Password method is a completely separate auth path and isn't affected either way.

    When Not to Use This

    Be cautious about letting an AI-driven workflow both open and merge pull requests unattended, especially on repos with an auto-deploy pipeline on merge to main. Keep the merge step manual even after automating PR creation and review summaries — a model confidently wrong about "this looks safe to merge" is a bad failure mode to hit in production.

    Frequently Asked Questions

    Q: Does this work with Bitbucket Cloud, or only Server/Data Center?
    A: Both, with different auth. Bitbucket Cloud uses an App Password (Step 1); Server/Data Center uses a Personal Access Token and BITBUCKET_TYPE: "server" in the config, shown above.

    Q: My AI can read PRs but can't create or approve them — why?
    A: Check the permissions on your App Password, not the MCP config. Read-only scopes cover browsing; creating or approving PRs needs Pull requests: Write checked when you generated the password.

    Q: Can I limit the AI to one specific repository instead of the whole workspace?
    A: Set BITBUCKET_DEFAULT_REPO to scope default requests to one repo, but note this is a convenience default, not a hard restriction — the AI can still reference other repos in the workspace if you name them explicitly in a prompt. For an actual access boundary, use an App Password tied to an account that isn't a member of the other repos.

    Q: How does this compare to running the Atlassian MCP bundle instead of a dedicated Bitbucket server?
    A: The Atlassian MCP bundle covers Jira, Confluence, and Bitbucket from one token and one config entry — simpler if you use all three, but a single revoked token breaks all three at once. A dedicated Bitbucket-only server (this guide) is a better fit if your team doesn't use Jira or Confluence day-to-day.

    Q: Pipeline status shows as passing but the actual build failed — what's going on?
    A: This is almost always a stale read against a pipeline that re-ran after your first query. Ask again rather than trusting a cached-sounding answer from earlier in the same chat — the MCP server doesn't push live updates into an existing conversation.

    Q: Does this setup still apply if I'm on an older 2025 build of Cursor?
    A: Yes. The App Password auth flow and the mcp.json fields in this guide haven't changed between Cursor's 2025 and 2026 releases — the only thing worth re-checking on an old config is whether the App Password itself expired, not the JSON structure.

    Q: What's the actual Bitbucket MCP server Cursor IDE setup for 2026, start to finish?
    A: Four things: create an App Password scoped to repositories, pull requests, and pipelines (Step 1); install the server package (Step 2); add the bitbucket block from Step 3 to mcp.json with your username, password, and workspace slug; restart Cursor. No OAuth app registration, no admin approval step for a personal setup.

    Q: Is there a difference between the Bitbucket MCP server and running the full Atlassian bundle for Bitbucket access?
    A: Yes — this guide's dedicated server uses a Bitbucket-only App Password, while the Atlassian bundle uses one OAuth grant covering Jira, Confluence, and Bitbucket together. Pick the dedicated server if Bitbucket is the only Atlassian product you actually touch from Cursor.

    Q: Is the Bitbucket MCP server Cursor IDE setup for 2025 2026 the same walkthrough, or two different processes?
    A: One process, not two. "2025-2026" here means the App Password flow and the mcp.json fields in Step 3 have carried over unchanged from Cursor's 2025 builds into its 2026 releases — you're not choosing between a 2025 method and a 2026 method, you're following one guide that's stayed current across both.

    Q: What's the exact bitbucket mcp server cursor ide setup 2026 process, step by step?
    A: Create an App Password with Repositories, Pull requests, and Pipelines scopes (Step 1), install the server package (Step 2), add the bitbucket block to mcp.json with your username, password, and workspace slug (Step 3), restart Cursor, then confirm with a read-only prompt like "list my Bitbucket repositories." Server/Data Center swaps the App Password for a Personal Access Token and adds BITBUCKET_TYPE: "server".

    Q: Can I check pipeline status through this connection the same way I'd check it in CircleCI?
    A: This guide covers Bitbucket Pipelines specifically — the Pipelines: Read scope on your App Password. If your team runs CircleCI instead of (or alongside) Bitbucket Pipelines for some repos, the CircleCI MCP server is a separate connection with its own token, not something this App Password extends to.

    Q: I use the Atlassian bundle's OAuth connection for Bitbucket instead of an App Password — did anything change in 2026?
    A: Yes, on the endpoint side. Atlassian retired the Rovo MCP Server's /v1/sse endpoint after June 30, 2026, replacing it with /v1/mcp/authv2, alongside a broader OAuth identity provider migration starting May 27, 2026. A config saved before that migration will stop connecting without an obvious error message. This App Password guide's auth path doesn't go through that endpoint at all, so it's unaffected regardless of when you set it up.

    Summary

    The Bitbucket MCP server gives Cursor direct access to your source control workflow — creating branches, reading PRs, checking pipelines, and searching code across your workspace. Setup takes under 15 minutes.

    For teams on the full Atlassian stack, pairing this with Jira and Confluence MCP servers — or the combined Atlassian bundle — creates a unified development context that makes AI assistance significantly more accurate and useful.

    Related Guides


  • Jira MCP Server: Cursor IDE Setup (2026)

  • Confluence MCP Server: Cursor IDE Setup (2026)

  • Atlassian MCP Server: Full Setup (Jira + Confluence + Bitbucket)

  • GitLab MCP Server: Cursor IDE Setup (2026)
  • ---


    Related guides