atlassian-dc-mcp-bitbucket — Claude Code MCP server: features
Connect Claude Code to Bitbucket Data Center to work with repositories and code. You’ll need a Bitbucket host and an API token.
claude mcp add --env ATLASSIAN_DC_MCP_CONFIG_FILE=<ATLASSIAN_DC_MCP_CONFIG_FILE> --env BITBUCKET_HOST=<BITBUCKET_HOST> --env BITBUCKET_API_BASE_PATH=<BITBUCKET_API_BASE_PATH> --env BITBUCKET_API_TOKEN=<BITBUCKET_API_TOKEN> --transport stdio atlassian-dc-mcp-bitbucket -- npx -y @atlassian-dc-mcp/bitbucketWhat atlassian-dc-mcp-bitbucket does
This MCP server connects Claude Code to Bitbucket Data Center. You can ask an agent to work with repositories and code there. It runs through the @atlassian-dc-mcp/bitbucket package using npx.
Provide BITBUCKET_API_TOKEN to authenticate; set the server address and API path with BITBUCKET_HOST and BITBUCKET_API_BASE_PATH. You can also run npx @atlassian-dc-mcp/bitbucket setup to enter the connection details and test them. Add the server to Claude Code with claude mcp add. A reachable Bitbucket host and a valid token are required for the connection to work.
What it helps with
- connect Claude Code to Bitbucket Data Center
- access Bitbucket repositories through an agent
- ask an agent to inspect code in Bitbucket
Example prompts for the agent
- Inspect the code in this Bitbucket repository and explain how the module works.
- Find the repository code related to authentication in Bitbucket.
- Look through the Bitbucket repository and locate its API integration.
How to install atlassian-dc-mcp-bitbucket
Platform CLI
claude mcp add --env ATLASSIAN_DC_MCP_CONFIG_FILE=<ATLASSIAN_DC_MCP_CONFIG_FILE> --env BITBUCKET_HOST=<BITBUCKET_HOST> --env BITBUCKET_API_BASE_PATH=<BITBUCKET_API_BASE_PATH> --env BITBUCKET_API_TOKEN=<BITBUCKET_API_TOKEN> --transport stdio atlassian-dc-mcp-bitbucket -- npx -y @atlassian-dc-mcp/bitbucketReplace <…> with your own values
Platform CLI
codex mcp add atlassian-dc-mcp-bitbucket --env ATLASSIAN_DC_MCP_CONFIG_FILE=<ATLASSIAN_DC_MCP_CONFIG_FILE> --env BITBUCKET_HOST=<BITBUCKET_HOST> --env BITBUCKET_API_BASE_PATH=<BITBUCKET_API_BASE_PATH> --env BITBUCKET_API_TOKEN=<BITBUCKET_API_TOKEN> -- npx -y @atlassian-dc-mcp/bitbucketReplace <…> with your own values
Config file
{
"mcpServers": {
"atlassian-dc-mcp-bitbucket": {
"command": "npx",
"args": [
"-y",
"@atlassian-dc-mcp/bitbucket"
],
"env": {
"ATLASSIAN_DC_MCP_CONFIG_FILE": "<ATLASSIAN_DC_MCP_CONFIG_FILE>",
"BITBUCKET_HOST": "<BITBUCKET_HOST>",
"BITBUCKET_API_BASE_PATH": "<BITBUCKET_API_BASE_PATH>",
"BITBUCKET_API_TOKEN": "<BITBUCKET_API_TOKEN>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"atlassian-dc-mcp-bitbucket": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@atlassian-dc-mcp/bitbucket"
],
"env": {
"ATLASSIAN_DC_MCP_CONFIG_FILE": "<ATLASSIAN_DC_MCP_CONFIG_FILE>",
"BITBUCKET_HOST": "<BITBUCKET_HOST>",
"BITBUCKET_API_BASE_PATH": "<BITBUCKET_API_BASE_PATH>",
"BITBUCKET_API_TOKEN": "<BITBUCKET_API_TOKEN>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e ATLASSIAN_DC_MCP_CONFIG_FILE=<ATLASSIAN_DC_MCP_CONFIG_FILE> -e BITBUCKET_HOST=<BITBUCKET_HOST> -e BITBUCKET_API_BASE_PATH=<BITBUCKET_API_BASE_PATH> -e BITBUCKET_API_TOKEN=<BITBUCKET_API_TOKEN> atlassian-dc-mcp-bitbucket npx -y @atlassian-dc-mcp/bitbucketReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about atlassian-dc-mcp-bitbucket
How do I install atlassian-dc-mcp-bitbucket in Claude Code?
Run claude mcp add atlassian-dc-mcp-bitbucket -e BITBUCKET_API_TOKEN=<BITBUCKET_API_TOKEN> -- npx -y @atlassian-dc-mcp/bitbucket. Supply a valid Bitbucket API token.
What does atlassian-dc-mcp-bitbucket do?
It connects an agent to repositories and code in Bitbucket Data Center through MCP. The server runs from the @atlassian-dc-mcp/bitbucket package.
What credentials are needed to connect to Bitbucket Data Center?
You need the Bitbucket host and an API token. Provide them through BITBUCKET_HOST and BITBUCKET_API_TOKEN, or enter the connection details during package setup.