LabscoMCP early access ↗
IbrahimogodMCP SERVER

Bitbucket Rust MCP Server

Bitbucket Cloud as MCP tools, written in Rust and shipped as a container — API-token auth, rustls only, no OpenSSL.

by Ibrahimogod ↗Git Hosting & Code ReviewCommunity

LABSCO SUMMARY

Built to be dropped into a pipeline.

The design choices point at automation rather than desktop use: stateless, a single static binary, rustls instead of OpenSSL, and a published image tagged per release. It is write-capable — merging and commenting are in scope — so the token's scopes are what actually bound it, and a read-only token is the way to keep an assistant to reporting.

What it is

A stateless MCP server over the Bitbucket Cloud API, built in Rust. It exposes the major Bitbucket surfaces to an assistant or an automation, and is packaged as a prebuilt container so it can drop into CI as easily as into an editor.

What you get

  • Repositories, workspaces, branches, tags and commits, listed and read
  • Pull request workflows end to end — create, update, approve, decline, merge, comment and manage tasks
  • Issues, plus projects, snippets, downloads and webhooks
  • Pipelines and deployments, so build state is readable alongside the code
  • A prebuilt image on GHCR — ghcr.io/ibrahimogod/bitbucket-mcp:latest — with VS Code and Cursor configs that launch it through Docker
  • TLS through rustls only, with no OpenSSL in the build

Requirements

  • A Bitbucket API token created in your Atlassian account, with the scopes you need, such as repository:read and pullrequest:read.
  • Two environment variables carry it: BITBUCKET_API_USERNAME, which is your Atlassian email, and BITBUCKET_API_TOKEN.
  • Your client starts the container itself with docker run -i and those two variables, as the VS Code and Cursor configurations show — the image runs the stdio binary, so it needs -i and listens on no port.
  • Or build from source with cargo build --release and run the bitbucket_stdio binary.

Setup effort

Run a container — pull the image and point your client at it