Skip to content

Configuration

Configure your MCP client by adding the Bitbucket MCP server block with your credentials.

Section titled “Option A: NPM Global Installation (Recommended)”

After running npm install -g @tugudush/bitbucket-mcp:

Add to .vscode/mcp.json in your project:

{
"servers": {
"bitbucket-mcp": {
"type": "stdio",
"command": "bitbucket-mcp",
"env": {
"BITBUCKET_API_TOKEN": "your-token",
"BITBUCKET_EMAIL": "your@email.com"
}
}
}
}

If you built from source, replace the command with node and point to your built file:

{
"servers": {
"bitbucket-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/bitbucket-mcp/build/index.js"],
"env": {
"BITBUCKET_API_TOKEN": "your-token",
"BITBUCKET_EMAIL": "your@email.com"
}
}
}
}

VariableRequiredDescription
BITBUCKET_API_TOKEN✅ YesYour Atlassian API token
BITBUCKET_EMAIL✅ YesYour Atlassian account email
BITBUCKET_DEFAULT_FORMATNoDefault output format: text (default), json, or toon
BITBUCKET_DEBUGNoSet to true to enable verbose debug logging

See the Output Formats guide for details on BITBUCKET_DEFAULT_FORMAT.


Once configured, try prompting your AI assistant:

Using bitbucket, list all my accessible workspaces

If the server is connected, it will call bb_list_workspaces and return your workspace list.