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:
```sh
dotnet build
```
## Build the standalone executable for local MCP
```sh
dotnet publish .\src\BitbucketMcpServer\BitbucketMcpServer.csproj -o publish
```
## Example Usage
### Cline Setup
1. Build the standalone executable for local MCP
1. Copy the standalone executable to a directory in your PATH
1. Open the Cline MCP Configuation file (`cline_mcp_settings.json`) in Visual Studio Code.
1. Add the following configuration:
```json
{
"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](https://github.com/MitjaBezensek/SharpBucket): A .NET wrapper for the Bitbucket Cloud's REST APIs.
* [Serilog](https://serilog.net/): For logging.
* [ModelContextProtocol](https://www.npmjs.com/package/model-context-protocol): For MCP server integration (though this example primarily focuses on `SharpBucket` usage).
You Might Also Like
Ollama
Ollama enables easy access to large language models on various platforms.

n8n
n8n is a secure workflow automation platform for technical teams with 400+...
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

Dify
Dify is a platform for AI workflows, enabling file uploads and self-hosting.

Zed
Zed is a high-performance multiplayer code editor from the creators of Atom.
MarkItDown MCP
markitdown-mcp is a lightweight MCP server for converting various URIs to Markdown.