Bitbucket

61 tools. 28 can modify or destroy data without limits.

7 destructive tools with no built-in limits. Policy required.

Last updated:

28 can modify or destroy data
33 read-only
61 tools total

Community server · catalogue entry verified 01/07/2026

How to control Bitbucket ↓

What Bitbucket exposes to your agents

Read (33) Write / Execute (20) Destructive / Financial (7)
Critical Risk

The most dangerous Bitbucket tools

28 of Bitbucket's 61 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

How to control Bitbucket

PolicyLayer is an MCP gateway — it sits between your AI agents and Bitbucket, and nothing reaches the server without passing your rules. These are the rules we recommend:

Deny destructive operations
{
  "delete_branch_restriction": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
{
  "add_pr_comment": {
    "limits": [
      {
        "counter": "add_pr_comment_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "compare_commits": {
    "limits": [
      {
        "counter": "compare_commits_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

Controls API costs and prevents retry loops from exhausting upstream rate limits.

  1. Create a free account and register Bitbucket — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
ENFORCE POLICY ON BITBUCKET →

Instant setup, no code required.

All 61 Bitbucket tools

READ 33 tools
Read compare_commits Compare two commits or branches and see files changed. Read get_branch Get information about a specific branch. Read get_commit Get detailed information about a specific commit. Read get_commit_statuses Get build/CI statuses for a commit. Read get_environment Get details about a specific deployment environment. Read get_file_content Get the content of a file from a repository. Read file contents without cloning. Read get_group_permission Get a specific group Read get_pipeline Get status of a pipeline run. Read get_pipeline_config Get pipeline configuration for a repository (check if pipelines are enabled). Read get_pipeline_logs Get logs for a pipeline run. If step_uuid is not provided, returns list of steps. Read get_pipeline_variable Get details about a specific pipeline variable. Read get_pr_diff Get the diff of a pull request. Read get_project Get information about a specific project. Read get_pull_request Get information about a pull request. Read get_repository Get information about a Bitbucket repository. Read get_user_permission Get a specific user Read get_webhook Get details about a specific webhook. Read list_branch_restrictions List branch restrictions (protection rules) in a repository. Read list_branches List branches in a repository. Read list_commits List commits in a repository. Read list_deployment_history Get deployment history for a specific environment. Read list_directory List contents of a directory in a repository. Browse repository structure without cloning. Read list_environments List deployment environments for a repository. Read list_group_permissions List group permissions for a repository. Read list_pipeline_variables List pipeline variables for a repository. Read list_pipelines List recent pipeline runs for a repository. Read list_pr_comments List comments on a pull request. Read list_projects List projects in the workspace. Read list_pull_requests List pull requests in a repository. Read list_repositories List and search repositories in the workspace. Read list_tags List tags in a repository. Read list_user_permissions List user permissions for a repository. Read list_webhooks List webhooks configured for a repository.

Related servers

Other MCP servers with similar tools — same risk classification, starter policies for each.

Questions about Bitbucket

Can an AI agent delete data through the Bitbucket MCP server? +

Yes. The Bitbucket server exposes 7 destructive tools including delete_branch_restriction, delete_group_permission, delete_pipeline_variable. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Bitbucket? +

The Bitbucket server has 18 write tools including add_pr_comment, approve_pr, create_branch_restriction. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Bitbucket.

How many tools does the Bitbucket MCP server expose? +

61 tools across 4 categories: Destructive, Execute, Read, Write. 33 are read-only. 28 can modify, create, or delete data.

How do I enforce a policy on Bitbucket? +

Register the Bitbucket MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Bitbucket tool call.

Deterministic rules across all 61 Bitbucket tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Instant setup, no code required.

61 Bitbucket tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.