Bbkt logo

Bbkt

by zach-snell

Manage Bitbucket Cloud workspaces, repositories, pull requests, pipelines, issues, refs, commits, and source code through MCP.

Install Bbkt

Run the project’s own setup commands, in order.

Setup steps from the project

zach-snell/bbkt installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -sSL https://raw.githubusercontent.com/zach-snell/bbkt/main/install.sh | bash
    
  2. 2. Install
    curl -sSL https://raw.githubusercontent.com/zach-snell/bbkt/main/install.sh | bash -s -- --user
    

Overview

zach-snell/bbkt provides an MCP interface to Bitbucket Cloud, covering workspaces, repositories, refs, commits, source files, pull requests, comments, pipelines, and issues. The Go-based server runs over stdio or streamable HTTP and can use stored profiles or environment-based credentials. At startup, it checks token scopes and hides tools whose required read permissions are unavailable. Reach for it when an agent needs to inspect or modify Bitbucket resources, with write access controlled through the credential's scopes.

Use cases

  • Inspect Bitbucket repositories and source history
  • Create and manage pull requests through an AI agent
  • Trigger, stop, and inspect Bitbucket pipelines
  • Update issues and pull-request comments
  • Commit, modify, or delete repository files

Key features

  • Bitbucket Cloud workspace and repository management
  • Pull request and comment operations
  • Pipeline triggering, stopping, and log access
  • Source browsing, search, history, editing, and deletion
  • Scope-aware MCP tool filtering
  • Stdio and streamable HTTP transports

Tools10

What Bbkt lets your agent do. Expand a tool for its parameters.

Self-reported~58 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/13 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Tools exposed10Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Bbkt works

What zach-snell/bbkt MCP server does

zach-snell/bbkt connects MCP-compatible AI clients to Bitbucket Cloud. Its toolset covers workspace and repository management, refs, commits, source browsing and editing, pull requests, pull-request comments, pipelines, issues, and a general Bitbucket API operation.

The server supports both read and write workflows. Agents can inspect repositories and source history, create or update issues, open or merge pull requests, manage comments, trigger or stop pipelines, and write or delete source files. The available operations depend on the credentials used to launch the server.

How it works

Launch bbkt mcp to start the MCP service. Stdio is the default transport and is intended for clients that start a local process. Running bbkt mcp --port 8080 exposes the streamable HTTP transport on 127.0.0.1:8080; HTTP requests must include a bearer token configured through BBKT_MCP_HTTP_TOKEN.

Credentials can come from the profile store at ~/.config/bbkt/credentials.json or from one-shot environment variables. Profiles support separate Atlassian accounts, and BBKT_PROFILE selects a profile for the MCP process. The CLI can authenticate with an Atlassian API token or OAuth 2.0 credentials, with OAuth access tokens refreshed after expiry.

On startup, bbkt introspects the token's granted scopes and filters out tools lacking their required read scope. This filtering improves the exposed tool list but does not prevent every write operation; use least-privilege credentials and Bitbucket branch restrictions to control changes.

Setup and configuration

Install a release binary for Linux, macOS, or Windows, or build it from source with Go 1.26 or newer. Authenticate before starting the server, for example with bbkt auth, or configure OAuth using BITBUCKET_OAUTH_CLIENT_ID and BITBUCKET_OAUTH_CLIENT_SECRET before running bbkt auth --oauth.

A stdio client configuration points its command at the binary and passes mcp as the argument. Add BBKT_PROFILE in the client environment when a named profile should be used. For non-interactive authentication, set BITBUCKET_USERNAME with the Atlassian email and BITBUCKET_API_TOKEN, or provide BITBUCKET_ACCESS_TOKEN for an OAuth bearer token.

Tools and capabilities

  • Manage Bitbucket workspaces and repositories.
  • Inspect refs, commits, source trees, files, searches, and history.
  • Read, write, and delete repository source files.
  • Create, review, merge, decline, and comment on pull requests.
  • List, inspect, trigger, stop, and read logs from pipelines.
  • List, create, and update Bitbucket issues.
  • Call Bitbucket API operations through the general API tool.

Limitations and notes

Bitbucket Cloud requires scoped API tokens; unscoped Atlassian tokens are rejected by Bitbucket. Read scopes determine which MCP tools appear, while write and administrative actions require additional permissions. HTTP mode requires bearer authentication on every request and uses a configurable callback port for OAuth browser authentication through BBKT_OAUTH_CALLBACK_PORT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Bbkt

zach-snell/bbkt is an MCP server that connects AI clients to Bitbucket Cloud. Its main tools manage workspaces, repositories, refs, commits, source files, pull requests, comments, pipelines, issues, and direct API operations. It supports both read and write workflows over stdio or streamable HTTP.

Install a binary from the GitHub Releases page, run the project’s install script, or build it from source with Go 1.26 or newer. After installation, authenticate with `bbkt auth`, then configure your MCP client to run the binary with the `mcp` argument.

Configure a stdio MCP entry whose command is the absolute path to `bbkt` and whose argument is `mcp`. Add `BBKT_PROFILE` to the entry’s environment when selecting a named credential profile; otherwise bbkt reads its default stored credentials.

It inspects the token’s granted scopes at startup and hides tools that lack the required read scope. Write actions still depend on the credential’s write permissions, so use a least-privilege token and protect important branches with Bitbucket restrictions.

Yes. Run `bbkt mcp --port 8080` to expose the streamable HTTP transport on `127.0.0.1:8080`. Every request must include a bearer token, configured for the server with `BBKT_MCP_HTTP_TOKEN`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBbkt AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/zach-snell-bbkt?style=directory)](https://allmcps.com/mcp/zach-snell-bbkt)
HTML Embed
<a href="https://allmcps.com/mcp/zach-snell-bbkt"><img src="https://allmcps.com/api/badge/zach-snell-bbkt?style=directory" alt="Bbkt on AllMCPs" /></a>