bitbucket
mcp-bitbucket
Сервер MCP (stdio) для Bitbucket Cloud REST API 2.0. Работает с Cursor: pull request'ы, pipeline'ы, логи, клонирование.
Инструменты соответствуют типовому набору bb_get / bb_post / bb_put / bb_patch / bb_delete / bb_clone.
Требования
Node.js 18+
Scoped API Token Atlassian (App Passwords не работают)
Токен: id.atlassian.com → API tokens.
Полезные области: чтение репозитория, pull request'ов, pipeline'ов и пользователя (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)
Храните токен и e-mail только в локальной конфигурации 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"
}
}
}
}После изменения перезагрузите серверы MCP в Cursor.
Переменные:
Переменная | Описание |
| E-mail учётной записи Atlassian |
| Scoped API Token |
| Workspace по умолчанию (используется |
Алиасы: BITBUCKET_USERNAME, BITBUCKET_API_TOKEN.
Инструменты
Префикс /2.0 добавляется автоматически. Путь начинается с /, например /workspaces.
Инструмент | Назначение |
| Чтение (PR, pipeline'ы, логи, файлы) |
| Создание (PR, комментарий, merge) |
| Полная замена ресурса |
| Частичное обновление |
| Удаление / decline PR |
|
|
Общие параметры: 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с секретами.Этот сервер только передаёт запросы на
api.bitbucket.orgс Basic Auth (e-mail + токен).Логи и ошибки не выводят токен.
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.180MIT
- 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