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.
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-serverRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install Bitbucket Server MCP Server in Claude Code
{
"mcpServers": {
"bitbucket-server-mcp-server": {
"args": [
"-y",
"@garc33/bitbucket-server-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Bitbucket Server MCP Server in Claude Desktop
{
"mcpServers": {
"bitbucket-server-mcp-server": {
"args": [
"-y",
"@garc33/bitbucket-server-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"bitbucket-server-mcp-server": {
"args": [
"-y",
"@garc33/bitbucket-server-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
Step-by-step: install Bitbucket Server MCP Server in VS Code
codex mcp add bitbucket-server-mcp-server -- npx -y @garc33/bitbucket-server-mcp-server{
"mcpServers": {
"bitbucket-server-mcp-server": {
"args": [
"-y",
"@garc33/bitbucket-server-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Bitbucket Server MCP Server in Antigravity CLI
gemini mcp add bitbucket-server-mcp-server npx -y @garc33/bitbucket-server-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install Bitbucket Server MCP Server in Gemini CLI
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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
