A Bitbucket MCP connector using https://lucli.dev/ and the Bitbucket Lucli Module
801
MCP server image for Bitbucket operations, powered by LuCLI and the bitbucket module.
This image is intended for MCP-compatible clients that want to talk to Bitbucket through a containerized server process. Its default process is:
lucli mcp bitbucketUse this image when your client expects an MCP server over stdio and you want Bitbucket capabilities available through the LuCLI Bitbucket module.
Typical use cases include:
This image is built from the same source as the CLI image, but this variant is optimized for MCP usage rather than direct command execution.
latest — stable release imagesnapshot — current development buildThe server uses the same environment variables as the CLI image.
Common environment variables:
BITBUCKET_WORKSPACEBITBUCKET_REPO_SLUGBITBUCKET_AUTH_TOKENBITBUCKET_AUTH_USER (optional, for personal API token mode)By default, BITBUCKET_AUTH_TOKEN is sent as a Bearer token.
If BITBUCKET_AUTH_USER is also set, the token is treated as a personal API token and sent using Basic auth.
Run the MCP server directly with Docker:
docker run --rm -i \
-e BITBUCKET_WORKSPACE=your-workspace \
-e BITBUCKET_REPO_SLUG=your-repo \
-e BITBUCKET_AUTH_TOKEN=your-token \
markdrew/bitbucket-mcp:latest
Your MCP client should launch the container and communicate with it over stdin/stdout.
The examples below show how to add this MCP server to various clients. Each one launches a Docker container that:
--pull=always — pulls the latest image every time, so you always run the newest version--rm — automatically removes the container when it exits (no leftover stopped containers)-i — keeps stdin open so the MCP client can communicate with the server over stdio-e VAR — forwards the named environment variable from the host into the containerThe env block in each config sets the actual values. Replace the placeholders with your Bitbucket credentials.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"bitbucket": {
"command": "docker",
"args": [
"run", "--pull=always", "--rm", "-i",
"-e", "BITBUCKET_REPO_SLUG",
"-e", "BITBUCKET_WORKSPACE",
"-e", "BITBUCKET_AUTH_TOKEN",
"markdrew/bitbucket-mcp:latest"
],
"env": {
"BITBUCKET_AUTH_TOKEN": "your-token",
"BITBUCKET_REPO_SLUG": "your-repo",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
}
Add to .cursor/mcp.json in your project root (project-scoped) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"bitbucket": {
"command": "docker",
"args": [
"run", "--pull=always", "--rm", "-i",
"-e", "BITBUCKET_REPO_SLUG",
"-e", "BITBUCKET_WORKSPACE",
"-e", "BITBUCKET_AUTH_TOKEN",
"markdrew/bitbucket-mcp:latest"
],
"env": {
"BITBUCKET_AUTH_TOKEN": "your-token",
"BITBUCKET_REPO_SLUG": "your-repo",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
}
Add to .vscode/mcp.json in your project root (workspace) or open via the Command Palette → "MCP: Open User Configuration" (global):
{
"servers": {
"bitbucket": {
"command": "docker",
"args": [
"run", "--pull=always", "--rm", "-i",
"-e", "BITBUCKET_REPO_SLUG",
"-e", "BITBUCKET_WORKSPACE",
"-e", "BITBUCKET_AUTH_TOKEN",
"markdrew/bitbucket-mcp:latest"
],
"env": {
"BITBUCKET_AUTH_TOKEN": "your-token",
"BITBUCKET_REPO_SLUG": "your-repo",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
}
Add to your Warp MCP settings (Settings → MCP):
{
"bitbucket": {
"command": "docker",
"args": [
"run", "--pull=always", "--rm", "-i",
"-e", "BITBUCKET_REPO_SLUG",
"-e", "BITBUCKET_WORKSPACE",
"-e", "BITBUCKET_AUTH_TOKEN",
"markdrew/bitbucket-mcp:latest"
],
"env": {
"BITBUCKET_AUTH_TOKEN": "your-token",
"BITBUCKET_REPO_SLUG": "your-repo",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
The underlying module includes Bitbucket-oriented capabilities such as:
Exact tool exposure depends on how lucli mcp bitbucket presents the module in your MCP client.
If you want a general-purpose CLI/pipeline image instead of an MCP server, use markdrew/bitbucket-lucli.
Content type
Image
Digest
sha256:c44547296…
Size
183.2 MB
Last updated
21 days ago
docker pull markdrew/bitbucket-mcp