Bitbucket-MCP-Cloud

jhonymiler/Bitbucket-MCP-Cloud

3.3

If you are the rightful owner of Bitbucket-MCP-Cloud and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Bitbucket Cloud MCP Server is a comprehensive Model Context Protocol server designed for seamless integration with the Bitbucket Cloud API, providing programmatic access to essential functionalities.

The Bitbucket Cloud MCP Server is a robust solution for developers and teams looking to integrate with Bitbucket Cloud's API. It offers a complete Model Context Protocol (MCP) server that facilitates programmatic access to Bitbucket Cloud's core functionalities, such as repository management, pull requests, commits, and comments. This server is designed to streamline workflows by automating tasks and providing a unified interface for interacting with Bitbucket Cloud. With support for Python 3.10+, the server ensures compatibility with modern development environments. It also emphasizes security through the use of Bitbucket App Passwords for authentication, ensuring that all interactions with the API are secure and reliable. The server is built with a focus on ease of use, featuring detailed logging, robust error handling, and input validation using Pydantic models. This makes it an ideal choice for teams looking to enhance their development processes and improve collaboration through efficient use of Bitbucket Cloud's capabilities.

Features

  • Comprehensive integration with Bitbucket Cloud API
  • Secure authentication using Bitbucket App Passwords
  • Robust error handling and detailed logging
  • Support for Python 3.10+
  • Automated testing and coverage reporting

Usages

usage with local python

python
mcp.run(transport='stdio')  # Tools defined via @mcp.tool() decorator

usage with uvicorn

bash
uv run server.py

usage with python direct

bash
python server.py

usage with pip installation

bash
pip install bitbucket-mcp-cloud

usage with uv sync

bash
uv sync

usage with git clone

bash
git clone https://github.com/jhonymiler/Bitbucket-MCP-Cloud.git
cd Bitbucket-MCP-Cloud

usage with uv run pytest

bash
uv run pytest

Tools

  1. list_projects

    List projects in workspace

  2. list_repositories

    List repositories in workspace/project

  3. list_commits

    List commits in repository

  4. list_pull_requests

    List pull requests in repository

  5. get_pull_request

    Get specific pull request details

  6. create_pull_request

    Create new pull request

  7. approve_pull_request

    Approve pull request

  8. decline_pull_request

    Decline pull request

  9. merge_pull_request

    Merge approved pull request

  10. list_pull_request_comments

    List comments on pull request

  11. create_pull_request_comment

    Create comment on pull request

  12. create_pull_request_inline_comment

    Create inline comment on specific line in pull request diff

  13. get_pull_request_diff

    Get pull request diff for analysis

  14. get_pull_request_diffstat

    Get pull request diffstat summary