# zach-snell/bbkt [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/zach-snell/bbkt  
**GitHub Stars:** 4  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zach-snell-bbkt

## Description
Bitbucket Cloud CLI and MCP server. Manages workspaces, repos, PRs, pipelines, issues, and source code. Token introspection hides tools the API key can't use.

## Tools
Capabilities this server exposes over MCP:

- **manage_workspaces** — —
- **manage_repositories** — repository
- **manage_refs** — repository
- **manage_commits** — repository
- **manage_source** — repository
- **manage_pull_requests** — pullrequest
- **manage_pr_comments** — pullrequest
- **manage_pipelines** — pipeline
- **manage_issues** — issue
- **bitbucket_api** — —

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/zach-snell/bbkt), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -sSL https://raw.githubusercontent.com/zach-snell/bbkt/main/install.sh | bash
```

2. Install:

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

## Documentation

## 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`.

_Full upstream README: https://allmcps.com/mcp/zach-snell-bbkt/readme_

