# Connect Bitbucket to Your AI Agent (Universal MCP)

> Use your AI to build software, run deployments, and track issues in Bitbucket — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http bitbucket https://api.universalmcp.app/mcp/bitbucket`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/bitbucket` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "bitbucket", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Bitbucket | Category: DevOps & IT/Security (Atlassian) | Auth: OAuth 2.1 (1-click sign-in)
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Repository and PR reads, Comments and reviewers, Settings and access keys; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=bitbucket | Guide: https://universalmcp.app/mcp/bitbucket
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (78 actions: 43 Read, 35 Write)
Perform over 70 actions across pull requests & code review, repositories & branches, pipelines & CI/CD, workspaces & projects, webhooks & integrations, issues & work items, and snippets & code search. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Pull Requests & Code Review (12):** Audit Pull Request Activity (read), Check Merge Check Status (read), Get Pull Request Details (read), List Repository Pull Requests (read), List User Pull Requests (read), Approve Pull Request (write), Assign Pull Request Reviewers (write), Create Merge Check (write), Create Pull Request (write), Post Pull Request Comment (write), Submit Pull Request Merge (write), Update Pull Request (write)
- **Repositories & Branches (10):** Compare Branch Changes (read), Get File Contents (read), Get Repository Details (read), List Branches (read), List Commit History (read), List Repositories (read), Create Branch (write), Create Repository (write), Delete Branch (write), Update Repository Settings (write)
- **Pipelines & CI/CD (9):** Check Pipeline Failures (read), Check Runner Status (read), Get Pipeline Logs (read), List Pipeline Runs (read), Create Pipeline Run (write), Create Pipeline Schedule (write), Create Self-Hosted Runner (write), Update Pipeline Configuration (write), Update Pipeline Variables (write)
- **Workspaces & Projects (7):** Get Workspace Details (read), List Repository Permissions (read), List Workspace Members (read), List Workspace Projects (read), List Workspaces (read), Assign Workspace Member Role (write), Create Project (write)
- **Webhooks & Integrations (7):** List App Linkers (read), List Linker Values (read), List Webhook Event Types (read), List Webhooks (read), Create Webhook (write), Delete Installed App (write), Update Installed App (write)
- **Issues & Work Items (6):** List Issues (read), Track Work Item Deployments (read), Create Issue (write), Post Issue Comment (write), Record Work Item Link (write), Update Issue Status (write)
- **Snippets & Code Search (6):** Get Snippet (read), List Snippets (read), Search Team Code (read), Search User Code (read), Create Snippet (write), Create Workspace Snippet (write)
- **Security & Compliance (6):** Audit Repository Permissions (read), Check Security Scan Results (read), Export Audit Log (read), List Branch Restrictions (read), Create Branch Restriction (write), Delete Workspace Member (write)
- **Deployments & Environments (5):** Get Environment Details (read), List Deployments (read), Track Release Status (read), Record Deployment (write), Update Environment Restrictions (write)
- **Packages & Registries (5):** Get Container Image Tags (read), List Packages (read), Delete Package Version (write), Update Package Permissions (write), Upload Package Artifact (write)
- **Users & SSH Keys (5):** Get Current User (read), Get User Profile (read), List SSH Keys (read), List User Emails (read), Create SSH Key (write)

## Example Prompts for Bitbucket
- **Failing pipelines:** "List Bitbucket pipelines that failed on the platform-api main branch in the last week with their error step."
- **Stale pull requests:** "Find Bitbucket pull requests open longer than five days and summarize what each one is blocked on."
- **Branch permissions:** "Review branch permission rules on the Bitbucket platform-api repo and list any admins who can bypass checks."
- **Draft reviewer note:** "Draft a reviewer request comment for the stale Bitbucket PRs, then wait for approval before posting it."
