Skip to main content
Glama

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:bitbucketread:pullrequest:bitbucketread:pipeline:bitbucketread:user:bitbucket)。書き込みには対応する write:* を追加してください。

Related MCP server: Bitbucket Cloud MCP Server

インストール

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_USER_EMAIL

Atlassian アカウントのメール

ATLASSIAN_API_TOKEN

Scoped API トークン

BITBUCKET_DEFAULT_WORKSPACE

デフォルトのワークスペース (bb_clone で使用)

エイリアス: BITBUCKET_USERNAMEBITBUCKET_API_TOKEN

ツール

/2.0 プレフィックスは自動的に追加されます。パスは / で始まります (例: /workspaces)。

ツール

用途

bb_get

読み取り (PR、パイプライン、ログ、ファイル)

bb_post

作成 (PR、コメント、マージ)

bb_put

リソースの完全置換

bb_patch

部分更新

bb_delete

削除 / PR の decline

bb_clone

git clone (SSH、次に HTTPS)

共通パラメータ: path、オプションで queryParamsjq (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 にリクエストを転送するだけです。

  • ログとエラーにトークンは出力されません。

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Facilitates interaction with Bitbucket Server for pull request management using the MCP protocol, supporting operations such as creating, merging, commenting, and reviewing pull requests.
    15
    66
    Apache 2.0
  • A
    license
    B
    quality
    C
    maintenance
    Enables interaction with Bitbucket Cloud through 25+ tools for managing repositories, pull requests, branches, commits, issues, pipelines, and code search with OAuth 2.0 authentication.
    34
    13
    1
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that provides tools for interacting with the Bitbucket API, supporting both Bitbucket Cloud and Bitbucket Server, enabling pull request, branch, file, code review, and search operations.
    19
    5,234
    MIT
  • A
    license
    C
    quality
    B
    maintenance
    MCP server for integrating with Bitbucket Cloud and Server APIs, enabling AI assistants to interact with repositories, pull requests, pipelines, and more.
    59
    54
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)

  • GitLab MCP — wraps the GitLab REST API v4 (BYO API key)

  • A MCP server built for developers enabling Git based project management with project and personal…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/genkis/mcp-bitbucket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server