
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
bitbucket-mcp-server
Advanced tools
A Model Context Protocol (MCP) server that provides tools for interacting with Bitbucket repositories, pull requests, issues, and more.
This MCP server provides the following tools for Bitbucket integration:
Clone or download this repository
Install dependencies:
npm install
Build the project:
npm run build
For private repositories and advanced features, set these environment variables:
export BITBUCKET_USERNAME="your-username"
export BITBUCKET_APP_PASSWORD="your-app-password"
To create an app password:
Add this server to your MCP client configuration. For Claude Desktop, add to your claude_desktop_config.json
:
{
"mcpServers": {
"bitbucket": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/bitbucket_mcp/build/index.js"],
"env": {
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_APP_PASSWORD": "your-app-password"
}
}
}
}
{
"mcpServers": {
"bitbucket": {
"command": "node",
"args": ["C:\\ABSOLUTE\\PATH\\TO\\bitbucket_mcp\\build\\index.js"],
"env": {
"BITBUCKET_USERNAME": "your-username",
"BITBUCKET_APP_PASSWORD": "your-app-password"
}
}
}
}
List all repositories in the 'myworkspace' workspace
Get details for the repository 'myworkspace/myrepo'
Show all open pull requests for myworkspace/myrepo
Get detailed information about pull request #123 in myworkspace/myrepo
Add a comment to pull request #123 in myworkspace/myrepo saying "Looks good to me!"
Add an inline comment on line 42 of the new version of src/file.js in pull request #123 saying "This needs optimization"
Add an inline comment on the change between line 25 (old version) and line 28 (new version) in src/file.js in pull request #123
Show all open bugs in myworkspace/myrepo
Show the last 5 commits on the main branch of myworkspace/myrepo
Lists repositories in a Bitbucket workspace.
Parameters:
workspace
(required): Bitbucket workspace namerole
(optional): Filter by user role (owner, admin, contributor, member)sort
(optional): Sort by (created_on, updated_on, name, size)Gets detailed information about a specific repository.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugLists pull requests for a repository.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugstate
(optional): Filter by state (OPEN, MERGED, DECLINED, SUPERSEDED)Gets detailed information about a specific pull request.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugpull_request_id
(required): Pull request IDCreates a comment on a pull request. This tool can create both regular comments and inline comments on specific files and line numbers.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugpull_request_id
(required): Pull request IDcontent
(required): Comment content in plain textfile_path
(optional): Path to the file for inline commentsfrom_line
(optional): Line number in the old version of the file (for inline comments)to_line
(optional): Line number in the new version of the file (for inline comments)Authentication Required: This tool requires BITBUCKET_USERNAME and BITBUCKET_APP_PASSWORD environment variables to be set, and the app password must have "Pull requests: Write" permission.
Lists issues for a repository.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugstate
(optional): Filter by state (new, open, resolved, on hold, invalid, duplicate, wontfix, closed)kind
(optional): Filter by kind (bug, enhancement, proposal, task)Lists branches for a repository.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugGets recent commits for a repository.
Parameters:
workspace
(required): Bitbucket workspace namerepo_slug
(required): Repository name/slugbranch
(optional): Specific branch namelimit
(optional): Number of commits (1-50, default: 10)npm run build
npm run dev
npm start
This server supports both authenticated and unauthenticated requests:
For authentication, use Bitbucket App Passwords (not your account password) for security.
The server logs debug information to stderr. Check your MCP client logs for error messages.
You can test the server directly:
npm run build
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | node build/index.js
ISC
Contributions are welcome! Please feel free to submit issues and pull requests.
FAQs
MCP server for Bitbucket tools and integration
The npm package bitbucket-mcp-server receives a total of 108 weekly downloads. As such, bitbucket-mcp-server popularity was classified as not popular.
We found that bitbucket-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.