Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Bitbucket Server MCP Server

MCP server by garc33 Verified · npm:@garc33

Bitbucket Server MCP Server gives AI assistants tools to manage Bitbucket Server pull requests through the MCP protocol. It covers creating, reviewing, approving, merging and declining pull requests, along with diffs, comments and build statuses.

  • Score 68
  • 69 stars
  • 122 a week
  • Apache-2.0
  • Updated

Install Bitbucket Server MCP Server

Built from the published package, never by AI.

claude mcp add bitbucket-server-mcp-server -- npx -y @garc33/bitbucket-server-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Bitbucket Server MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the bitbucket-server-mcp-server block.

About

Bitbucket Server MCP Server is an MCP server for Bitbucket Server pull request management. It gives an AI assistant tools to list projects and repositories, create, update, get, merge and decline pull requests, add comments, read diffs and reviews, and check build statuses. Configuration uses a Bitbucket URL and an access token, with an optional default project.

Users connect it to an MCP client and can run it with npx or install it through Smithery. Diff output can be truncated per file for large changes. The source describes it for teams that work with Bitbucket Server and want an assistant to handle pull request tasks. It requires Node.js 22 or later.

Written from the project's README and checked against it.

Tools it gives your assistant

  • list_projectsLists accessible Bitbucket projects with pagination.
  • list_repositoriesBrowses repositories within a project or across all accessible projects.
  • create_pull_requestCreates a pull request with title, description, branches and reviewers.
  • update_pull_requestChanges the title, description or reviewers of an existing pull request.
  • get_pull_requestRetrieves pull request status, reviewers, commits and metadata.
  • merge_pull_requestMerges a pull request using merge-commit, squash or fast-forward strategy.
  • decline_pull_requestDeclines a pull request with an optional reason for the author.
  • add_commentAdds comments to a pull request, including threaded replies and drafts.
  • get_diffRetrieves code differences with context lines and per-file truncation.
  • get_build_statusReads build states and CI build URLs for a commit.

What you need

  • Node.js 22 or later
  • A Bitbucket Server instance
  • A Bitbucket access token

Try asking

  • List the open pull requests in my Bitbucket project
  • Show the diff for pull request 42 in the api repository
  • Add a review comment on pull request 15 asking about the tests

Good to know

  • Tools such as merge_pull_request and decline_pull_request change pull request state.
  • Diffs are truncated per file when maxLinesPerFile is set.
  • get_build_status reports API and authentication failures as errors, not empty lists.

Security check

B
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Bitbucket Server MCP Server

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Bitbucket Server MCP Server: common questions

Does it work with Bitbucket Cloud?

The source describes the server as a tool for Bitbucket Server and its API. It does not state support for Bitbucket Cloud.

Can I set a default project so I do not repeat it?

Yes. Set the BITBUCKET_DEFAULT_PROJECT environment variable, or specify the project per command, since it is optional.

Does it support custom headers for proxies or Zero Trust tokens?

Yes. The BITBUCKET_CUSTOM_HEADERS environment variable adds custom headers to all requests.

How do I install Bitbucket Server MCP Server?

In Claude Code run claude mcp add bitbucket-server-mcp-server -- npx -y @garc33/bitbucket-server-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Bitbucket Server MCP Server the official server?

Bitbucket Server MCP Server is published by npm:@garc33 from its verified domain in the official MCP Registry.

Is Bitbucket Server MCP Server free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Bitbucket Server MCP Server safe to use?

It scores 68 of 100. Grades: maintenance B, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.

What are alternatives to Bitbucket Server MCP Server?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Bitbucket Server MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Bitbucket Server MCP Server Install

Add to stack

Loading.