Bitbucket MCP Server
Provides tools for managing Pull Requests on Bitbucket Cloud, including creating, listing, updating, and reviewing PRs, adding comments, and managing reviewers and workspace members.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bitbucket MCP Server create a pull request for the new login feature from branch feature/login to main"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bitbucket MCP Server
A FastMCP server for comprehensive Bitbucket Cloud API integration. Manage pull requests, repositories, branches, commits, pipelines, issues, webhooks, snippets, and more directly from Claude.
Features
User & Account: Get current user info, user profiles, and repository permissions
Repository Management: List, create, update, delete, and fork repositories
Branch & Tag Management: Create/delete branches and tags, view branching model
Commits & Build Status: List commits, view diffs, manage build statuses
Pull Request Lifecycle: Create, update, merge, and decline PRs
Code Review: Approve, request changes, add/remove reviewers
Comments: Add, read, reply to, and delete comments (including inline code comments)
Diff & Code: View diffs, file changes, commits, and file contents
Merge Status: Check if PR can be merged, view conflicts and blockers
Pipelines (CI/CD): List, trigger, stop pipelines; view steps and logs; manage variables
Workspace & Projects: List workspaces, manage projects, search code
Issues: Create, update, list issues; manage issue comments
Webhooks: Create, list, and delete repository and workspace webhooks
Snippets: Create, list, get, and delete code snippets
Related MCP server: Atlassian Bitbucket MCP Server
Installation
From PyPI (Recommended)
pip install bitbucket-mcpOr run directly with uvx (no install needed):
uvx bitbucket-mcpGetting an API Token
Go to Atlassian API Tokens
Click Create API token
Give it a name (e.g., "Bitbucket MCP")
Copy the generated token
Configuration
Option 1: Interactive Setup (Recommended)
Use the setup_bitbucket tool:
setup_bitbucket(
workspace="your-workspace",
username="your-email@example.com",
api_token="your-api-token"
)This stores credentials securely in ~/.bitbucket-mcp/config.json with 600 permissions.
Option 2: Environment Variables
export BITBUCKET_API_TOKEN="your-api-token"
export BITBUCKET_USERNAME="your-email@example.com"
export BITBUCKET_WORKSPACE="your-workspace" # optional defaultClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bitbucket": {
"command": "uvx",
"args": ["bitbucket-mcp"]
}
}
}Or if installed with pip:
{
"mcpServers": {
"bitbucket": {
"command": "bitbucket-mcp"
}
}
}Available Tools (77 total)
Configuration (2 tools)
Tool | Description |
| Configure Bitbucket credentials |
| Check configuration status |
User & Account (3 tools)
Tool | Description |
| Get authenticated user's profile |
| Get a user's public profile |
| Get current user's repository permissions |
Repository Management (7 tools)
Tool | Description |
| List repositories in a workspace |
| Get detailed repository info |
| Create a new repository |
| Update repository settings |
| Delete a repository |
| Fork a repository |
| List forks of a repository |
Branch & Tag Management (7 tools)
Tool | Description |
| List branches in a repository |
| Create a new branch |
| Delete a branch |
| List tags in a repository |
| Create a new tag |
| Delete a tag |
| Get branching model configuration |
Commits & Build Status (8 tools)
Tool | Description |
| Get file contents from a branch/commit |
| List commits in a repository |
| Get details of a specific commit |
| Get diff for a commit or range |
| Get diffstat for a commit or range |
| List build statuses for a commit |
| Create a build status for a commit |
| List comments on a commit |
Pull Requests (20 tools)
Tool | Description |
| Create a new PR with default reviewers |
| List PRs for a repository |
| Get PR details |
| Update/edit a PR |
| Approve a PR |
| Remove approval from a PR |
| Request changes on a PR |
| Add a comment to a PR |
| Get comments from a PR |
| Get summary of files changed |
| Get code diff for a PR |
| Merge a PR |
| Decline/close a PR |
| Reply to a specific comment |
| Add inline comment on code |
| Delete a comment |
| Get PR activity timeline |
| List commits in a PR |
| Add a reviewer to a PR |
| Remove a reviewer from a PR |
| Check if PR can be merged |
Pipelines / CI/CD (8 tools)
Tool | Description |
| List pipelines for a repository |
| Get pipeline details |
| Trigger a new pipeline run |
| Stop a running pipeline |
| List steps in a pipeline |
| Get log output for a step |
| List pipeline variables |
| Create a pipeline variable |
Workspace & Projects (10 tools)
Tool | Description |
| List workspace members |
| Get default reviewers for a repo |
| List all accessible workspaces |
| Get workspace details |
| List workspace permissions |
| List projects in a workspace |
| Get project details |
| Create a new project |
| Search code across repositories |
Issues (6 tools)
Tool | Description |
| List issues in a repository |
| Create a new issue |
| Get issue details |
| Update an issue |
| List comments on an issue |
| Add a comment to an issue |
Webhooks (4 tools)
Tool | Description |
| List repository webhooks |
| Create a repository webhook |
| Delete a repository webhook |
| List workspace webhooks |
Snippets (4 tools)
Tool | Description |
| List snippets in a workspace |
| Create a new snippet |
| Get snippet details |
| Delete a snippet |
Example Usage with Claude
First time setup:
"Set up Bitbucket with my workspace 'mycompany', username 'me@example.com', and API token 'abc123'"
List repositories:
"Show me all repositories in my workspace"
Create a PR:
"Create a PR in my-repo from feature/login to main titled 'Add user login'"
Review a PR:
"Approve PR #42 in my-repo"
Check merge status:
"Can PR #42 be merged? Are there any conflicts?"
Merge a PR:
"Squash merge PR #42 and delete the source branch"
Pipeline operations:
"Trigger a pipeline on the main branch for my-repo" "Show me the logs for the last pipeline run"
Branch management:
"Create a branch 'feature/new-api' from main in my-repo" "List all tags in my-repo"
Issue tracking:
"Create a bug issue titled 'Login fails on mobile' in my-repo" "Show me all open issues in my-repo"
Code search:
"Search for 'TODO' across all repositories in my workspace"
Security
Credentials are stored in
~/.bitbucket-mcp/config.jsonwith 600 permissions (owner-only access)API tokens are never logged or exposed in error messages
Environment variables are supported for CI/CD scenarios
License
MIT License - see LICENSE for details.
Available Tools
79 toolsadd_inline_commentB
Add an inline comment on a specific line of code in a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID file_path: Path to the file to comment on line: Line number to comment on content: Comment text (supports markdown) workspace: Bitbucket workspace (optional if configured)
Returns: Comment details or error message
Inputs: repo_slug (required), pr_id (required), file_path (required), line (required), +2 more. Returns: object
add_issue_commentB
Add a comment to an issue.
Args: repo_slug: Repository slug (name) issue_id: Issue ID content: Comment text (supports markdown) workspace: Bitbucket workspace (optional if configured)
Returns: Created comment details or error message
Inputs: repo_slug (required), issue_id (required), content (required), workspace. Returns: object
add_pull_request_commentC
Add a comment to a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID comment: Comment text (supports markdown) workspace: Bitbucket workspace (optional if configured)
Returns: Comment details or error message
Inputs: repo_slug (required), pr_id (required), comment (required), workspace. Returns: object
add_reviewerA
Add a reviewer to a Pull Request without removing existing reviewers.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID reviewer: UUID or account_id of the reviewer to add workspace: Bitbucket workspace (optional if configured)
Returns: Updated reviewer list or error message
Inputs: repo_slug (required), pr_id (required), reviewer (required), workspace. Returns: object
approve_pull_requestC
Approve a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID to approve workspace: Bitbucket workspace (optional if configured)
Returns: Approval confirmation or error message
Inputs: repo_slug (required), pr_id (required), workspace. Returns: object
create_branchC
Create a new branch in a repository.
Args: repo_slug: Repository slug (name) name: Name for the new branch target: Commit hash, branch name, or tag to branch from workspace: Bitbucket workspace (optional if configured)
Returns: Created branch details or error message
Inputs: repo_slug (required), name (required), target (required), workspace. Returns: object
create_build_statusB
Create a build status for a commit.
Args: repo_slug: Repository slug (name) commit_hash: The commit hash state: Build state - "SUCCESSFUL", "FAILED", "INPROGRESS", or "STOPPED" key: Unique key for this build status url: URL to the build results (optional) description: Description of the build status (optional) name: Display name for the build (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Created build status details or error message
Inputs: repo_slug (required), commit_hash (required), state (required), key (required), +4 more. Returns: object
create_issueA
Create a new issue in a repository's issue tracker.
Args: repo_slug: Repository slug (name) title: Issue title content: Issue description in markdown (optional) kind: Issue kind - "bug", "enhancement", "proposal", or "task" (default: bug) priority: Issue priority - "trivial", "minor", "major", "critical", or "blocker" (default: major) assignee: Account ID of the assignee (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Created issue details or error message
Inputs: repo_slug (required), title (required), content, kind, +3 more. Returns: object
create_pipeline_variableB
Create a pipeline variable for a repository.
Args: repo_slug: Repository slug (name) key: Variable name value: Variable value secured: Whether the variable is secured/encrypted (default: False) workspace: Bitbucket workspace (optional if configured)
Returns: Created variable details or error message
Inputs: repo_slug (required), key (required), value (required), secured, +1 more. Returns: object
create_projectB
Create a new project in a workspace.
Args: name: Project name key: Project key (unique identifier, uppercase letters and numbers) description: Project description (optional) is_private: Whether the project is private (default: True) workspace: Bitbucket workspace (optional if configured)
Returns: Created project details or error message
Inputs: name (required), key (required), description, is_private, +1 more. Returns: object
create_pull_requestA
Create a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) title: PR title source_branch: Branch to merge from destination_branch: Branch to merge into (default: main) description: PR description (optional) reviewers: List of reviewer UUIDs or account_ids (optional). These are added in addition to default reviewers. use_default_reviewers: Whether to include default reviewers (default: True) workspace: Bitbucket workspace (optional if configured)
Returns: PR details including URL and ID, or error message
Inputs: repo_slug (required), title (required), source_branch (required), destination_branch, +4 more. Returns: object
create_repositoryA
Create a new repository in a Bitbucket workspace.
Args: repo_slug: Repository slug (URL-friendly name) project_key: Project key to create the repo under (optional) is_private: Whether the repository is private (default: True) description: Repository description (optional) language: Programming language (optional) fork_policy: Fork policy - "allow_forks", "no_public_forks", or "no_forks" (default: no_public_forks) workspace: Bitbucket workspace (optional if configured)
Returns: Created repository details or error message
Inputs: repo_slug (required), project_key, is_private, description, +3 more. Returns: object
create_snippetC
Create a new snippet.
Args: title: Snippet title content: Snippet file content filename: Filename for the snippet content is_private: Whether the snippet is private (default: False) workspace: Bitbucket workspace (optional if configured)
Returns: Created snippet details or error message
Inputs: title (required), content (required), filename (required), is_private, +1 more. Returns: object
create_tagC
Create a new tag in a repository.
Args: repo_slug: Repository slug (name) name: Name for the new tag target: Commit hash to tag workspace: Bitbucket workspace (optional if configured)
Returns: Created tag details or error message
Inputs: repo_slug (required), name (required), target (required), workspace. Returns: object
create_webhookA
Create a webhook for a repository.
Args: repo_slug: Repository slug (name) url: The URL to receive webhook events events: List of events to subscribe to (e.g., ["repo:push", "pullrequest:created"]) description: Webhook description (optional) active: Whether the webhook is active (default: True) workspace: Bitbucket workspace (optional if configured)
Returns: Created webhook details or error message
Inputs: repo_slug (required), url (required), events (required), description, +2 more. Returns: object
decline_pull_requestA
Decline/close a Pull Request on Bitbucket Cloud without merging.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID to decline reason: Optional reason for declining (will be added as a comment) workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), pr_id (required), reason, workspace. Returns: object
delete_branchC
Delete a branch from a repository.
Args: repo_slug: Repository slug (name) name: Branch name to delete workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), name (required), workspace. Returns: object
delete_commentC
Delete a comment from a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID comment_id: ID of the comment to delete workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), pr_id (required), comment_id (required), workspace. Returns: object
delete_repositoryA
Delete a repository. This action is irreversible.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), workspace. Returns: object
delete_snippetC
Delete a snippet.
Args: snippet_id: Snippet ID workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: snippet_id (required), workspace. Returns: object
delete_tagB
Delete a tag from a repository.
Args: repo_slug: Repository slug (name) name: Tag name to delete workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), name (required), workspace. Returns: object
delete_webhookB
Delete a webhook from a repository.
Args: repo_slug: Repository slug (name) webhook_uid: Webhook UUID (with or without braces) workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), webhook_uid (required), workspace. Returns: object
fork_repositoryC
Fork a repository.
Args: repo_slug: Repository slug (name) to fork new_name: Name for the forked repository (optional, defaults to original name) workspace: Bitbucket workspace (optional if configured)
Returns: Forked repository details or error message
Inputs: repo_slug (required), new_name, workspace. Returns: object
get_branching_modelA
Get the branching model configuration for a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured)
Returns: Branching model details including branch types and development/production branches
Inputs: repo_slug (required), workspace. Returns: object
get_commitA
Get details of a specific commit.
Args: repo_slug: Repository slug (name) commit_hash: The commit hash workspace: Bitbucket workspace (optional if configured)
Returns: Commit details including message, author, date, and parents
Inputs: repo_slug (required), commit_hash (required), workspace. Returns: object
get_commit_diffA
Get the diff for a commit or commit range.
Args: repo_slug: Repository slug (name) spec: Commit hash or range (e.g., "abc123" or "abc123..def456") workspace: Bitbucket workspace (optional if configured)
Returns: The diff content as text
Inputs: repo_slug (required), spec (required), workspace. Returns: object
get_commit_diffstatA
Get the diffstat (summary of changes) for a commit or commit range.
Args: repo_slug: Repository slug (name) spec: Commit hash or range (e.g., "abc123" or "abc123..def456") workspace: Bitbucket workspace (optional if configured)
Returns: List of files changed with line counts
Inputs: repo_slug (required), spec (required), workspace. Returns: object
get_config_statusB
Check if Bitbucket is configured and return current status.
Returns: Configuration status with workspace info
Inputs: no named parameters. Returns: object
get_current_userA
Get the currently authenticated user's profile information.
Returns: Current user details including display name, UUID, and account info
Inputs: no named parameters. Returns: object
get_default_reviewersA
Get the default reviewers configured for a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured)
Returns: List of default reviewers with their UUIDs and display names
Inputs: repo_slug (required), workspace. Returns: object
get_file_contentsA
Get the contents of a file from a repository at a specific branch/commit.
Args: repo_slug: Repository slug (name) file_path: Path to the file in the repository ref: Branch name, tag, or commit hash (default: main) workspace: Bitbucket workspace (optional if configured)
Returns: File contents as text
Inputs: repo_slug (required), file_path (required), ref, workspace. Returns: object
get_issueC
Get details of a specific issue.
Args: repo_slug: Repository slug (name) issue_id: Issue ID workspace: Bitbucket workspace (optional if configured)
Returns: Issue details including description, assignee, and metadata
Inputs: repo_slug (required), issue_id (required), workspace. Returns: object
get_pipelineB
Get details of a specific pipeline.
Args: repo_slug: Repository slug (name) pipeline_uuid: Pipeline UUID (with or without braces) workspace: Bitbucket workspace (optional if configured)
Returns: Pipeline details including state, steps, and duration
Inputs: repo_slug (required), pipeline_uuid (required), workspace. Returns: object
get_pipeline_step_logC
Get the log output for a pipeline step.
Args: repo_slug: Repository slug (name) pipeline_uuid: Pipeline UUID (with or without braces) step_uuid: Step UUID (with or without braces) workspace: Bitbucket workspace (optional if configured)
Returns: Step log content
Inputs: repo_slug (required), pipeline_uuid (required), step_uuid (required), workspace. Returns: object
get_projectC
Get details of a specific project.
Args: project_key: Project key workspace: Bitbucket workspace (optional if configured)
Returns: Project details
Inputs: project_key (required), workspace. Returns: object
get_pull_requestB
Get details of a specific Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured)
Returns: Detailed PR information including description, reviewers, and comments count
Inputs: repo_slug (required), pr_id (required), workspace. Returns: object
get_pull_request_activityB
Get the activity/timeline of a Pull Request including comments, approvals, and updates.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 50)
Returns: List of activity events on the PR
Inputs: repo_slug (required), pr_id (required), workspace, page, +1 more. Returns: object
get_pull_request_commentsB
Get comments from a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 50)
Returns: List of comments with their details including content, author, and timestamps
Inputs: repo_slug (required), pr_id (required), workspace, page, +1 more. Returns: object
get_pull_request_commitsB
Get the list of commits in a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 50)
Returns: List of commits in the PR
Inputs: repo_slug (required), pr_id (required), workspace, page, +1 more. Returns: object
get_pull_request_diffA
Get the diff (code changes) for a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID file_path: Optional specific file path to get diff for (recommended for large PRs) context_lines: Number of context lines around changes (default: 3) workspace: Bitbucket workspace (optional if configured)
Returns: The diff content as text
Inputs: repo_slug (required), pr_id (required), file_path, context_lines, +1 more. Returns: object
get_pull_request_diffstatC
Get a summary of files changed in a Pull Request with line counts.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured)
Returns: List of files with lines added/removed counts
Inputs: repo_slug (required), pr_id (required), workspace. Returns: object
get_pull_request_merge_statusA
Check if a Pull Request can be merged and get merge status details.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured)
Returns: Merge status including conflicts, required approvals, and blockers
Inputs: repo_slug (required), pr_id (required), workspace. Returns: object
get_repositoryA
Get detailed information about a specific repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured)
Returns: Repository details including settings, branches, and statistics
Inputs: repo_slug (required), workspace. Returns: object
get_snippetC
Get details of a specific snippet.
Args: snippet_id: Snippet ID workspace: Bitbucket workspace (optional if configured)
Returns: Snippet details including files and metadata
Inputs: snippet_id (required), workspace. Returns: object
get_user_permissionsB
Get the current user's repository permissions.
Args: workspace: Filter by workspace (optional) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of repositories and the user's permission level for each
Inputs: workspace, page, pagelen. Returns: object
get_user_profileC
Get a user's public profile information.
Args: username: Bitbucket username or UUID
Returns: User profile details
Inputs: username (required). Returns: object
get_workspace_detailsB
Get detailed information about a workspace.
Args: workspace: Bitbucket workspace slug (optional if configured)
Returns: Workspace details
Inputs: workspace. Returns: object
list_branchesB
List branches in a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25) query: Optional search query to filter branches by name
Returns: List of branches with their details
Inputs: repo_slug (required), workspace, page, pagelen, +1 more. Returns: object
list_commit_commentsB
List comments on a specific commit.
Args: repo_slug: Repository slug (name) commit_hash: The commit hash workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of comments on the commit
Inputs: repo_slug (required), commit_hash (required), workspace, page, +1 more. Returns: object
list_commitsB
List commits in a repository.
Args: repo_slug: Repository slug (name) branch: Branch name to list commits from (optional) include: Commit hash to include (optional) exclude: Commit hash to exclude (optional) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of commits with their details
Inputs: repo_slug (required), branch, include, exclude, +3 more. Returns: object
list_commit_statusesA
List build statuses for a specific commit.
Args: repo_slug: Repository slug (name) commit_hash: The commit hash workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of build statuses for the commit
Inputs: repo_slug (required), commit_hash (required), workspace, page, +1 more. Returns: object
list_issue_commentsB
List comments on an issue.
Args: repo_slug: Repository slug (name) issue_id: Issue ID workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of comments on the issue
Inputs: repo_slug (required), issue_id (required), workspace, page, +1 more. Returns: object
list_issuesB
List issues in a repository's issue tracker.
Args: repo_slug: Repository slug (name) query: Search query to filter issues (optional) state: Filter by state - "new", "open", "resolved", "on hold", "invalid", "duplicate", "wontfix", "closed" (optional) priority: Filter by priority - "trivial", "minor", "major", "critical", "blocker" (optional) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of issues with their details
Inputs: repo_slug (required), query, state, priority, +3 more. Returns: object
list_pipelinesB
List pipelines for a repository.
Args: repo_slug: Repository slug (name) sort: Sort field (e.g., "-created_on" for newest first) (optional) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of pipelines with their details
Inputs: repo_slug (required), sort, workspace, page, +1 more. Returns: object
list_pipeline_stepsB
List steps in a pipeline.
Args: repo_slug: Repository slug (name) pipeline_uuid: Pipeline UUID (with or without braces) workspace: Bitbucket workspace (optional if configured)
Returns: List of pipeline steps with their details
Inputs: repo_slug (required), pipeline_uuid (required), workspace. Returns: object
list_pipeline_variablesB
List pipeline variables configured for a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of pipeline variables
Inputs: repo_slug (required), workspace, page, pagelen. Returns: object
list_projectsB
List projects in a workspace.
Args: workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of projects with their details
Inputs: workspace, page, pagelen. Returns: object
list_pull_requestsA
List Pull Requests for a repository on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) state: PR state filter - OPEN, MERGED, DECLINED, SUPERSEDED, or ALL (default: OPEN) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 50 (default: 25)
Returns: List of PRs with their details
Inputs: repo_slug (required), state, workspace, page, +1 more. Returns: object
list_repositoriesB
List repositories in a Bitbucket workspace.
Args: workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25) query: Optional search query to filter repositories by name
Returns: List of repositories with their details
Inputs: workspace, page, pagelen, query. Returns: object
list_repository_forksB
List forks of a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of forked repositories
Inputs: repo_slug (required), workspace, page, pagelen. Returns: object
list_snippetsB
List snippets in a workspace.
Args: workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of snippets with their details
Inputs: workspace, page, pagelen. Returns: object
list_tagsB
List tags in a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25) query: Optional search query to filter tags by name
Returns: List of tags with their details
Inputs: repo_slug (required), workspace, page, pagelen, +1 more. Returns: object
list_webhooksA
List webhooks configured for a repository.
Args: repo_slug: Repository slug (name) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of webhooks with their details
Inputs: repo_slug (required), workspace, page, pagelen. Returns: object
list_workspace_membersA
List members of a Bitbucket workspace. Use this to find users who can be added as reviewers.
Args: workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 50)
Returns: List of workspace members with their UUIDs and display names
Inputs: workspace, page, pagelen. Returns: object
list_workspace_permissionsB
List permissions for a workspace.
Args: workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 50)
Returns: List of workspace permissions
Inputs: workspace, page, pagelen. Returns: object
list_workspacesB
List all workspaces the authenticated user has access to.
Returns: List of workspaces with their details
Inputs: no named parameters. Returns: object
list_workspace_webhooksB
List webhooks configured for a workspace.
Args: workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: List of workspace webhooks
Inputs: workspace, page, pagelen. Returns: object
merge_pull_requestB
Merge a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID to merge merge_strategy: Merge strategy - "merge_commit", "squash", or "fast_forward" (default: merge_commit) close_source_branch: Whether to close the source branch after merge (default: False) message: Custom merge commit message (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Merge result with commit details or error message
Inputs: repo_slug (required), pr_id (required), merge_strategy, close_source_branch, +2 more. Returns: object
remove_reviewerB
Remove a reviewer from a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID reviewer: UUID or account_id of the reviewer to remove workspace: Bitbucket workspace (optional if configured)
Returns: Updated reviewer list or error message
Inputs: repo_slug (required), pr_id (required), reviewer (required), workspace. Returns: object
reply_to_commentC
Reply to a specific comment on a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID comment_id: ID of the comment to reply to content: Reply text (supports markdown) workspace: Bitbucket workspace (optional if configured)
Returns: Reply details or error message
Inputs: repo_slug (required), pr_id (required), comment_id (required), content (required), +1 more. Returns: object
request_changes_pull_requestC
Request changes on a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), pr_id (required), workspace. Returns: object
search_codeB
Search for code across repositories in a workspace.
Args: query: Search query string workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 100 (default: 25)
Returns: Code search results with file paths and matching content
Inputs: query (required), workspace, page, pagelen. Returns: object
setup_bitbucketB
Configure Bitbucket credentials for the MCP server.
Args: workspace: Bitbucket workspace slug (e.g., "myworkspace") username: Your Atlassian account email (e.g., "user@example.com") api_token: Atlassian API Token from https://id.atlassian.com/manage-profile/security/api-tokens
Returns: Success or error message
Inputs: workspace (required), username (required), api_token (required). Returns: result
stop_pipelineB
Stop a running pipeline.
Args: repo_slug: Repository slug (name) pipeline_uuid: Pipeline UUID (with or without braces) workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), pipeline_uuid (required), workspace. Returns: object
trigger_pipelineB
Trigger a new pipeline run.
Args: repo_slug: Repository slug (name) branch: Branch to run pipeline on (optional, defaults to main branch) custom_pipeline: Name of custom pipeline to run (optional) variables: List of pipeline variables as [{"key": "name", "value": "val", "secured": false}] (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Triggered pipeline details or error message
Inputs: repo_slug (required), branch, custom_pipeline, variables, +1 more. Returns: object
unapprove_pull_requestB
Remove approval from a Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID to unapprove workspace: Bitbucket workspace (optional if configured)
Returns: Confirmation or error message
Inputs: repo_slug (required), pr_id (required), workspace. Returns: object
update_issueB
Update an existing issue.
Args: repo_slug: Repository slug (name) issue_id: Issue ID title: New issue title (optional) content: New issue description in markdown (optional) state: New state - "new", "open", "resolved", "on hold", "invalid", "duplicate", "wontfix", "closed" (optional) priority: New priority - "trivial", "minor", "major", "critical", "blocker" (optional) assignee: Account ID of new assignee, or empty string to unassign (optional) kind: New kind - "bug", "enhancement", "proposal", "task" (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Updated issue details or error message
Inputs: repo_slug (required), issue_id (required), title, content, +5 more. Returns: object
update_pull_requestB
Update/edit an existing Pull Request on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID to update title: New PR title (optional) description: New PR description (optional) destination_branch: New destination branch (optional) reviewers: List of reviewer UUIDs or account_ids to set as reviewers (optional). Pass empty list [] to remove all reviewers. close_source_branch: Whether to close source branch on merge (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Updated PR details or error message
Inputs: repo_slug (required), pr_id (required), title, description, +4 more. Returns: object
update_repositoryB
Update repository settings.
Args: repo_slug: Repository slug (name) description: New description (optional) is_private: Whether the repository is private (optional) language: Programming language (optional) fork_policy: Fork policy - "allow_forks", "no_public_forks", or "no_forks" (optional) has_issues: Enable/disable issue tracker (optional) has_wiki: Enable/disable wiki (optional) workspace: Bitbucket workspace (optional if configured)
Returns: Updated repository details or error message
Inputs: repo_slug (required), description, is_private, language, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 79 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are organized by resource type (repositories, pull requests, issues, pipelines, etc.) and action (create, get, list, update, delete), making it easy to distinguish between them. Even similar-sounding tools like 'add_pull_request_comment' and 'add_inline_comment' have clear distinctions in their descriptions.
The tool names follow a highly consistent verb_noun pattern throughout all 79 tools. Every tool uses snake_case with clear action verbs (create, get, list, update, delete, add, remove, etc.) followed by specific resource nouns. There are no deviations in naming conventions across the entire set.
With 79 tools, this is an extremely large set that feels overwhelming for the Bitbucket domain. While Bitbucket has many features, this count goes beyond typical well-scoped servers (3-15 tools) and even beyond borderline heavy sets (16-25 tools). The sheer volume makes it difficult for agents to navigate and understand the complete surface area.
The tool set provides comprehensive CRUD/lifecycle coverage across all Bitbucket domains including repositories, pull requests, issues, pipelines, snippets, webhooks, and more. Every resource type has create, read, update, and delete operations where applicable, plus specialized actions like merge, approve, fork, and search. There are no obvious gaps in the surface area.
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Work your users' feedback queue from your editor: triage, approve fixes, ship draft PRs.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Bitbucket Cloud repositories, allowing users to manage pull requests, comments, tasks, and branches through natural language commands.1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Bitbucket Cloud and self-hosted instances for pull request reviews, code search, repository operations, and managing PR comments and approvals.19GPL 3.0
- AlicenseAqualityBmaintenanceEnables AI assistants to manage Bitbucket Cloud repositories, pull requests, pipelines, and code review tasks through natural language.74178 PyPI3MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to read Bitbucket Cloud pull requests and diffs through natural conversation.2MIT