S Bitbucket MCP Server
MCP server by nbhson Verified · npm:@nbhson43
Connects AI assistants to Bitbucket Server (Data Center) through its APIs. Offers 39 tools for projects, repositories, pull requests, comments and code search. Built for developers who use Bitbucket Server with a personal access token.
Install S Bitbucket MCP Server
Built from the published package, never by AI.
claude mcp add s-bitbucket-mcp-server -- npx -y @nbhson43/s-bitbucket-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"s-bitbucket-mcp-server": {
"args": [
"-y",
"@nbhson43/s-bitbucket-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install S Bitbucket MCP Server in Claude Desktop
{
"mcpServers": {
"s-bitbucket-mcp-server": {
"args": [
"-y",
"@nbhson43/s-bitbucket-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"s-bitbucket-mcp-server": {
"args": [
"-y",
"@nbhson43/s-bitbucket-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add s-bitbucket-mcp-server -- npx -y @nbhson43/s-bitbucket-mcp-server{
"mcpServers": {
"s-bitbucket-mcp-server": {
"args": [
"-y",
"@nbhson43/s-bitbucket-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install S Bitbucket MCP Server in Antigravity CLI
gemini mcp add s-bitbucket-mcp-server npx -y @nbhson43/s-bitbucket-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 s-bitbucket-mcp-server block.
About
S Bitbucket MCP Server is a Model Context Protocol server for Bitbucket Server (Data Center) integration. It provides 39 tools that let an AI assistant list projects and repositories, work with branches, commits and tags, review pull requests, manage comments and tasks, read files, and search code. Search covers exact terms and regex patterns through grep.
The server authenticates with a Personal Access Token and reads the Bitbucket URL from environment variables. It can be installed with npx, npm or Docker, and it also has a remote HTTP mode with a health endpoint on port 3000. It is aimed at developers and teams who work with Bitbucket Server and want an assistant to help with pull request and code tasks.
Written from the project's README and checked against it.
Tools it gives your assistant
list_projectsLists all projects the user has access to, with paged results.get_pull_requestsGets pull requests for a repository, filterable by state such as OPEN or MERGED.create_pull_requestCreates a new pull request with optional reviewers.merge_pull_requestMerges a pull request with an optional strategy and message.get_pull_request_diffGets the diff of a pull request for code review, with an optional path filter.add_commentAdds a general, reply, inline or blocker task comment to a pull request.set_review_statusSets the caller's own review status to APPROVED, NEEDS_WORK or UNAPPROVED.get_file_contentGets the raw content of a file, optionally at a given ref.search_codeRuns an index-backed exact-term search across a repository.grepRuns a regex search over file contents across a repository, with glob and context options.
What you need
- Bitbucket Server (Data Center) instance URL
- Personal Access Token (PAT)
- Docker (optional, for container install)
Try asking
- List the open pull requests in PROJ1 my-repo
- Show the diff for pull request 42 in my-repo
- Search my-repo for the term TODO and list matches
Good to know
- Authenticates with a Personal Access Token only.
- search_code only covers files under 512 KiB.
- Built for Bitbucket Server (Data Center).
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to S Bitbucket 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
S Bitbucket MCP Server: common questions
Which Bitbucket version does it support?
The source describes it as an MCP server for Bitbucket Server (Data Center) integration. It is not described as supporting Bitbucket Cloud.
How does it authenticate with Bitbucket?
It uses a Personal Access Token, set in the BITBUCKET_TOKEN environment variable. The Bitbucket URL is set in BITBUCKET_URL.
Can it review pull requests?
Yes. It can get pull request diffs, comments, activities, reviewers and merge status, and it can set the caller's own review status.
How do I install S Bitbucket MCP Server?
In Claude Code run claude mcp add s-bitbucket-mcp-server -- npx -y @nbhson43/s-bitbucket-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is S Bitbucket MCP Server the official server?
S Bitbucket MCP Server is published by npm:@nbhson43 from its verified domain in the official MCP Registry.
Is S Bitbucket MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is S Bitbucket MCP Server safe to use?
It scores 59 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to S Bitbucket MCP Server?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does S Bitbucket 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.
