Skip to main content
Glama

Bitbucket MCP

npm version License: MIT

A Model Context Protocol (MCP) server for Bitbucket Cloud. Enables AI assistants to manage repositories, pull requests, pipelines, and more.

Installation

No installation required. Run directly:

npx @icy-r/bitbucket-mcp

Option 2: Global Installation

npm install -g @icy-r/bitbucket-mcp
bitbucket-mcp

Option 3: Local Development

git clone https://github.com/icy-r/bitbucket-mcp.git
cd bitbucket-mcp
pnpm install
pnpm build
node dist/index.js

Related MCP server: Atlassian Bitbucket MCP Server

MCP Client Configuration

Cursor IDE

Add to your Cursor MCP settings (~/.cursor/mcp.json on Windows: %USERPROFILE%\.cursor\mcp.json):

Using npx (Recommended):

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": ["-y", "@icy-r/bitbucket-mcp"],
      "env": {
        "BITBUCKET_AUTH_METHOD": "api_token",
        "BITBUCKET_USER_EMAIL": "your.email@example.com",
        "BITBUCKET_API_TOKEN": "your_api_token"
      }
    }
  }
}

Using local build:

{
  "mcpServers": {
    "bitbucket": {
      "command": "node",
      "args": ["D:\\path\\to\\bitbucket-mcp\\dist\\index.js"],
      "env": {
        "BITBUCKET_AUTH_METHOD": "api_token",
        "BITBUCKET_USER_EMAIL": "your.email@example.com",
        "BITBUCKET_API_TOKEN": "your_api_token"
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": ["-y", "@icy-r/bitbucket-mcp"],
      "env": {
        "BITBUCKET_AUTH_METHOD": "api_token",
        "BITBUCKET_USER_EMAIL": "your.email@example.com",
        "BITBUCKET_API_TOKEN": "your_api_token"
      }
    }
  }
}

Other MCP Clients

The server follows the MCP standard and works with any compatible client. Use the configuration pattern above, adjusting paths as needed for your platform.

Authentication

  1. Go to Bitbucket API Tokens

  2. Create a new token with the required permissions

  3. Set the environment variables:

BITBUCKET_AUTH_METHOD=api_token
BITBUCKET_USER_EMAIL=your.email@example.com
BITBUCKET_API_TOKEN=your_api_token

App Password

  1. Go to Bitbucket App Passwords

  2. Create a new app password with required permissions

  3. Use basic auth method with your username and app password

Environment Variables

Variable

Description

Required

BITBUCKET_AUTH_METHOD

api_token, oauth, basic

Yes

BITBUCKET_USER_EMAIL

Your Atlassian email

For api_token

BITBUCKET_API_TOKEN

API token

For api_token

BITBUCKET_USERNAME

Bitbucket username

For basic auth

BITBUCKET_APP_PASSWORD

App password

For basic auth

BITBUCKET_WORKSPACE

Default workspace (used when tool call omits workspace)

No

BITBUCKET_OUTPUT_FORMAT

json, toon, compact

No

Available Tools

Tool

Actions

bitbucket_workspaces

list, get, list_projects, list_members

bitbucket_repositories

list, get, create, delete, fork, get_file, list_source

bitbucket_pull_requests

list, get, create, update, merge, approve, unapprove, decline, list_comments, add_comment, get_diff

bitbucket_branches

list_branches, get_branch, create_branch, delete_branch, list_tags, get_tag, create_tag

bitbucket_commits

list, get, get_diff, get_diffstat

bitbucket_pipelines

list, get, trigger, trigger_custom, stop, list_steps, get_step, get_logs, get_config, set_enabled, list_variables, get_variable, create_variable, update_variable, delete_variable

bitbucket_issues

list, get, create, update, delete, list_comments, add_comment, vote, unvote, watch, unwatch

bitbucket_webhooks

list, get, create, update, delete, list_workspace, get_workspace, create_workspace, update_workspace, delete_workspace

Output Formats

Control response verbosity with the format parameter:

Format

Description

Token Savings

json

Full JSON output

0%

toon

Compact TOON format

~50%

compact

Essential fields only

~76%

Example usage:

{ "action": "list", "workspace": "my-workspace", "format": "compact" }

Examples

List repositories in a workspace

{
  "action": "list",
  "workspace": "my-workspace"
}

Create a pull request

{
  "action": "create",
  "workspace": "my-workspace",
  "repo_slug": "my-repo",
  "title": "Feature: Add new functionality",
  "source_branch": "feature/new-feature",
  "destination_branch": "main"
}

Trigger a pipeline

{
  "action": "trigger",
  "workspace": "my-workspace",
  "repo_slug": "my-repo",
  "branch_name": "main"
}

Default workspace

Set BITBUCKET_WORKSPACE in your environment to skip the workspace parameter on every tool call:

{ "action": "list", "repo_slug": "my-repo" }

Development

# Clone the repository
git clone https://github.com/icy-r/bitbucket-mcp.git
cd bitbucket-mcp

# Install dependencies
pnpm install

# Build
pnpm build

# Run tests
pnpm test

# Run in development mode (watch)
pnpm dev

# Lint and format
pnpm lint
pnpm format

Requirements

  • Node.js >= 20.0.0

  • pnpm (for development)

License

MIT

Available Tools

8 tools
bitbucket_branchesB

Manage Bitbucket branches and tags. Actions:

  • list_branches: List all branches in a repository

  • get_branch: Get details of a specific branch

  • create_branch: Create a new branch from a commit/ref

  • delete_branch: Delete a branch

  • list_tags: List all tags in a repository

  • get_tag: Get details of a specific tag

  • create_tag: Create a new tag

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugYesRepository slug
branch_nameNoBranch name
tag_nameNoTag name
targetNoTarget commit hash or ref for create operations
messageNoTag message (for annotated tags)
qNoQuery string to filter results
sortNoSort field
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. It does not disclose destructive actions (e.g., delete_branch) as irreversible, nor does it mention required permissions, rate limits, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with a single introductory sentence and a bullet-like list of actions. It is well-structured and front-loaded, though the list could be slightly more compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all actions but lacks information on return values, pagination behavior, and parameter applicability per action. Since there is no output schema, the agent needs more context to understand responses.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so each parameter has a description in the schema. The tool description adds no further parameter-level meaning; it only lists action names. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool manages Bitbucket branches and tags, and lists all 7 specific actions. It distinguishes from sibling tools like bitbucket_commits which handle different resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists actions but provides no explicit guidance on when to use this tool vs siblings, nor does it explain prerequisites or context. Usage is implied by action names only.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_commitsB

Manage Bitbucket commits and diffs. Actions:

  • list: List commits in a repository

  • get: Get details of a specific commit

  • get_diff: Get diff between two refs (e.g., "branch1..branch2" or "commit1..commit2")

  • get_diffstat: Get diffstat (summary of changes) between two refs

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugYesRepository slug
commit_hashNoCommit hash (required for get action)
revisionNoBranch name or commit hash to list commits from
pathNoFilter commits by file path
includeNoInclude commits reachable from this ref
excludeNoExclude commits reachable from this ref
specNoDiff spec (e.g., "main..feature" or "abc123..def456")
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It only lists actions and gives an example for get_diff, but fails to disclose whether the tool is read-only, authentication requirements, rate limits, or error handling. The word 'Manage' suggests mutation capability but no action modifies data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise: one introductory sentence and a bullet list of four actions. Each action gets a clear one-line description. No wasted words or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having 12 parameters and no output schema, the description does not explain return values, pagination behavior, error scenarios, or output format specifics. The 'format' parameter is listed but not explained in the description. Critical context for a complex tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds minimal value by mentioning spec format in the get_diff example, which is already in the schema. No additional parameter guidance is provided beyond what the schema offers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states managing Bitbucket commits and diffs with four specific actions (list, get, get_diff, get_diffstat). It differentiates from sibling tools like bitbucket_branches by focusing on commits.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for commits tasks but provides no explicit when-to-use or when-not instructions compared to siblings. The get_diff example gives a hint for usage, but no alternatives or exclusions are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_issuesB

Manage Bitbucket issue tracking. Actions:

  • list: List issues in a repository

  • get: Get details of a specific issue

  • create: Create a new issue

  • update: Update an existing issue

  • delete: Delete an issue

  • list_comments: List comments on an issue

  • add_comment: Add a comment to an issue

  • vote: Vote for an issue

  • unvote: Remove vote from an issue

  • watch: Watch an issue for notifications

  • unwatch: Stop watching an issue

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugYesRepository slug
issue_idNoIssue ID (required for most actions except list/create)
titleNoIssue title
contentNoIssue description or comment content
stateNoIssue state
priorityNoIssue priority
kindNoIssue type
assigneeNoAssignee account UUID (e.g., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}")
qNoQuery string to filter issues
sortNoSort field
reporterNoFilter by reporter
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries the burden. It lists actions but does not disclose behavioral traits like authentication needs, rate limits, side effects (e.g., deletion permanence), or output structure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is extremely concise with a clear front-loaded purpose statement and a bullet list of actions. No redundant or irrelevant content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite 100% schema coverage, the description fails to explain return values, error handling, or how parameters map to specific actions. For a tool with 16 parameters and no output schema, this is insufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline 3. The description adds no extra meaning beyond the schema; it merely restates action names without detailing parameter interactions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it manages Bitbucket issue tracking and enumerates all actions (list, get, create, etc.). It differentiates from sibling tools which focus on branches, commits, etc., by targeting issues specifically.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool vs alternatives. The description implies it's for issue management but lacks context like prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_pipelinesA

Manage Bitbucket Pipelines CI/CD. Actions:

  • list: List pipelines in a repository

  • get: Get details of a specific pipeline

  • trigger: Trigger a new pipeline run on a branch

  • trigger_custom: Trigger a custom pipeline with a specific pattern

  • stop: Stop a running pipeline

  • list_steps: List steps of a pipeline

  • get_step: Get details of a specific step

  • get_logs: Get logs for a pipeline step

  • get_config: Get pipeline configuration (enabled status)

  • set_enabled: Enable or disable pipelines for a repository

  • list_variables: List pipeline variables

  • get_variable: Get a specific pipeline variable

  • create_variable: Create a pipeline variable

  • update_variable: Update a pipeline variable

  • delete_variable: Delete a pipeline variable

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugYesRepository slug
pipeline_uuidNoPipeline UUID
step_uuidNoStep UUID
branch_nameNoBranch name to trigger pipeline on (required for trigger/trigger_custom)
patternNoCustom pipeline pattern (for trigger_custom)
variablesNoPipeline variables for trigger
enabledNoEnable or disable pipelines
variable_uuidNoVariable UUID
keyNoVariable key
valueNoVariable value
securedNoWhether variable is secured
sortNoSort field
target_branchNoFilter by target branch
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits. It lists actions and some constraints (e.g., branch_name required for trigger/trigger_custom), but lacks details on side effects, auth needs, rate limits, or idempotency for actions like trigger, stop, and set_enabled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is somewhat lengthy due to listing 15 actions, but each line is clear and front-loaded. It could be more concise by grouping similar actions, but overall it is well-structured and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (18 parameters, many actions), the description covers the actions list but lacks explanation of return values (no output schema), error scenarios, or usage examples. It is adequate but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds a brief summary of actions but does not elaborate on parameter meanings beyond what the schema already provides (e.g., variables structure, format options).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description lists 15 specific sub-actions (list, get, trigger, etc.), each with a clear verb+resource pattern. It clearly distinguishes from sibling tools by focusing exclusively on Bitbucket Pipelines CI/CD management.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly tells when to use this tool (for managing pipelines) but provides no explicit guidance on when to choose one action over another or when not to use this tool compared to alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_pull_requestsB

Manage Bitbucket pull requests. Actions:

  • list: List pull requests in a repository

  • get: Get pull request details

  • create: Create a new pull request

  • update: Update a pull request

  • merge: Merge a pull request

  • approve: Approve a pull request

  • unapprove: Remove approval from a pull request

  • decline: Decline a pull request

  • list_comments: List comments on a pull request

  • add_comment: Add a comment to a pull request

  • get_diff: Get the diff of a pull request

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugYesRepository slug
pr_idNoPull request ID (required for most actions except list/create)
stateNoFilter by state
qNoQuery string to filter PRs
sortNoSort field (e.g., "-created_on")
titleNoPull request title
descriptionNoPull request description
source_branchNoSource branch name
destination_branchNoDestination branch (default: main branch)
close_source_branchNoClose source branch after merge
reviewersNoList of reviewer UUIDs
merge_strategyNoMerge strategy
messageNoMerge commit message
contentNoComment content (markdown supported)
inline_pathNoFile path for inline comment (requires inline_line)
inline_lineNoLine number for inline comment (requires inline_path)
parent_idNoParent comment ID for replies
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description fails to disclose behavioral traits such as side effects (e.g., merge finalizes the PR), required permissions, rate limits, or error handling. The action names imply behavior but lack explicit context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two sentences—the first stating the purpose, the second a bullet list of actions. No redundant information, effectively front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite high complexity (22 parameters, 11 actions), the description lacks behavioral details, usage context, and outcome explanations. The output schema is absent, and the description does not compensate, leaving significant gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters. The description adds no extra meaning beyond listing actions, achieving the baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Manage Bitbucket pull requests' and enumerates 11 specific actions (list, get, create, update, merge, approve, etc.), distinguishing the tool from sibling tools that cover branches, commits, issues, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists actions but provides no guidance on when to use this tool versus alternatives (e.g., bitbucket_branches for branch management) or when to use specific actions like create vs update.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_repositoriesC

Manage Bitbucket repositories. Actions:

  • list: List repositories in a workspace

  • get: Get repository details

  • create: Create a new repository

  • delete: Delete a repository

  • fork: Fork a repository

  • get_file: Get file content from a repository

  • list_source: List files/directories in a repository path

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugNoRepository slug (required for most actions except list)
qNoQuery string to filter repositories
sortNoSort field (e.g., "-updated_on" for newest first)
roleNoFilter by role
nameNoRepository display name (for create)
descriptionNoRepository description (for create)
is_privateNoWhether repository is private (for create)
project_keyNoProject key to associate with (for create)
new_nameNoName for the forked repository
target_workspaceNoTarget workspace for the fork
pathNoFile or directory path in the repository
refNoGit ref (branch, tag, or commit hash)HEAD
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility. It does not disclose behavioral traits such as whether actions are read-only or destructive (e.g., delete is destructive but not flagged). No information on authentication requirements, rate limits, side effects, or response behavior is given.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with a bullet list of actions. It is front-loaded with 'Manage Bitbucket repositories' and then enumerates actions efficiently. No redundant information is present, but some structure could be improved by grouping actions or adding brief parameter context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (17 parameters, 7 actions, no output schema), the description is incomplete. It does not explain return values, pagination handling, or how the 'action' parameter selects behavior. Missing context on parameter dependencies and result formats leaves agents underinformed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. However, the tool description adds no meaning beyond the schema; it only lists actions without mapping which parameters apply to each action. For example, 'name' is for create but not indicated. This omission reduces the value, making it harder for agents to understand parameter usage context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it manages Bitbucket repositories and lists specific actions like list, get, create, delete. This provides a clear verb+resource mapping for each action. However, it does not explicitly differentiate from sibling tools, though the resource type (repositories) is distinct from branches, commits, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus sibling tools (e.g., bitbucket_branches, bitbucket_issues). There are no conditions, prerequisites, or alternatives mentioned. The list of actions implies usage but lacks explicit when-to-use context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_webhooksB

Manage Bitbucket webhooks for repositories and workspaces. Actions:

  • list: List webhooks for a repository

  • get: Get details of a specific webhook

  • create: Create a new webhook

  • update: Update an existing webhook

  • delete: Delete a webhook

  • list_workspace: List webhooks for a workspace

  • get_workspace: Get a workspace webhook

  • create_workspace: Create a workspace webhook

  • update_workspace: Update a workspace webhook

  • delete_workspace: Delete a workspace webhook

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted)
repo_slugNoRepository slug (required for repo-level webhooks)
webhook_uuidNoWebhook UUID (required for get/update/delete)
urlNoWebhook URL
descriptionNoWebhook description
activeNoWhether webhook is active
eventsNoList of events to trigger webhook (e.g., "repo:push", "pullrequest:created")
secretNoWebhook secret for signature verification
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description should disclose behavioral traits like authentication requirements, side effects of create/update/delete, or pagination behavior. It only lists actions and parameters, failing to add critical behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is reasonably concise and front-loaded with the overall purpose. However, the bullet list could be more compact, and it wastes some space repeating actions that are already defined in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (12 parameters, 10 actions) and lack of output schema, the description should provide return value expectations or usage patterns for each action. It only lists actions, leaving significant gaps for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

