Bitbucket Server MCP server for pull request management

Bitbucket Server MCP server for pull request management

bitbucket-server-mcp-server-kartikpatpatwingify•bykartikpatpatwingify

An MCP server that exposes tools for managing Bitbucket Server pull requests and repository operations through the MCP protocol.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Creates new pull requests with title, description, source and target branches, and reviewer usernames.
  • •Retrieves detailed information about a specific pull request by ID.
  • •Merges pull requests using merge-commit, squash, or fast-forward strategies.
  • •Pushes multiple files in a single commit to a repository branch.

BEST FOR

  • •Automating pull request workflows in Bitbucket Server through an MCP client.
  • •Reviewing changes by fetching diffs and review history for a pull request.
  • •Committing file changes to a branch without leaving an MCP-enabled environment.

ABOUT BITBUCKET-SERVER-MCP-SERVER-KARTIKPATPATWINGIFY

Bitbucket Server MCP server for pull request management is cataloged as an MCP server attributed to kartikpatpatwingify. An MCP server that exposes tools for managing Bitbucket Server pull requests and repository operations through the MCP protocol. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Bitbucket Server MCP server for pull request management are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which pull request actions can the server perform?

It can create, retrieve, merge, and decline pull requests, add comments, fetch diffs and review history, and push files.

What merge strategies are supported?

The merge tool supports merge-commit, squash, and fast-forward, with merge-commit as the default.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 83768c0fa18f · 采集于 2026-11-13 13:40:48 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Bitbucket Server MCP

MCP (Model Context Protocol) server for Bitbucket Server Pull Request management. This server provides tools and resources to interact with the Bitbucket Server API through the MCP protocol.

smithery badge Bitbucket Server MCP server

Requirements

  • Node.js >= 16

Installation

Installing via Smithery

To install Bitbucket Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @garc33/bitbucket-server-mcp-server --client claude

Manual Installation

npm install

Build

npm run build

Features

The server provides the following tools for Bitbucket Server integration:

create_pull_request

Creates a new pull request.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • title (required): PR title
  • description: PR description
  • sourceBranch (required): Source branch name
  • targetBranch (required): Target branch name
  • reviewers: Array of reviewer usernames

get_pull_request

Retrieves detailed information about a specific pull request.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • prId (required): Pull request ID

merge_pull_request

Merges a pull request.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • prId (required): Pull request ID
  • message: Merge commit message
  • strategy: One of:
    • merge-commit (default)
    • squash
    • fast-forward

decline_pull_request

Declines a pull request.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • prId (required): Pull request ID
  • message: Reason for declining

add_comment

Adds a comment to a pull request.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • prId (required): Pull request ID
  • text (required): Comment text
  • parentId: Parent comment ID for replies

get_diff

Retrieves the diff for a pull request.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • prId (required): Pull request ID
  • contextLines: Number of context lines (default: 10)

get_reviews

Fetches the review history of a pull request, including approvals and reviews.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • prId (required): Pull request ID

push_files

Pushes multiple files in a single commit to a repository branch.

Parameters:

  • project: Bitbucket project key (defaults to BITBUCKET_DEFAULT_PROJECT if set)
  • repository: Repository slug (defaults to BITBUCKET_DEFAULT_REPOSITORY if set)
  • branch (required): Branch name to push to
  • message (required): Commit message
  • files (required): Array of file objects, each containing:
    • path (required): File path relative to repository root
    • content (required): Content to push to the file

Dependencies

  • @modelcontextprotocol/sdk - SDK for MCP protocol implementation
  • axios - HTTP client for API requests
  • winston - Logging framework

Configuration

The server requires configuration in the VSCode MCP settings file. Here's a sample configuration:

{
  "mcpServers": {
    "bitbucket": {
      "command": "node",
      "args": ["/path/to/bitbucket-server/build/index.js"],
      "env": {
        "BITBUCKET_URL": "https://your-bitbucket-server.com",
        // Authentication (choose one):
        // Option 1: Personal Access Token
        "BITBUCKET_TOKEN": "your-access-token",
        // Option 2: Username/Password
        "BITBUCKET_USERNAME": "your-username",
        "BITBUCKET_PASSWORD": "your-password",
        // Optional: Default project
        "BITBUCKET_DEFAULT_PROJECT": "your-default-project",
        // Optional: Default repository
        "BITBUCKET_DEFAULT_REPOSITORY": "your-default-repository"
      }
    }
  }
}

Environment Variables

  • BITBUCKET_URL (required): Base URL of your Bitbucket Server instance
  • Authentication (one of the following is required):
    • BITBUCKET_TOKEN: Personal access token
    • BITBUCKET_USERNAME and BITBUCKET_PASSWORD: Basic authentication credentials
  • BITBUCKET_DEFAULT_PROJECT: Default project key to use when not specified in tool calls
  • BITBUCKET_DEFAULT_REPOSITORY: Default repository slug to use when not specified in tool calls

Logging

The server logs all operations to bitbucket.log using Winston for debugging and monitoring purposes.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Bitbucket Server MCP server for pull request management from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/bitbucket-server-mcp-server-kartikpatpatwingify)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools