MCP server for Bitbucket repositories
## Bitbucket MCP Server: Git Repository Management Platform The **Bitbucket MCP Server** integrates Atlassian Bitbucket repository management into Google Antigravity, enabling seamless code collaboration, pull request workflows, and CI/CD pipeline management through AI-assisted operations. ### Why Bitbucket MCP? - **Jira Integration**: Deep integration with Jira for seamless issue tracking and development workflow connections - **Built-in CI/CD**: Native Bitbucket Pipelines for continuous integration without additional tooling - **Code Review**: Powerful pull request features with inline comments, approvals, and merge checks - **Branch Permissions**: Granular branch protection rules and merge requirements for enterprise governance - **Deployment Tracking**: Track deployments across environments with built-in deployment dashboards ### Key Features #### 1. Repository Management ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a new Bitbucket repository with branch protection and required reviewers configured" }] ) ``` #### 2. Pull Request Operations ```python # Manage pull requests response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List open pull requests, check their pipeline status, and merge those with approvals" }] ) ``` #### 3. Pipeline Management ```python # Handle CI/CD pipelines response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Trigger deployment pipeline for the release branch and monitor execution status" }] ) ``` #### 4. Code Search ```python # Search repositories response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Search all repositories for usages of the deprecated authentication method" }] ) ``` ### Configuration ```json { "mcpServers": { "bitbucket": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-bitbucket"], "env": { "BITBUCKET_USERNAME": "your-username", "BITBUCKET_APP_PASSWORD": "your-app-password", "BITBUCKET_WORKSPACE": "your-workspace" } } } } ``` ### Use Cases **Atlassian Workflow**: Leverage tight Jira integration for complete issue-to-deployment traceability. **Enterprise Git**: Manage repositories with enterprise-grade permissions, audit logs, and compliance features. **Pipeline Automation**: Automate build, test, and deployment workflows with Bitbucket Pipelines. **Code Review Process**: Streamline code reviews with automated checks and approval workflows. The Bitbucket MCP Server brings Atlassian ecosystem integration to your AI-assisted development, enabling seamless collaboration within enterprise environments.
{
"mcpServers": {
"bitbucket": {
"mcpServers": {
"bitbucket": {
"env": {
"BITBUCKET_TOKEN": "YOUR_API_TOKEN",
"BITBUCKET_USERNAME": "YOUR_USERNAME"
},
"args": [
"-y",
"@aashari/mcp-server-atlassian-bitbucket"
],
"command": "npx"
}
}
}
}
}