Deploy MCP Server
DevOps OAuth 2.0

Bitbucket REST API

Git repository management and CI/CD platform API

Bitbucket REST API enables developers to automate Git repository operations, manage pull requests, configure pipelines, and integrate with Atlassian's DevOps ecosystem. The API provides programmatic access to version control, code review workflows, branch permissions, and deployment automation. Teams use it to build custom integrations, automate release processes, and create developer productivity tools.

Base URL https://api.bitbucket.org/2.0

API Endpoints

MethodEndpointDescription
GET/repositories/{workspace}/{repo_slug}Get details about a specific repository including metadata, size, and configuration
GET/repositories/{workspace}/{repo_slug}/pullrequestsList all pull requests for a repository with filtering and pagination options
POST/repositories/{workspace}/{repo_slug}/pullrequestsCreate a new pull request with source and destination branches
GET/repositories/{workspace}/{repo_slug}/commitsRetrieve commit history for a repository or specific branch
GET/repositories/{workspace}/{repo_slug}/src/{commit}/{path}Get file contents at a specific commit or branch
POST/repositories/{workspace}/{repo_slug}/webhooksCreate a webhook to receive events for repository changes and actions
GET/repositories/{workspace}/{repo_slug}/pipelinesList pipeline executions with status, duration, and build information
POST/repositories/{workspace}/{repo_slug}/pipelinesTrigger a new pipeline build for a branch or custom configuration
GET/repositories/{workspace}/{repo_slug}/refs/branchesList all branches in the repository with commit references
POST/repositories/{workspace}/{repo_slug}/refs/branchesCreate a new branch from a specific commit or existing branch
GET/repositories/{workspace}/{repo_slug}/issuesRetrieve issues tracked in the repository with filtering options
GET/workspaces/{workspace}/projectsList all projects within a workspace for organization
GET/repositories/{workspace}/{repo_slug}/downloadsList downloadable artifacts and releases for the repository
GET/repositories/{workspace}/{repo_slug}/branch-restrictionsGet branch permission rules and merge restrictions
GET/user/permissions/repositoriesList repositories the authenticated user has access to with permission levels

Code Examples

curl -X GET 'https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/pullrequests' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'

Connect Bitbucket to AI

Deploy a Bitbucket MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Bitbucket through these tools:

create_pull_request Create a new pull request with title, description, source branch, and destination branch
merge_pull_request Merge an approved pull request with specified merge strategy and commit message
get_repository_files Browse and retrieve file contents from a repository at a specific commit or branch
trigger_pipeline Start a CI/CD pipeline build for a branch with optional custom variables
search_code Search code across repositories in a workspace using query patterns

Deploy in 60 seconds

Describe what you need, AI generates the code, and IOX deploys it globally.

Deploy Bitbucket MCP Server →

Related APIs