
Bitbucket MCP——一款用于与Bitbucket云和服务器API集成的模型上下文协议(MCP)服务器
概览
一个模型上下文协议(MCP)服务器,用于与Bitbucket云和服务器API集成。该MCP服务器使像Cursor这样的AI助手能够与你的Bitbucket仓库、拉取请求及其他资源交互。 这是一个安全且负责任的软件包——不使用任何 DELETE 操作,因此没有数据丢失的风险。每个拉取请求都会用 CodeQL 分析,确保代码安全。 查看官方 npm 包。该服务器实现了模型上下文协议(Model Context Protocol)标准,为 AI 助手提供 Bitbucket 数据和操作访问。它包含以下工具: - 列表和检索仓库 - 获取仓库详情 - 获取拉取请求 - 以及更多内容......
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,用于与Bitbucket云和服务器API集成。该MCP服务器使像Cursor这样的AI助手能够与你的Bitbucket仓库、拉取请求及其他资源交互。
安全第一
这是一个安全且负责任的软件包——不使用任何删除操作,因此没有数据丢失的风险。 每个拉取请求都会用 CodeQL 分析,以确保代码的安全。
概述
看看官方的NPM套餐 该服务器实现了模型上下文协议标准,为人工智能助手提供访问Bitbucket数据和操作的能力。它包含以下工具:
- 列表和检索仓库
- 获取存储库详情
- 获取拉取请求
- 还有更多…
安装
——自从有人问过,我们看到很多情况下——“BITBUCKET_USERNAME”通常是你的邮箱
使用 NPX(推荐)
使用这个MCP服务器最简单的方式是通过NPX,这样你可以在不全局安装的情况下运行它:
手动安装
或者,您也可以全局安装,或作为项目的一部分:
然后用以下方式运行:
配置
环境变量
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Bitbucket MCP
A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs. This MCP server enables AI assistants like Cursor to interact with your Bitbucket repositories, pull requests, and other resources.
Safety First
This is a safe and responsible package — no DELETE operations are used, so there’s no risk of data loss. Every pull request is analyzed with CodeQL to ensure the code remains secure.
Overview
Checkout out the official npm package This server implements the Model Context Protocol standard to provide AI assistants with access to Bitbucket data and operations. It includes tools for:
- Listing and retrieving repositories
- Getting repository details
- Fetching pull requests
- And more…
Installation
– Since it has been asked, in many cases we have seen - “BITBUCKET_USERNAME” is usually your email
Using NPX (Recommended)
The easiest way to use this MCP server is via NPX, which allows you to run it without installing it globally:
# Option A (recommended): API URL + explicit workspace
BITBUCKET_URL="https://api.bitbucket.org/2.0" \
BITBUCKET_WORKSPACE="your-workspace" \
BITBUCKET_USERNAME="your-username" \
BITBUCKET_PASSWORD="your-app-password" \
npx -y bitbucket-mcp@latest
# Option B (legacy-compatible): web URL only; workspace is auto-extracted
BITBUCKET_URL="https://bitbucket.org/your-workspace" \
BITBUCKET_USERNAME="your-username" \
BITBUCKET_PASSWORD="your-app-password" \
npx -y bitbucket-mcp@latest
Manual Installation
Alternatively, you can install it globally or as part of your project:
# Install globally
npm install -g bitbucket-mcp
# Or install in your project
npm install bitbucket-mcp
Then run it with:
# If installed globally (Option A)
BITBUCKET_URL="https://api.bitbucket.org/2.0" \
BITBUCKET_WORKSPACE="your-workspace" \
BITBUCKET_USERNAME="your-username" \
BITBUCKET_PASSWORD="your-app-password" \
bitbucket-mcp
# If installed globally (Option B - legacy-compatible)
BITBUCKET_URL="https://bitbucket.org/your-workspace" \
BITBUCKET_USERNAME="your-username" \
BITBUCKET_PASSWORD="your-app-password" \
bitbucket-mcp
# If installed in your project (Option A)
BITBUCKET_URL="https://api.bitbucket.org/2.0" \
BITBUCKET_WORKSPACE="your-workspace" \
BITBUCKET_USERNAME="your-username" \
BITBUCKET_PASSWORD="your-app-password" \
npx bitbucket-mcp
安装
npx -y bitbucket-mcp@latest