Bitbucket MCP
概要
作者による説明(英語の原文)
Bitbucket Cloud MCP in Go: complete API auto-generated from spec, customizable prompts.
PopNx MCPの3つの柱
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
- 利用者の声iレビューはまだありませんレビューは今後のステップで、アカウント機能と一緒に始まります
- 私たちの基本チェックi1項目中1項目に合格公開情報からチェック。コードはまだスキャンしていません
- 利用状況iとても新しい★ –
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: 検索・AIの記憶
- 入力が必要なもの:BITBUCKET_TOKEN
インストール
使っているAIアプリを選んで、設定をコピーしてください。
インストールの前に
- 基本チェック:1項目中1項目に合格
- あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
- 自分で入力するもの:
BITBUCKET_USERNAME,BITBUCKET_TOKEN
「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
- DockerDockerのインストール
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"bitbucket": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_USERNAME",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_USERNAME": "your-value",
"BITBUCKET_TOKEN": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add bitbucket --env BITBUCKET_USERNAME=your-value --env BITBUCKET_TOKEN=your-value -- docker run -i --rm -e BITBUCKET_USERNAME -e BITBUCKET_TOKEN ghcr.io/fabianschurig/bitbucket-mcp:0.20.2動かす前に、空欄の値を入力してください。
または、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"bitbucket": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_USERNAME",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_USERNAME": "your-value",
"BITBUCKET_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"bitbucket": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BITBUCKET_USERNAME",
"-e",
"BITBUCKET_TOKEN",
"ghcr.io/fabianschurig/bitbucket-mcp:0.20.2"
],
"env": {
"BITBUCKET_USERNAME": "your-value",
"BITBUCKET_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
自分で入力する値
BITBUCKET_USERNAMEenvYour Bitbucket username/ email (required for Basic auth, omit for workspace/repo access tokens)- Your Bitbucket API token or OAuth2 access token
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント FabianSchurig で確認済みです
- … 未チェック
今もメンテナンスされている
このリポジトリはまだGitHubから読み取っていません
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
検索・AIの記憶のほかのサーバーとの比較i
- このカテゴリのほかの5692件のうち0%よりスターが多い
- このカテゴリのほかの5692件のうち33%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5692件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Bitbucket MCPは安全ですか?
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
入力が必要なもの:BITBUCKET_TOKEN
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は–、最新バージョン(0.20.2)がレジストリに届いたのは3 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。
代わりに使えるものは?
同じカテゴリには:Context7, Codebase Memory, Exa
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
bitbucket-cli
Low-maintenance Bitbucket Cloud tooling built from the live OpenAPI spec: a CLI for software engineers, an MCP server for AI agents, and a Terraform provider for DevSecOps teams.
[!IMPORTANT]
https://github.com/FabianSchurig/bitbucket-cliis the canonical repository.
If you found this project through the
terraform-provider-bitbucketmirror, watch, star, file issues, and contribute inbitbucket-cli.
Start here
| Audience | Best fit | Start here |
|---|---|---|
| DevSecOps engineers | Terraform provider | Terraform Registry, generated provider docs, example: bitbucket_tags |
| Software engineers / computer scientists | bb-cli | CLI usage guide |
| AI agents / agent platform users | bb-mcp | MCP usage guide |
Quick links
- Canonical GitHub repository
- Terraform Registry:
FabianSchurig/bitbucket - Mirror repository:
terraform-provider-bitbucket - GitHub Releases
- SonarQube Cloud
- Contributing guide
Install
Homebrew (macOS & Linux)
To install the CLI tool via our custom tap, tap the repository and explicitly trust the formula to reduce supply chain risks:
brew tap FabianSchurig/tap
brew trust --formula FabianSchurig/tap/bitbucket-cli brew install bitbucket-cli
Or to install the MCP server:
brew tap FabianSchurig/tap
brew trust --formula FabianSchurig/tap/bitbucket-mcp brew install bitbucket-mcp
*(Note: If you previously tapped the old cask, you can safely untap via brew untap fabianschurig/tap before running the command).*
APT (Debian / Ubuntu)
Download the .deb package from the latest release and install it. Supported architectures: amd64, arm64.
TAG_URL=$(curl -fsSIL -o /dev/null -w '%{url_effective}' https://github.com/FabianSchurig/bitbucket-cli/releases/latest)
VERSION=${TAG_URL##*/} VERSION=${VERSION%%\?*} VERSION=${VERSION%%\#*} VERSION=${VERSION#v} ARCH=$(dpkg --print-architecture) curl -LO "https://github.com/FabianSchurig/bitbucket-cli/releases/download/v${VERSION}/bb-cli_${VERSION}_${ARCH}.deb" sudo dpkg -i "bb-cli_${VERSION}_${ARCH}.deb"
Replace bb-cli with bb-mcp to install the MCP server instead.
RPM (Fedora / RHEL / CentOS)
Download the .rpm package from the latest release and install it. Supported architectures: amd64, arm64.
TAG_URL=$(curl -fsSIL -o /dev/null -w '%{url_effective}' https://github.com/FabianSchurig/bitbucket-cli/releases/latest)
VERSION=${TAG_URL##*/} VERSION=${VERSION%%\?*} VERSION=${VERSION%%\#*} VERSION=${VERSION#v} ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') curl -LO "https://github.com/FabianSchurig/bitbucket-cli/releases/download/v${VERSION}/bb-cli_${VERSION}_${ARCH}.rpm" sudo rpm -i "bb-cli_${VERSION}_${ARCH}.rpm"
Replace bb-cli with bb-mcp to install the MCP server instead.
Scoop (Windows)
scoop bucket add bitbucket https://github.com/FabianSchurig/scoop-bucket
scoop install bb-cli scoop install bb-mcp
Winget (Windows)
winget install FabianSchurig.bb-cli
winget install FabianSchurig.bb-mcp
Install script
curl -fsSL https://raw.githubusercontent.com/FabianSchurig/bitbucket-cli/main/install.sh | sh
See install.sh options for version selection, binary choice (bb-cli, bb-mcp, or all), and custom install directories.
Other methods
| Method | Command |
|---|---|
| Go install | go install github.com/FabianSchurig/bitbucket-cli/cmd/bb-cli@latest |
| Docker | docker pull ghcr.io/fabianschurig/bitbucket-cli:latest |
| Download binaries | GitHub Releases |
For full installation details see the CLI usage guide and the MCP usage guide.
What this project is
This repository keeps Bitbucket Cloud tooling maintainable by generating most of the surface area from the live Bitbucket OpenAPI spec.
- One API description, three user-facing tools: CLI, MCP, and Terraform all come from the same schema pipeline.
- Thin hand-written runtime: auth, dispatch, output, and Terraform runtime stay generic instead of growing per-endpoint glue.
- Fast spec adoption: new Bitbucket endpoints flow in through generation instead of large manual rewrites.
- Maintenance-first design: the main development effort goes into the shared generators and runtime, not duplicated endpoint code.
- Internal/undocumented endpoints supported the same way: schemas under
schema/can be hand-authored for endpoints that are not in Bitbucket's public OpenAPI spec (for example the project-level branch-restrictions endpoint exposed only viahttps://bitbucket.org/!api/internal/...). The generators and runtime treat them identically — schema paths may use absolute URLs and the dispatcher passes them through unchanged.
Architecture
flowchart LR
A[Live Bitbucket OpenAPI spec] --> B[enrich_spec.py] B --> C[partition_spec.py] C --> D[schema/*-schema.yaml] D --> E[oapi-codegen models] D --> F[CLI generator] D --> G[MCP generator] D --> H[Terraform generator] E --> I[Shared generated types] F --> J[bb-cli] G --> K[bb-mcp] H --> L[terraform-provider-bitbucket] I --> J I --> K I --> L M[Hand-written runtime\nauth, dispatch, output, MCP handler, TF runtime] --> J M --> K M --> L
In practice:
- CLI exposes Bitbucket operations as terminal commands.
- MCP exposes the same operations as tool calls for AI agents.
- Terraform maps operation groups into generic resources and data sources.
- Hand-written code stays small on purpose; generated code handles endpoint coverage.
CI pipelines
flowchart TD
A[push / pull_request] --> B[ci.yml] A --> C[terraform-tests.yml] D[schedule / manual] --> E[schema-sync.yml] E --> F[Fetch live spec] F --> G[Regenerate code and docs] G --> H[Build and test] H --> I[Tag new version] I --> J[release.yml] J --> K[docker.yml] I --> L[terraform-release.yml] K --> M[Publish to MCP Registry]
- `ci.yml`: builds, lints, vets, runs Go tests, and sends analysis to SonarQube Cloud.
- `terraform-tests.yml`: runs mock-based Terraform acceptance and
terraform testsuites, plus real API tests when credentials exist. See docs/e2e-coverage.md for the current list of endpoints exercised by the real-API tests. - `schema-sync.yml`: daily/manual sync that fetches the live Bitbucket spec, regenerates generated artifacts, rebuilds docs, tests everything, and tags a release when the schema changed.
- `release.yml`: publishes tagged binary releases via GoReleaser.
- `docker.yml`: builds multi-arch container images for
bb-cliandbb-mcp, pushes them to GHCR, publishes their SBOM and CVE reports (see Supply chain: SBOM and CVE reports), and publishes thebb-mcpserver to the MCP Registry. - `terraform-release.yml`: mirrors the tagged source into
terraform-provider-bitbucketand publishes the Terraform provider release.
Schema sync safety
The live OpenAPI document is treated as an input, not as an authority to delete a working API group because of a transient omission. Three mechanisms keep the daily sync from breaking published surface or itself:
- Group preservation: when a group extracts with no paths,
partition_spec.pypreserves its existing populated schema; a genuinely empty or new group is still written normally. - Stable operationIds: ids are recorded in the committed lockfile
schema/operation-ids.json, keyed by" ". An operation keeps its id forever, and ids of removed operations stay reserved — so a sibling endpoint can never inherit an id and silently rename a shipped CLI command, MCP tool, orCRUDConfigreference. - Operation retention: Atlassian regularly removes *deprecated but still functional* endpoints from the published spec. Rather than dropping commands in an automatic patch release,
partition_spec.pycarries such operations forward verbatim from the committed schema, annotatedx-bb-cli-retained: trueso the schema diff shows exactly what upstream stopped publishing. Retiring one for good is a deliberate act: delete it fromschema/*-schema.yaml, and the invariant tests then flag any hand-maintained mapping (for example inCRUDConfig) that still references it.
Acceptance tests in internal/tfprovider/acceptance_test.go are hand-written and are never deleted by schema generation. Generated Terraform fixtures are regenerated from the surviving resource groups, while the schema-sync build and test gate, including the mock Terraform acceptance suites, must pass before any change is committed or released. The generated real-API coverage report makes missing group coverage visible without requiring manual bookkeeping.
Supply chain: SBOM and CVE reports
Every released container image ships with a Software Bill of Materials and a vulnerability report in standard formats. Both are produced from the exact image digest that was pushed to GHCR.
| Artifact | Format | Where to get it |
|---|---|---|
| Image SBOM | SPDX 2.3 JSON | sbom-bitbucket-cli.spdx.json / sbom-bitbucket-mcp.spdx.json on the matching GitHub Release, or as a signed attestation on the image itself |
| Image CVE report | Grype JSON + plain-text table | cves-bitbucket-cli.{json,txt} / cves-bitbucket-mcp.{json,txt} on the matching GitHub Release |
| Source SBOM | SPDX JSON | At
冒頭だけを表示しています。続きはリポジトリで読めます