Mcp Server Wrapper Bitbucket
About
This is a MCP bridge for existing TypeScript Bitbucket MCP server in a Python UV-based API layer, essentially making UV act as a proxy/bridge.
Details
- License
- MIT
Explore
- Launches the MCP server (written in Node.js)
- Communicates over stdio for performance & flexibility
- Exposes clean REST endpoints via FastAPI
- Auto-generated OpenAPI docs
- Docker-ready
---
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Mcp Server Wrapper BitbucketCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
pip install -r requirements.txt
npm install
npm run build
Set these to configure the Bitbucket MCP server:
```env
BITBUCKET_URL=https://your-bitbucket-server.com
BITBUCKET_TOKEN=your-access-token
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp server wrapper bitbucket": {
"mcp-server-wrapper-bitbucket": {
"command": "docker",
"args": [
"build",
"-t",
"bitbucket-mcp-wrapper",
"."
]
}
}
}
}
McpServers
{
"mcp-server-wrapper-bitbucket": {
"command": "docker",
"args": [
"build",
"-t",
"bitbucket-mcp-wrapper",
"."
]
}
}
---
β
README.md
# Bitbucket MCP Server - FastAPI Wrapper
This project is a Python-based FastAPI wrapper around a TypeScript MCP (Model Context Protocol) server for managing Bitbucket Server pull requests. It bridges the original MCP server with a modern HTTP/REST interface.



---
π Features
- Launches the MCP server (written in Node.js)
- Communicates over stdio for performance & flexibility
- Exposes clean REST endpoints via FastAPI
- Auto-generated OpenAPI docs
- Docker-ready
---
π§© Endpoints
| Method | Path | Description |
|--------|-------------------------|-----------------------------|
| POST | /create-pull-request | Create a new pull request |
| POST | /get-pull-request | Retrieve a PR's details |
| POST | /merge-pull-request | Merge a pull request |
| POST | /decline-pull-request| Decline a pull request |
| POST | /add-comment | Add comment to a PR |
| POST | /get-diff | Get diff of a pull request |
| POST | /get-reviews | Fetch review history |
| POST | /mcp | Direct MCP protocol access |
π Swagger UI available at: http://localhost:8000/docs
---
π§° Requirements
- Python 3.10+
- Node.js 18+
- Bitbucket Server instance + token
- (Optional) Docker
---
π§ Setup
1. Install Python dependencies
bashpip install -r requirements.txt
2. Install & Build MCP Server (Node.js)
bashnpm install
npm run build
3. Start the FastAPI Server
bashuvicorn app.main:app --reload
---
π³ Docker
To run everything inside Docker:
bashdocker build -t bitbucket-mcp-wrapper .
docker run -p 8000:8000 bitbucket-mcp-wrapper
---
π Environment Variables
Set these to configure the Bitbucket MCP server:
envBITBUCKET_URL=https://your-bitbucket-server.com
BITBUCKET_TOKEN=your-access-token
Or use BITBUCKET_USERNAME + BITBUCKET_PASSWORD
---
π Project Structure
mcp_uv_wrapper/
βββ app/
β βββ main.py # FastAPI entry point
β βββ mcp_bridge.py # Communicates with MCP server
βββ requirements.txt
βββ Dockerfile
```
---
π§βπ» Maintainer
This wrapper was generated and managed via AI assistance.
Feel free to fork, open issues, or contribute!
---
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



