$ timeahead.in
/ servers/npm/bitbucket-mcp
npm

bitbucket-mcp

Model Context Protocol (MCP) server for Bitbucket Cloud and Server API integration

146 stars4k/wkupdated 31d agogithub ↗
80good
▣ Overview
CodeQLGitHub RepositoryLicense: MITnpm version

What it does

An MCP server that integrates Bitbucket Cloud and Server APIs with Claude and other AI assistants. It exposes tools to list and retrieve repositories, view pull request information, and query repository metadata. The server is designed with safety as a core principle—no destructive operations are supported, ensuring interactions remain read-only or read-write safe (such as posting comments) without risk of data loss.

Who it's for

Backend engineers and development teams using Bitbucket who want to integrate Bitbucket context into their AI-assisted workflows. This includes developers doing code review with AI assistance, DevOps engineers automating repository lookups, and teams that need to ground AI analysis in live Bitbucket data.

Common use cases

  • Fetch pull request details and metadata from Claude Code while reviewing code
  • Query repository information to provide AI assistants with accurate codebase context
  • Retrieve existing comments and discussions on pull requests for informed AI responses
  • Automate repository metadata lookups for CI/CD pipelines or security workflows
  • Access Bitbucket data to ground threat analysis or compliance checks

Setup pitfalls

  • Use a Bitbucket App Password (not your regular password); create one in Personal Settings > App Passwords with at least Repositories Read and Pull Requests Read permissions
  • Provide either BITBUCKET_TOKEN or the pair BITBUCKET_USERNAME and BITBUCKET_PASSWORD (username is typically your email address)
  • BITBUCKET_URL format matters: prefer https://api.bitbucket.org/2.0 over the legacy web format (workspace auto-extracts from the URL in legacy mode)
  • A secret was detected during scanning; store all credentials in protected environment variables or sandboxed execution contexts to prevent accidental exposure
1 credential detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
80
28.0
Freshness
25%
100
25.0
Adoption
20%
65
13.0
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
80.0
⚿ Capabilities & Risk Explainer
fs readfs writenetworksecrets
◆ Risk level: medium
fs read + fs write + network + secrets — requires access to credentials or environment secrets.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": [
        "-y",
        "bitbucket-mcp"
      ]
    }
  }
}
📈 Score historylast 33 snapshots
4/30/20266/11/2026 · 33 snapshots
⚙ Maintenance health
28/ 100 · is this project alive?
contributors (1y)13
top contributor share45%
releases (1y)0
ci✗ none
⛁ Raw data
weekly downloads4k
github stars146
forks95
open issues35
license✓ present
readme length21368 chars
last publish0d ago
last commit31d ago
last updated3d ago
install verified✓ pass · 29d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points