Atlassian Bitbucket MCP 服务器是一个与 AI 系统集成的 Atlassian Bitbucket Server/Data Center 的 Model Context Protocol (MCP) 服务器,它能让 AI 系统与 Bitbucket 仓库进行交互,为开发工作提供便利。
git clone [](https://github.com/guenichone/atlassian-bitbucket-server-mcp)
cd mcp-server-selfhosted-bitbucket
npm install
npm run build-app
# 作为 STDIO 服务器(AI 集成的默认选项)
ATLASSIAN_BITBUCKET_SERVER_URL=https://git.your-company.com/ \
ATLASSIAN_BITBUCKET_ACCESS_TOKEN=your-token \
npm start
# 作为 HTTP/SSE 服务器
MCP_TRANSPORT=sse \
ATLASSIAN_BITBUCKET_SERVER_URL=https://git.your-company.com/ \
ATLASSIAN_BITBUCKET_ACCESS_TOKEN=your-token \
npm start
此服务器通过以下方式使 AI 系统能够与 Bitbucket 仓库交互:
# 构建
docker build -t bitbucket-mcp-server .
# 运行
docker run --rm -i \
-e ATLASSIAN_BITBUCKET_SERVER_URL=https://git.your-company.com/ \
-e ATLASSIAN_BITBUCKET_ACCESS_TOKEN=your-token \
bitbucket-mcp-server
该项目包含一个 Makefile,用于简化 Docker 操作:
# 构建 Docker 镜像
make docker-build
# 使用你的 Bitbucket 凭据运行
BITBUCKET_URL=https://git.your-company.com/ BITBUCKET_TOKEN=your-token make docker-run
# 一次构建并运行
BITBUCKET_URL=https://git.your-company.com/ BITBUCKET_TOKEN=your-token make docker-all
# 查看所有可用的 Make 命令和示例
make help
属性 | 详情 |
---|---|
ATLASSIAN_BITBUCKET_SERVER_URL | Bitbucket 服务器 URL |
ATLASSIAN_BITBUCKET_ACCESS_TOKEN | 你的访问令牌 |
MCP_TRANSPORT | stdio (默认)或 sse |
PORT | 使用 SSE 时的 HTTP 端口(默认:3000) |
MIT - 有关详细信息,请参阅 LICENSE 文件。
这个项目受到 aashari/mcp-server-atlassian-bitbucket 的启发。