Bitbucket Server
БесплатноНе проверенEnables automated interaction with Bitbucket, including creating and listing pull requests, through the Model Context Protocol.
Описание
Enables automated interaction with Bitbucket, including creating and listing pull requests, through the Model Context Protocol.
README
An MCP (Model Context Protocol) server to interact with Bitbucket through automated tools.
Installation
1. Clone the repository
git clone <repository-url>
cd bitbucket
2. Install dependencies
Option A: With pnpm (recommended)
pnpm install
Option B: With npm
npm install
3. Configure environment variables
Create a .env file in the project root with your Bitbucket credentials:
[email protected]
BITBUCKET_API_TOKEN=your_api_token
BITBUCKET_WORKSPACE=your_workspace
BITBUCKET_REVIEWER_UUID=reviewer_uuid_optional
BITBUCKET_API_BASE_URL=https://api.bitbucket.org/2.0
BITBUCKET_DEFAULT_DESTINATION_BRANCH=develop
BITBUCKET_CLOSE_SOURCE_BRANCH=true
Variable descriptions:
BITBUCKET_EMAIL: Your Bitbucket account emailBITBUCKET_API_TOKEN: Your Bitbucket App Password (not your regular password)BITBUCKET_WORKSPACE: Your Bitbucket workspace nameBITBUCKET_REVIEWER_UUID: (Optional) UUID of a default reviewer for pull requestsBITBUCKET_API_BASE_URL: (Optional) Base URL for Bitbucket API (default: https://api.bitbucket.org/2.0)BITBUCKET_DEFAULT_DESTINATION_BRANCH: (Optional) Default destination branch for pull requests (default: develop)BITBUCKET_CLOSE_SOURCE_BRANCH: (Optional) Whether to close source branch after merge (default: true)
MCP Configuration
Add the following configuration to your MCP settings file (usually in ~/.config/mcp/settings.json or similar):
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["tsx", "/full/path/to/project/src/server.ts"],
"env": {
"BITBUCKET_EMAIL": "[email protected]",
"BITBUCKET_API_TOKEN": "your_api_token",
"BITBUCKET_WORKSPACE": "your_workspace",
"BITBUCKET_REVIEWER_UUID": "reviewer_uuid_optional",
"BITBUCKET_API_BASE_URL": "https://api.bitbucket.org/2.0",
"BITBUCKET_DEFAULT_DESTINATION_BRANCH": "develop",
"BITBUCKET_CLOSE_SOURCE_BRANCH": "true"
}
}
}
}
Note: Replace /full/path/to/project with the absolute path where you have cloned this project.
Usage
Once configured, you can use the following tools from your MCP client:
- Create Pull Request: Automatically create pull requests
- List Pull Requests: View all pull requests in the repository
- Prepare Pull Request: Automatically generate titles and descriptions for pull requests
Development
To run the server in development mode:
With pnpm:
pnpm run inspector
With npm:
npm run inspector
Requirements
- Node.js 18+
- pnpm or npm
- Bitbucket account with App Password configured
Установка Bitbucket Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/AaronLopezBarros/MCP_bitbucketFAQ
Bitbucket Server MCP бесплатный?
Да, Bitbucket Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Bitbucket Server?
Нет, Bitbucket Server работает без API-ключей и переменных окружения.
Bitbucket Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Bitbucket Server в Claude Desktop, Claude Code или Cursor?
Открой Bitbucket Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Bitbucket Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
