
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that exposes Bitbucket API operations, such as repositories, pull requests, pipelines, and commits, to MCP-compatible clients.
Bitbucket MCP Server is cataloged as an MCP server attributed to javimaligno. An MCP server that exposes Bitbucket API operations, such as repositories, pull requests, pipelines, and commits, to MCP-compatible clients. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Bitbucket MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. It uses basic auth with an email and Atlassian API token, or bearer auth with a workspace, project, or repository access token, auto-detecting the mode.
Yes. When both the OAuth issuer and audience are set, the server gates /mcp on bearer tokens issued by an external authorization server and verifies each request's JWT.
README.md · 796d43c5143f · Fetched 2026-11-13 10:52:46 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
MCP server for Bitbucket API operations. Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client.
This repository contains both TypeScript and Python implementations:
| Version | Directory | Status | Installation |
|---|---|---|---|
| TypeScript | /typescript | ✅ Recommended (Smithery) | npm install -g mcp-server-bitbucket |
| Python | /python | ✅ Stable | pipx install mcp-server-bitbucket |
Note: The TypeScript version is used for Smithery deployments. Both versions provide identical functionality.
Use patched Node.js 22.23.4 or 24.22.1 for TypeScript, or Python 3.11+ for Python. See the security update for HTTP request bounds and reproducible image builds.
# Install globally
npm install -g mcp-server-bitbucket
# Or run directly with npx
npx mcp-server-bitbucket
# Install with pipx
pipx install mcp-server-bitbucket
# Configure Claude Code
claude mcp add bitbucket -s user \
-e BITBUCKET_WORKSPACE=your-workspace \
-e BITBUCKET_EMAIL=your-email@example.com \
-e BITBUCKET_API_TOKEN=your-api-token \
-- mcp-server-bitbucket
Full Installation Guide - Includes API token creation, permissions setup, and troubleshooting.
If you'd rather not run the server yourself, a hosted deployment is available on Fronteir AI.
| Variable | Required | Description |
|---|---|---|
BITBUCKET_WORKSPACE | ✅ | Bitbucket workspace slug |
BITBUCKET_EMAIL | ✅ (basic auth) | Account email for Basic Auth |
BITBUCKET_API_TOKEN | ✅ | Atlassian API token (Basic auth) |
BITBUCKET_OAUTH_TOKEN | Access token sent as Authorization: Bearer | |
BITBUCKET_AUTH_TYPE | Force auth mode: basic or bearer (auto-detected) | |
API_TIMEOUT | Request timeout in seconds (default: 30) | |
MAX_RETRIES | Max retry attempts for rate limiting (default: 3) |
Bitbucket Cloud has two credential families, and they do not share an auth scheme:
| Credential | Header | Configuration |
|---|---|---|
Atlassian API token (ATATT...), tied to a personal account | Authorization: Basic base64(email:token) | BITBUCKET_EMAIL + BITBUCKET_API_TOKEN |
Workspace / project / repository access token (ATCTT...), owned by the workspace | Authorization: Bearer <token> | BITBUCKET_OAUTH_TOKEN |
Access tokens return 401 with Basic auth, so the server picks the mode automatically:
BITBUCKET_AUTH_TYPE, when set, always wins.bearer is used when BITBUCKET_OAUTH_TOKEN is set, or when no BITBUCKET_EMAIL is configured.basic is used (the default for personal API tokens).Bearer example — a company-owned workspace access token with no personal account involved:
claude mcp add bitbucket -s user \
-e BITBUCKET_WORKSPACE=your-workspace \
-e BITBUCKET_OAUTH_TOKEN=your-workspace-access-token \
-- npx mcp-server-bitbucket
The stdio server runs on your machine with your own credential, so it needs no
protection. A remote deployment is different: it holds one shared credential
and serves whoever reaches it, so /mcp can be gated on a bearer token issued
by an external authorization server (Microsoft Entra ID, Okta, Auth0…).
| Variable | Description |
|---|---|
MCP_OAUTH_ISSUER | Token issuer, e.g. https://login.microsoftonline.com/<tenant>/v2.0 |
MCP_OAUTH_AUDIENCE | Expected aud claim, e.g. api://bitbucket-mcp |
MCP_OAUTH_JWKS_URI | Signing keys (derived from the issuer when omitted) |
MCP_OAUTH_REQUIRED_SCOPE | Scope the token must carry, e.g. mcp.access |
MCP_PUBLIC_URL | Public URL of this server, advertised as the resource |
Protection is off unless both MCP_OAUTH_ISSUER and MCP_OAUTH_AUDIENCE are
set, so existing deployments are unaffected. With them set, the server:
/mcp requests with 401 and a WWW-Authenticate
header pointing at /.well-known/oauth-protected-resource, which is what makes
an MCP client start the OAuth flow;iss, aud and expiry — and returns 403 insufficient_scope when a valid
token lacks the required scope;/health open, so platform probes keep working.Note what this does and does not do: it controls who may use the server. Calls still reach Bitbucket under the server's own credential, so it does not attribute actions to individual users.
# TypeScript version
claude mcp add bitbucket -s user \
-e BITBUCKET_WORKSPACE=your-workspace \
-e BITBUCKET_EMAIL=your-email@example.com \
-e BITBUCKET_API_TOKEN=your-api-token \
-- npx mcp-server-bitbucket
# Python version
claude mcp add bitbucket -s user \
-e BITBUCKET_WORKSPACE=your-workspace \
-e BITBUCKET_EMAIL=your-email@example.com \
-e BITBUCKET_API_TOKEN=your-api-token \
-- mcp-server-bitbucket
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["mcp-server-bitbucket"],
"env": {
"BITBUCKET_WORKSPACE": "your-workspace",
"BITBUCKET_EMAIL": "your-email@example.com",
"BITBUCKET_API_TOKEN": "your-api-token"
}
}
}
}
| Tool | Description |
|---|---|
list_repositories | List and search repositories |
get_repository | Get repository details |
create_repository | Create a new repository |
delete_repository | Delete a repository |
update_repository | Update repo settings |
| Tool | Description |
|---|---|
list_pull_requests | List PRs |
get_pull_request | Get PR details |
create_pull_request | Create a new PR |
merge_pull_request | Merge a PR |
approve_pr | Approve a PR |
unapprove_pr | Remove approval |
request_changes_pr | Request changes |
decline_pr | Decline a PR |
list_pr_comments | List comments |
add_pr_comment | Add comment |
get_pr_diff | Get the diff |
| Tool | Description |
|---|---|
list_pipelines | List recent runs |
get_pipeline | Get status |
get_pipeline_logs | View logs |
trigger_pipeline | Trigger a run (supports custom pipelines and commit triggers) |
stop_pipeline | Stop pipeline |
list_pipeline_variables | List variables |
get_pipeline_variable | Get variable |
create_pipeline_variable | Create variable |
update_pipeline_variable | Update variable |
delete_pipeline_variable | Delete variable |
| Parameter | Type | Description |
|---|---|---|
repo_slug | string | Repository slug (required) |
branch | string | Branch to run on (default: main). Mutually exclusive with commit |
commit | string | Commit hash to run on. Mutually exclusive with branch |
custom_pipeline | string | Name from custom: section in bitbucket-pipelines.yml |
variables | array | Variables as [{key, value, secured?}] |
Examples:
# Default pipeline on main
trigger_pipeline(repo_slug="my-repo")
# Custom pipeline
trigger_pipeline(repo_slug="my-repo", custom_pipeline="deploy-staging")
# Custom pipeline on specific commit with variables
trigger_pipeline(
repo_slug="my-repo",
commit="abc123def",
custom_pipeline="deploy-prod",
variables=[
{"key": "ENV", "value": "production"},
{"key": "SECRET", "value": "xxx", "secured": True}
]
)
See history queries, pagination and retry behavior.
| Tool | Description |
|---|---|
list_branches | List branches |
get_branch | Get branch details |
list_commits | Paginated history with revision include/exclude and path filters |
get_commit | Get commit details |
compare_commits | Paginated changed-file statistics from base to head |
get_commit_diff | Raw diff, optionally by file, with explicit chunk continuation |
get_merge_base | Best common ancestor of two revisions |
get_file_history | Paginated file history with paths reported across renames |
get_commit_statuses | Get build statuses |
create_commit_status | Report CI status |
list_tags | Paginated tags with filtering and configurable sorting |
get_tag | Resolve an exact tag to its full target commit hash |
create_tag | Create a tag |
delete_tag | Delete a tag |
list_environments, get_environment, list_deployment_historylist_webhooks, create_webhook, get_webhook, delete_webhooklist_branch_restrictions, create_branch_restriction, delete_branch_restrictionget_file_content, list_directorylist_projects, get_projectReusable workflow templates:
| Prompt | Description |
|---|---|
code_review | Comprehensive PR code review |
release_notes | Generate changelog between versions |
pipeline_debug | Debug failed CI/CD pipelines |
repo_summary | Complete repository status overview |
Browsable workspace data:
| Resource URI | Description |
|---|---|
bitbucket://repositories | List all repos |
bitbucket://repositories/{repo} | Repository details |
bitbucket://repositories/{repo}/branches | Branch list |
bitbucket://repositories/{repo}/pull-requests | Open PRs |
bitbucket://projects | List all projects |
cd typescript
npm install
npm run build
npm run dev # Watch mode
cd python
uv sync
uv run python -m src.server
If your team is running this against a company Bitbucket, I'd like to know. It decides what gets built next, and issues that come from a real deployment get looked at first.
Two kinds of work I take on around this:
Open an issue, or write to javier@javieraguilar.ai.
Built and maintained by Javier Aguilar — AI engineer working on agent systems and MCP integrations. There's a write-up of how and why this server was built here.
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Bitbucket MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-bitbucket)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.