Skip to content

Configuration

Once downloaded, you need to register the binary with an MCP-compliant application like Claude Desktop, Cursor, or Zed.

Modify your client’s MCP configuration settings to point local invocations to the absolute path of the executable.

{
"mcpServers": {
"bitbucket": {
"command": "/absolute/path/to/bbkt",
"env": {
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_API_TOKEN": "your-api-token"
}
}
}
}

The server provides two ways to authenticate:

Define BITBUCKET_USERNAME and BITBUCKET_API_TOKEN in the env block as presented above. This works best for CI/CD environments or stable headless integrations.

If you omit the credentials, bbkt will dynamically spawn a localized HTTP server and open an interactive authorization window via https://bitbucket.org/site/oauth2/authorize automatically. It will trap the callback to validate connection state.

If running an OAuth flow, ensure you configure BITBUCKET_CLIENT_ID and BITBUCKET_CLIENT_SECRET in the env if using a custom OAuth registration.