To use Bitbucket MCP in Cursor, add a new MCP configuration in Settings > Extensions > Model Context Protocol.
Standard Configuration (using NPX):
Use npx as the command and pass the required environment variables and arguments.
Local Development Configuration:
If you are developing the server locally, point the command to node and the argument to your local build's entry point (e.g., dist/index.js).
// Standard Configuration
"bitbucket": {
"command": "npx",
"env": {
"BITBUCKET_URL": "https://api.bitbucket.org/2.0",
"BITBUCKET_WORKSPACE": "your-workspace",
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_PASSWORD": "your-app-password"
},
"args": ["-y", "bitbucket-mcp@latest"]
}
// Local Build Configuration
"bitbucket-local": {
"command": "node",
"env": {
"BITBUCKET_URL": "https://api.bitbucket.org/2.0",
"BITBUCKET_WORKSPACE": "your-workspace",
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_PASSWORD": "your-app-password"
},
"args": ["/path/to/your/local/bitbucket-mcp/dist/index.js"]
}