npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bitbucket-tool-mcp

v0.1.0

Published

MCP server for Bitbucket Cloud — pull requests, pipelines, branches, and code review

Readme

bitbucket-tool-mcp

MCP server for Bitbucket Cloud. Gives AI assistants (Claude, Cursor, etc.) direct access to pull requests, pipelines, branches, commits, and code review workflows.

Tools

| Tool | Description | |------|-------------| | list_repositories | List repositories in a workspace | | list_branches | List branches in a repository | | get_branch | Get branch details and latest commit | | create_branch | Create a branch from a commit or branch | | delete_branch | Delete a branch | | list_pull_requests | List PRs, filterable by state | | get_pull_request | Get PR details (title, branches, author, status) | | create_pull_request | Create a new PR | | update_pull_request | Update PR title, description, or destination | | decline_pull_request | Decline (close) a PR | | get_pull_request_diff | Get raw unified diff for a PR | | get_pull_request_comments | Get all comments including inline code review | | add_pull_request_comment | Add a comment to a PR | | list_pipelines | List recent pipeline runs | | get_pipeline | Get pipeline details and steps | | get_pipeline_step_log | Get raw log output for a pipeline step | | trigger_pipeline | Trigger a pipeline on a branch or tag | | list_commits | List recent commits | | get_commit | Get commit details |

Installation

Claude Desktop / Claude Code

Add to your MCP config (~/.claude.json or Claude Desktop settings):

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": ["-y", "bitbucket-tool-mcp"],
      "env": {
        "BITBUCKET_TOKEN": "your-api-token",
        "BITBUCKET_WORKSPACE": "your-workspace"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": ["-y", "bitbucket-tool-mcp"],
      "env": {
        "BITBUCKET_TOKEN": "your-api-token",
        "BITBUCKET_WORKSPACE": "your-workspace"
      }
    }
  }
}

Other MCP clients

Any MCP client that supports stdio transport works. Run the server directly:

BITBUCKET_TOKEN=your-token npx bitbucket-tool-mcp

Authentication

API Token (recommended)

Set BITBUCKET_TOKEN to a Bitbucket API token or workspace access token. The token needs read/write access to repositories, pull requests, and pipelines depending on which tools you use.

export BITBUCKET_TOKEN="your-api-token"

OAuth 2.0

For OAuth flows, set both client ID and secret. Create an OAuth consumer in your Bitbucket workspace settings under OAuth consumers.

export BITBUCKET_OAUTH_CLIENT_ID="your-client-id"
export BITBUCKET_OAUTH_CLIENT_SECRET="your-client-secret"

Configuration

| Environment variable | Required | Description | |---------------------|----------|-------------| | BITBUCKET_TOKEN | Yes* | API token for Bearer auth | | BITBUCKET_OAUTH_CLIENT_ID | Yes* | OAuth 2.0 client ID | | BITBUCKET_OAUTH_CLIENT_SECRET | Yes* | OAuth 2.0 client secret | | BITBUCKET_WORKSPACE | No | Default workspace (can also be passed per tool call) |

*One auth method required: either BITBUCKET_TOKEN or both OAuth variables.

Local Development

git clone https://github.com/riotbyte-com/bitbucket-tool.git
cd bitbucket-tool
npm install
npm run build

# Run tests
npm test

# Run with MCP Inspector for interactive testing
npx @modelcontextprotocol/inspector node packages/mcp-server/dist/index.js

License

MIT