Skip to main content
Glama
Bitbucket MCP Server

Bitbucket MCP Server

by Acendas

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

pip install bitbucket-mcp

Or run directly with uvx (no install needed):

uvx bitbucket-mcp

Getting an API Token

  1. Go to Atlassian API Tokens

  2. Click Create API token

  3. Give it a name (e.g., "Bitbucket MCP")

  4. Copy the generated token

Configuration

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 default

Claude 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

setup_bitbucket

Configure Bitbucket credentials

get_config_status

Check configuration status

User & Account (3 tools)

Tool

Description

get_current_user

Get authenticated user's profile

get_user_profile

Get a user's public profile

get_user_permissions

Get current user's repository permissions

Repository Management (7 tools)

Tool

Description

list_repositories

List repositories in a workspace

get_repository

Get detailed repository info

create_repository

Create a new repository

update_repository

Update repository settings

delete_repository

Delete a repository

fork_repository

Fork a repository

list_repository_forks

List forks of a repository

Branch & Tag Management (7 tools)

Tool

Description

list_branches

List branches in a repository

create_branch

Create a new branch

delete_branch

Delete a branch

list_tags

List tags in a repository

create_tag

Create a new tag

delete_tag

Delete a tag

get_branching_model

Get branching model configuration

Commits & Build Status (8 tools)

Tool

Description

get_file_contents

Get file contents from a branch/commit

list_commits

List commits in a repository

get_commit

Get details of a specific commit

get_commit_diff

Get diff for a commit or range

get_commit_diffstat

Get diffstat for a commit or range

list_commit_statuses

List build statuses for a commit

create_build_status

Create a build status for a commit

list_commit_comments

List comments on a commit

Pull Requests (20 tools)

Tool

Description

create_pull_request

Create a new PR with default reviewers

list_pull_requests

List PRs for a repository

get_pull_request

Get PR details

update_pull_request

Update/edit a PR

approve_pull_request

Approve a PR

unapprove_pull_request

Remove approval from a PR

request_changes_pull_request

Request changes on a PR

add_pull_request_comment

Add a comment to a PR

get_pull_request_comments

Get comments from a PR

get_pull_request_diffstat

Get summary of files changed

get_pull_request_diff

Get code diff for a PR

merge_pull_request

Merge a PR

decline_pull_request

Decline/close a PR

reply_to_comment

Reply to a specific comment

add_inline_comment

Add inline comment on code

delete_comment

Delete a comment

get_pull_request_activity

Get PR activity timeline

get_pull_request_commits

List commits in a PR

add_reviewer

Add a reviewer to a PR

remove_reviewer

Remove a reviewer from a PR

get_pull_request_merge_status

Check if PR can be merged

Pipelines / CI/CD (8 tools)

Tool

Description

list_pipelines

List pipelines for a repository

get_pipeline

Get pipeline details

trigger_pipeline

Trigger a new pipeline run

stop_pipeline

Stop a running pipeline

list_pipeline_steps

List steps in a pipeline

get_pipeline_step_log

Get log output for a step

list_pipeline_variables

List pipeline variables

create_pipeline_variable

Create a pipeline variable

Workspace & Projects (10 tools)

Tool

Description

list_workspace_members

List workspace members

get_default_reviewers

Get default reviewers for a repo

list_workspaces

List all accessible workspaces

get_workspace_details

Get workspace details

list_workspace_permissions

List workspace permissions

list_projects

List projects in a workspace

get_project

Get project details

create_project

Create a new project

search_code

Search code across repositories

Issues (6 tools)

Tool

Description

list_issues

List issues in a repository

create_issue

Create a new issue

get_issue

Get issue details

update_issue

Update an issue

list_issue_comments

List comments on an issue

add_issue_comment

Add a comment to an issue

Webhooks (4 tools)

Tool

Description

list_webhooks

List repository webhooks

create_webhook

Create a repository webhook

delete_webhook

Delete a repository webhook

list_workspace_webhooks

List workspace webhooks

Snippets (4 tools)

Tool

Description

list_snippets

List snippets in a workspace

create_snippet

Create a new snippet

get_snippet

Get snippet details

delete_snippet

Delete a snippet

Example Usage with Claude

  1. First time setup:

    "Set up Bitbucket with my workspace 'mycompany', username 'me@example.com', and API token 'abc123'"

  2. List repositories:

    "Show me all repositories in my workspace"

  3. Create a PR:

    "Create a PR in my-repo from feature/login to main titled 'Add user login'"

  4. Review a PR:

    "Approve PR #42 in my-repo"

  5. Check merge status:

    "Can PR #42 be merged? Are there any conflicts?"

  6. Merge a PR:

    "Squash merge PR #42 and delete the source branch"

  7. Pipeline operations:

    "Trigger a pipeline on the main branch for my-repo" "Show me the logs for the last pipeline run"

  8. Branch management:

    "Create a branch 'feature/new-api' from main in my-repo" "List all tags in my-repo"

  9. Issue tracking:

    "Create a bug issue titled 'Login fails on mobile' in my-repo" "Show me all open issues in my-repo"

  10. Code search:

    "Search for 'TODO' across all repositories in my workspace"

Security

  • Credentials are stored in ~/.bitbucket-mcp/config.json with 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 tools
add_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

    A3.5/5.0

    Scored across 79 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness5/5

    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

    Related MCP Servers