Connect AI assistants to Bitbucket Cloud with 25+ tools for repositories, pull requests, branches, commits, issues, pipelines, and code search.
Everything you need to interact with Bitbucket through AI assistants
Create, list, update, and delete repositories. Manage forks and access files.
Full PR lifecycle: create, review, comment, approve, and merge.
Create and manage issues with priorities, assignees, and states.
Trigger, monitor, and control CI/CD pipeline runs.
Search across all repositories in your workspace.
Secure auth with automatic token refresh.
Install the package globally or use npx to run it directly
# Using npm
npm install -g @lexmata/bitbucket-mcp
# Using pnpm
pnpm add -g @lexmata/bitbucket-mcp
# Or run directly with npx
npx @lexmata/bitbucket-mcp
Choose your preferred authentication method
http://localhost:9876/callbacknode scripts/oauth-flow.js "CLIENT_ID" "CLIENT_SECRET"
BITBUCKET_USERNAME=your-username
BITBUCKET_ACCESS_TOKEN=app-password
Add to your Claude Desktop or Cursor configuration file
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["@lexmata/bitbucket-mcp"],
"env": {
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_ACCESS_TOKEN": "your-app-password"
}
}
}
}
~/.cursor/mcp.json
~/Library/.../Claude/
~/.config/Claude/
25+ tools covering all major Bitbucket operations
| Tool | Description |
|---|---|
| list_repositories | List repositories in a workspace |
| get_repository | Get details of a specific repository |
| create_repository | Create a new repository |
| delete_repository | Delete a repository |
| list_repository_forks | List all forks of a repository |
| get_file_content | Get the content of a file |
Access Bitbucket data through standardized resource URIs
bitbucket://repository/{workspace}/{repo}
bitbucket://pullrequest/{workspace}/{repo}/{id}
bitbucket://file/{workspace}/{repo}/{path}