bitbucket
mcp-bitbucket
Bitbucket Cloud REST API 2.0 用の MCP (stdio) サーバー。Cursor で動作します: プルリクエスト、パイプライン、ログ、クローン。
ツールは一般的な bb_get / bb_post / bb_put / bb_patch / bb_delete / bb_clone のセットに対応しています。
要件
Node.js 18+
Atlassian の Scoped API トークン (App Passwords は機能しません)
トークン: id.atlassian.com → API tokens。
便利なスコープ: リポジトリ、プルリクエスト、パイプライン、ユーザーの読み取り (read:repository:bitbucket、read:pullrequest:bitbucket、read:pipeline:bitbucket、read:user:bitbucket)。書き込みには対応する write:* を追加してください。
Related MCP server: bitbucket-mcp
インストール
git clone https://github.com/genkis/mcp-bitbucket.git
cd mcp-bitbucket
npm install.env.example を .env にコピーし、値をローカルで設定してください。.env ファイルはコミットしないでください。
Cursor (~/.cursor/mcp.json)
トークンとメールは、このリポジトリではなく、Cursor のローカル設定のみに保存してください。
{
"mcpServers": {
"bitbucket": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/mcp-bitbucket/index.js"],
"env": {
"ATLASSIAN_USER_EMAIL": "you@example.com",
"ATLASSIAN_API_TOKEN": "your-scoped-api-token",
"BITBUCKET_DEFAULT_WORKSPACE": "your-workspace-slug"
}
}
}
}変更後、Cursor で MCP サーバーをリロードしてください。
変数:
変数 | 説明 |
| Atlassian アカウントのメール |
| Scoped API トークン |
| デフォルトのワークスペース ( |
エイリアス: BITBUCKET_USERNAME、BITBUCKET_API_TOKEN。
ツール
/2.0 プレフィックスは自動的に追加されます。パスは / で始まります (例: /workspaces)。
ツール | 用途 |
| 読み取り (PR、パイプライン、ログ、ファイル) |
| 作成 (PR、コメント、マージ) |
| リソースの完全置換 |
| 部分更新 |
| 削除 / PR の decline |
|
|
共通パラメータ: path、オプションで queryParams、jq (JMESPath)、outputFormat (toon または json)。bb_post / bb_put / bb_patch には body が必要です。
パスの例:
/workspaces/repositories/{workspace}/{repo}/pullrequests/{id}/repositories/{workspace}/{repo}/pullrequests/{id}/diff/repositories/{workspace}/{repo}/pipelines/?pagelen=50&sort=-created_on/repositories/{workspace}/{repo}/pipelines/{uuid}/steps/{stepUuid}/log
jq フィルターは、モデルに JSON 全体を読み込ませないように、リストでは常に使用することをお勧めします。
セキュリティ
トークン、
.env、シークレットを含むmcp.jsonをコミットしないでください。このサーバーは、Basic Auth (メール + トークン) を使用して
api.bitbucket.orgにリクエストを転送するだけです。ログとエラーにトークンは出力されません。
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Pipefork API projects, drafts, connections, secrets, and deployments through MCP.
Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)
GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Related MCP Servers
- FlicenseBqualityBmaintenanceEnables interaction with a Bitbucket Server/Data Center instance, exposing its REST v1.0 API as MCP tools to manage projects, repositories, branches, pull requests, comments, diffs, commits, files, search, and build status.41-
- AlicenseAqualityBmaintenanceEnables MCP clients to browse and interact with Bitbucket Cloud, exposing workspace, repository, branch, and pull request operations as tools.1812 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Bitbucket workspaces, repositories, branches, commits, and pull requests through MCP tools for listing, retrieving, commenting, searching, and managing version control workflows. It supports generic GET, POST, PUT, PATCH, DELETE, and clone operations against Bitbucket Cloud REST API endpoints.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Bitbucket Cloud workspaces, repositories, pull requests, commits, branches, diffs, comments, issues, pipelines, and deployments through MCP tools for listing, reading, creating, updating, deleting, searching, commenting, and cloning via the Bitbucket API.MIT