Bitbucket Server MCP

Bitbucket Server MCP

A professional MCP server for Bitbucket Server that enables automation of pull request management, code review, and repository operations.

Category
Visit Server

README

Bitbucket Server MCP

A professional Model Context Protocol (MCP) server for Bitbucket Server, enabling seamless automation and integration for pull request management, code review, and repository operations.


Table of Contents


Overview

Bitbucket Server MCP provides a robust interface for automating and managing Bitbucket Server repositories and pull requests via the Model Context Protocol. Designed for enterprise environments, it supports advanced workflows, large diffs, and seamless integration with MCP clients.


Features

  • List repositories, branches, and pull requests
  • Create, update, and merge pull requests (merge-commit, squash, fast-forward)
  • Decline and delete pull requests
  • Add comments and inline code suggestions
  • Retrieve pull request diffs and review status
  • Efficient handling of large pull request diffs
  • Extensible tool handler wiring for MCP protocol
  • Cross-platform support (Windows, Mac, Linux)

Installation

Using npx (Recommended)

Run directly without cloning:

npx -y bitbucket-server-mcp

Local Installation

Clone and build the project:

git clone https://github.com/your-org/bitbucket-server-mcp.git
cd bitbucket-server-mcp
npm install
npm run build

Quick Start

  1. Copy .env.example to .env and configure your Bitbucket Server credentials.

  2. Start the MCP server:

    npm start
    # or
    node build/index.js
    

🚀 MCP Server Configuration

Add the following to your MCP configuration (e.g., cline_mcp_settings.json):

{
  "servers": [
    {
      "name": "bitbucket-server-mcp",
      "command": "npx",
      "args": ["-y", "bitbucket-server-mcp"],
      "env": {
        "BITBUCKET_URL": "https://your-bitbucket-server",
        "BITBUCKET_TOKEN": "your-access-token",
        "BITBUCKET_DEFAULT_PROJECT": "your-default-project",
        "BITBUCKET_DEFAULT_REVIEWERS": "user1,user2"
      }
    }
  ]
}

Direct Node Usage

If npx is unavailable, configure as follows:

  • Windows:
    "command": "node",
    "args": ["C:\\path\\to\\bitbucket-server-mcp\\build\\index.js"],
    
  • Mac/Linux:
    "command": "node",
    "args": ["/path/to/bitbucket-server-mcp/build/index.js"],
    

Environment Variables

Variable Description Required Example
BITBUCKET_URL Bitbucket Server base URL Yes https://bitbucket.example.com
BITBUCKET_TOKEN Personal access token Yes your-access-token
BITBUCKET_DEFAULT_PROJECT Default project key No PROJKEY
BITBUCKET_DEFAULT_REVIEWERS Comma-separated reviewer usernames No user1,user2
BITBUCKET_USERNAME Username (if not using token) No your-username
BITBUCKET_PASSWORD Password (if not using token) No your-password

See .env.example for details.


Development

  • Lint code:
    npm run lint
    
  • Run in watch mode:
    npm run dev
    

Testing

Run the test suite:

npm test

Contributing

Contributions are welcome! Please open issues or submit pull requests for new features, bug fixes, or improvements.


License

This project is licensed under the MIT License.


Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured