mcp-bitbucket
Bitbucket MCPサーバー
Bitbucket MCPは、Bitbucket Cloud APIの全機能を自動化、CI/CDパイプライン、ボット、およびRustベースの統合に提供する、高性能でステートレスなサーバーです。速度と信頼性を重視してRustで構築されたBitbucket MCPにより、開発者ツール、ワークフロー自動化、DevOpsソリューションのいずれを構築する場合でも、Bitbucketのリポジトリ、プルリクエスト、課題などに安全にアクセスして管理することが容易になります。
Bitbucket MCPを選ぶ理由
シームレスなBitbucket API統合: モダンなRustコードベースを使用して、リポジトリ、プルリクエスト、課題、ブランチ、パイプライン、デプロイメントなど、Bitbucket Cloudの主要な全機能にアクセスできます。
自動化とボットに最適: BitbucketをModel Context Protocol (MCP) ツールとして公開し、ボット、CI/CD、ワークフローの自動化に最適です。
デフォルトで安全: TLSには
rustlsのみを使用し(OpenSSLの煩わしさがありません)、Bitbucket APIトークン認証をサポートしています。Docker対応: GHCR上のビルド済みDockerイメージを使用してどこにでもデプロイ可能、または数分でローカルビルドも可能です。
実戦でテスト済み: 包括的なテストスイートがすべてのパブリックAPIメソッドをカバーしており、統合の信頼性を保証します。
Related MCP server: Bitbucket MCP Server
クイックスタート: RustでのBitbucket API自動化
1. GHCRからビルド済みDockerイメージを使用する
docker run -e BITBUCKET_API_USERNAME=<your_atlassian_email> -e BITBUCKET_API_TOKEN=<your_api_token> -p 8080:8080 ghcr.io/ibrahimogod/bitbucket-mcp:latestすべてのタグ/リリースはこちら: GitHub Releases
GHCRパッケージを参照
2. ローカルでビルドして実行する (Rust)
git clone https://github.com/Ibrahimogod/bitbucket-mcp.git
cd bitbucket-mcp
cargo build --release
$env:BITBUCKET_API_USERNAME="<your_atlassian_email>"
$env:BITBUCKET_API_TOKEN="<your_api_token>"
cargo run --release --bin bitbucket_stdioサポートされているBitbucket操作 (MCP経由)
リポジトリ、ワークスペース、プルリクエスト、課題、ブランチ、タグ、コミットのリスト表示と管理
リポジトリ、ワークスペース、ユーザーの詳細取得
プルリクエストワークフローの自動化: 作成、更新、承認、却下、マージ、コメント、タスク管理
Bitbucketパイプライン、デプロイメント、ダウンロード、Webhook、スニペット、プロジェクトとの統合
APIの詳細は
src/common/bitbucket.rsを参照
Bitbucket認証
適切なスコープ(例:
repository:read,pullrequest:read)を持つBitbucket APIトークンを作成します。BITBUCKET_API_USERNAMEにAtlassianのメールアドレスを設定します。BITBUCKET_API_TOKENにAPIトークンを設定します。
プロジェクト構造
src/common/bitbucket.rs— Bitbucket API統合ロジックsrc/bitbucket_stdio.rs— サーバーエントリーポイントCargo.toml— 依存関係設定(rustlsのみ使用)Dockerfile— マルチステージビルド、OpenSSL不使用tests/bitbucket.rs— すべてのパブリックAPIメソッドの完全なテストスイート
ライセンス
MIT
Bitbucket MCPは、Rust、ボット、またはCI/CDを使用してBitbucket Cloudを自動化するための最良の方法です。リポジトリにスターを付けて、今すぐお試しください!
例: Docker統合のためのVS Code MCP設定
VS Code MCP拡張機能を設定して、Dockerを使用してBitbucket MCPサーバーを自動的に起動できます。.vscode/settings.json(またはグローバルMCP設定ファイル)に以下を追加してください:
{
"mcp": {
"servers": {
"bitbucket-mcp-docker": {
"command": "docker",
"args": [
"run",
"-i",
"-e", "BITBUCKET_API_USERNAME",
"-e", "BITBUCKET_API_TOKEN",
"-e", "RUST_BACKTRACE",
"ghcr.io/ibrahimogod/bitbucket-mcp:latest"
],
"env": {
"BITBUCKET_API_USERNAME": "<your_atlassian_email>",
"BITBUCKET_API_TOKEN": "<your_api_token>",
"RUST_BACKTRACE": "1"
}
}
}
}
}<your_atlassian_email>と<your_api_token>をBitbucketの認証情報に置き換えてください。必要に応じて、latestの代わりに特定のイメージタグを指定することもできます。
この設定により、VS CodeでBitbucketツールを使用する際に、MCP拡張機能がDockerでBitbucket MCPサーバーを自動的に起動できるようになります。
例: Docker統合のためのCursor MCP設定
Cursorを設定して、Dockerを使用してBitbucket MCPサーバーを自動的に起動できます。.cursor/mcp.json(プロジェクト用)または~/.cursor/mcp.json(グローバル用)に以下を追加してください:
{
"mcpServers": {
"bitbucket-mcp-docker": {
"command": "docker",
"args": [
"run",
"-i",
"-e", "BITBUCKET_API_USERNAME",
"-e", "BITBUCKET_API_TOKEN",
"-e", "RUST_BACKTRACE",
"ghcr.io/ibrahimogod/bitbucket-mcp:latest"
],
"env": {
"BITBUCKET_API_USERNAME": "<your_atlassian_email>",
"BITBUCKET_API_TOKEN": "<your_api_token>",
"RUST_BACKTRACE": "1"
}
}
}
}<your_atlassian_email>と<your_api_token>をBitbucketの認証情報に置き換えてください。必要に応じて、latestの代わりに特定のイメージタグを指定することもできます。
この設定により、Bitbucketツールを使用する際に、CursorがDockerでBitbucket MCPサーバーを自動的に起動できるようになります。
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
The Buildkite MCP server exposes Buildkite product data (pipelines, builds, jobs, and test data) to AI tools, editors, and agents through the Model Context Protocol. It provides capabilities including pipeline creation and management, build monitoring with specialized tools like 'wait_for_build', efficient log querying using Apache Parquet conversion and caching, and OAuth-based authentication for both read-write and read-only access to Buildkite's REST API.
327 dev tools via REST API and MCP. Generate Dockerfiles, schemas, K8s, APIs, and more.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to manage Bitbucket Cloud repositories, pull requests, branches, commits, pipelines, issues, and webhooks through the Model Context Protocol.8349 npmMIT
- AlicenseBqualityDmaintenanceEnables 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.164,295 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Bitbucket Cloud that exposes 35 tools covering repositories, pull requests, branching models, and pipelines, enabling AI clients to automate Bitbucket workflows.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Bitbucket Cloud REST API 2.0, supporting pull requests, pipelines, logs, and repository cloning through MCP tools.22 npmMIT