A Model Context Protocol (MCP) server that provides integration with Bitbucket API for repositories, pull requests, and issues management.
- List and get repository details
- Manage pull requests (list, get details, create)
- Browse issues
- Full TypeScript support
- Error handling and validation
- Install dependencies:
npm install- Set up authentication:
cp .env.example .env
# Edit .env with your Bitbucket credentials- Build the project:
npm run build- Run the server:
npm startCreate a Bitbucket App Password:
- Go to https://bitbucket.org/account/settings/app-passwords/
- Create a new app password with required permissions:
- Repositories: Read, Write
- Pull requests: Read, Write
- Issues: Read, Write
bitbucket_list_repositories- List repositories in a workspacebitbucket_get_repository- Get repository details
bitbucket_list_pull_requests- List pull requestsbitbucket_get_pull_request- Get pull request detailsbitbucket_create_pull_request- Create a new pull request
bitbucket_list_issues- List repository issues
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bitbucket": {
"command": "node",
"args": ["/path/to/bitbucket-mcp-server/build/index.js"],
"env": {
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_APP_PASSWORD": "your-app-password"
}
}
}
}Add this to your Cursor settings:
- Open Cursor settings (Cmd/Ctrl + ,)
- Search for "MCP" or go to Extensions > MCP
- Add a new server configuration:
{
"name": "bitbucket",
"command": "node",
"args": ["/path/to/bitbucket-mcp-server/build/index.js"],
"env": {
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_APP_PASSWORD": "your-app-password"
}
}# Development mode with auto-reload
npm run dev
# Type checking
npm run typecheck
# Linting
npm run lint