While schema coverage is 100%, the description merely duplicates the action enum list without adding any insight into parameter usage, formats, or relationships beyond what the schema provides. It adds no additional value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Manage Bitbucket webhooks for repositories and workspaces' and enumerates specific actions. This verb+resource combination distinguishes it from sibling tools which focus on other Bitbucket resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage via action listing but provides no explicit guidance on when to use this tool versus alternatives or how to choose between the many actions. No prerequisites or exclusions are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

bitbucket_workspacesB

Manage Bitbucket workspaces. Actions:

  • list: List all accessible workspaces

  • get: Get details of a specific workspace

  • list_projects: List projects in a workspace

  • list_members: List members of a workspace

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
workspaceNoWorkspace slug (uses BITBUCKET_WORKSPACE env if omitted; required for get, list_projects, list_members)
pageNoPage number for pagination
pagelenNoResults per page (default: 25, max 100)
formatNoOutput format: json (full), toon (compact tokens), compact (essential fields only)

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of disclosure. It does not mention behavioral traits such as required permissions, side effects (e.g., mutability), rate limits, or behavior when the workspace parameter is omitted beyond the schema note.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and uses a bullet-style list of actions, making it scannable. Every sentence is relevant, though it could be slightly tighter without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description does not explain what each action returns (e.g., list returns workspace list, get returns workspace details). The absence of return information and examples makes it incomplete for an agent to understand the tool's full behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds no meaning beyond the schema descriptions; the workspace parameter's fallback to an environment variable is already in the schema. No additional semantic value is provided.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool manages Bitbucket workspaces and enumerates four specific actions (list, get, list_projects, list_members), distinguishing it from sibling tools focused on branches, commits, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists actions but provides no guidance on when to use this tool versus alternatives like bitbucket_repositories or bitbucket_pull_requests, and no exclusions or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 8 tool updates
    • Changedbitbucket_branches3 fields changed
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace",
        -  "repo_slug"
        -]New value: +[
        +  "action",
        +  "repo_slug"
        +]
    • Changedbitbucket_commits3 fields changed
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace",
        -  "repo_slug"
        -]New value: +[
        +  "action",
        +  "repo_slug"
        +]
    • Changedbitbucket_issues4 fields changed
      • changedInput schema / properties / assignee / description
        Previous value: -"Assignee username"New value: +"Assignee account UUID (e.g., \"{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\")"
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace",
        -  "repo_slug"
        -]New value: +[
        +  "action",
        +  "repo_slug"
        +]
    • Changedbitbucket_pipelines5 fields changed
      • removedInput schema / properties / branch
        Removed value: -{
        -  "description": "Branch name to trigger pipeline on",
        -  "type": "string"
        -}
      • addedInput schema / properties / branch_name
        Added value: +{
        +  "description": "Branch name to trigger pipeline on (required for trigger/trigger_custom)",
        +  "type": "string"
        +}
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace",
        -  "repo_slug"
        -]New value: +[
        +  "action",
        +  "repo_slug"
        +]
    • Changedbitbucket_pull_requests5 fields changed
      • changedInput schema / properties / inline_line / description
        Previous value: -"Line number for inline comment"New value: +"Line number for inline comment (requires inline_path)"
      • changedInput schema / properties / inline_path / description
        Previous value: -"File path for inline comment"New value: +"File path for inline comment (requires inline_line)"
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace",
        -  "repo_slug"
        -]New value: +[
        +  "action",
        +  "repo_slug"
        +]
    • Changedbitbucket_repositories3 fields changed
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace"
        -]New value: +[
        +  "action"
        +]
    • Changedbitbucket_webhooks3 fields changed
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted)"
      • changedInput schema / required
        Previous value: -[
        -  "action",
        -  "workspace"
        -]New value: +[
        +  "action"
        +]
    • Changedbitbucket_workspaces2 fields changed
      • changedInput schema / properties / pagelen / description
        Previous value: -"Results per page (max 100)"New value: +"Results per page (default: 25, max 100)"
      • changedInput schema / properties / workspace / description
        Previous value: -"Workspace slug (required for get, list_projects, list_members)"New value: +"Workspace slug (uses BITBUCKET_WORKSPACE env if omitted; required for get, list_projects, list_members)"
  2. 8 tool updatesv1.0.1
    • First observedbitbucket_branches
    • First observedbitbucket_commits
    • First observedbitbucket_issues
    • First observedbitbucket_pipelines
    • First observedbitbucket_pull_requests
    • First observedbitbucket_repositories
    • First observedbitbucket_webhooks
    • First observedbitbucket_workspaces

TDQS

A3.7/5.0
Disambiguation5/5

Each tool covers a distinct Bitbucket domain (branches, commits, issues, pipelines, pull requests, repositories, webhooks, workspaces) with no overlap in primary functionality. An agent can easily select the correct tool for a task.

Naming Consistency5/5

All tools follow a consistent 'bitbucket_<domain>' pattern, and within each tool, action names are short, clear verbs. The naming scheme is predictable and uniform across the entire set.

Tool Count5/5

With 8 tools covering the major Bitbucket features, the count is well-scoped for the platform's complexity. Each tool represents a natural grouping of related actions, avoiding unnecessary fragmentation or lumping.

Completeness5/5

The tool surface covers all core Bitbucket operations: source control (branches, commits), collaboration (PRs, issues), CI/CD (pipelines), repository management, webhooks, and workspaces. Critical workflows like create/update/delete are present where applicable.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables LLMs to interact with Bitbucket repositories to manage pull requests, branches, and commits through the Model Context Protocol. It supports repository operations such as searching code, accessing file contents, and comparing branches using natural language.
    16
    3,030
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables interaction with Bitbucket repositories through the Model Context Protocol, supporting code search, repository management, branch creation, pull requests, and more.
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icy-r/bitbucket-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server