- Explore MCP Servers
- BitbucketMcpServers
Bitbucketmcpservers
What is Bitbucketmcpservers
BitbucketMcpServers is a Model Context Protocol (MCP) server built using C# that interacts with the Bitbucket API, allowing for seamless integration and automation of Bitbucket repository management.
Use cases
Use cases include automating repository actions such as pull requests, managing branch permissions, and integrating Bitbucket with other tools in a development workflow.
How to use
To use BitbucketMcpServers, configure the server with your Bitbucket account and repository details via command-line arguments or environment variables. Build the solution using ‘dotnet build’ and publish the standalone executable for local use with ‘dotnet publish’.
Key features
Key features include integration with Bitbucket’s REST APIs through SharpBucket, logging support via Serilog, and the ability to configure server settings through JSON files for easy management.
Where to use
BitbucketMcpServers can be used in software development environments where Bitbucket is utilized for version control, particularly in CI/CD pipelines, automated testing, and repository management.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Bitbucketmcpservers
BitbucketMcpServers is a Model Context Protocol (MCP) server built using C# that interacts with the Bitbucket API, allowing for seamless integration and automation of Bitbucket repository management.
Use cases
Use cases include automating repository actions such as pull requests, managing branch permissions, and integrating Bitbucket with other tools in a development workflow.
How to use
To use BitbucketMcpServers, configure the server with your Bitbucket account and repository details via command-line arguments or environment variables. Build the solution using ‘dotnet build’ and publish the standalone executable for local use with ‘dotnet publish’.
Key features
Key features include integration with Bitbucket’s REST APIs through SharpBucket, logging support via Serilog, and the ability to configure server settings through JSON files for easy management.
Where to use
BitbucketMcpServers can be used in software development environments where Bitbucket is utilized for version control, particularly in CI/CD pipelines, automated testing, and repository management.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Bitbucket MCP Server
This project contains an MCP (Model Context Protocol) server that can interact with Bitbucket.
BitbucketMcpServer Configuration
The BitbucketMcpServer console application requires configuration to connect to your Bitbucket account and target repository. This configuration can be provided via command-line arguments or environment variables. Command-line arguments take precedence over environment variables.
Building and Running
To build the solution:
dotnet build
Build the standalone executable for local MCP
dotnet publish .\src\BitbucketMcpServer\BitbucketMcpServer.csproj -o publish
Example Usage
Cline Setup
-
Build the standalone executable for local MCP
-
Copy the standalone executable to a directory in your PATH
-
Open the Cline MCP Configuation file (
cline_mcp_settings.json) in Visual Studio Code. -
Add the following configuration:
{ "Bitbucket": { "autoApprove": [], "disabled": false, "timeout": 60, "command": "BitbucketMcpServer", "args": [ "-u", "{{ bitbucket_username }}", "-p", "{{ bitbucket_app_password }}", "-a", "{{ bitbucket_account_name }}", "-r", "{{ bitbucket_repo_name }}" ], "transportType": "stdio" } }
Dependencies
- SharpBucket: A .NET wrapper for the Bitbucket Cloud’s REST APIs.
- Serilog: For logging.
- ModelContextProtocol: For MCP server integration (though this example primarily focuses on
SharpBucketusage).
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










