bitbucket-standalone-mcp
Provides tools for interacting with a Bitbucket Server / Data Center instance, enabling management of projects, repositories, branches, pull requests, comments, diffs, commits, files, search, and build statuses.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bitbucket-standalone-mcpshow open pull requests in the PROJ project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bitbucket-standalone-mcp
A standalone Model Context Protocol (MCP)
server that exposes the REST v1.0 API of a Bitbucket Server / Data Center
(standalone) instance as MCP tools. Built for the local VCS at
http://vcs.tiddev.com (Bitbucket Server 7.12.1).
Runtime: Node.js 18+ (ESM, TypeScript)
Transport: stdio MCP
Auth: HTTP Basic (
BITBUCKET_USERNAME/BITBUCKET_PASSWORD)API base:
/rest/api/1.0(Bitbucket Server 7.x)
Why standalone
Bitbucket Server / Data Center (the "standalone" on-prem product, formerly
Bitbucket Server) speaks REST /rest/api/1.0 with Basic auth — not the
/rest/api/2.0 + HTTP-API-token flow of Bitbucket Cloud. This server targets
the Server product only.
Related MCP server: Bitbucket MCP Server
Build
npm install
npm run buildOutput lands in dist/. The entrypoint is dist/index.js.
Run
BITBUCKET_URL=http://vcs.tiddev.com \
BITBUCKET_USERNAME=<user> \
BITBUCKET_PASSWORD=<app-password> \
node dist/index.jsBITBUCKET_URL defaults to http://vcs.tiddev.com when unset.
Smoke test (no credentials required)
tools/list needs no auth, so the server can be verified offline:
node scripts/smoke.mjsPrints OK: 40 tools and lists every tool name. Tool invocations (e.g.
bb_list_projects) do require valid credentials.
Inspector (interactive)
npm run inspectRegistering with opencode
The server is registered in D:\Work\.opencode\opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"bitbucket-standalone-mcp": {
"type": "local",
"command": ["node", "D:\\Work\\bitbucket-standalone-mcp\\dist\\index.js"],
"enabled": true,
"environment": {
"BITBUCKET_URL": "http://vcs.tiddev.com",
"BITBUCKET_USERNAME": "<user>",
"BITBUCKET_PASSWORD": "<app-password>"
}
}
}
}Replace
REPLACE_WITH_USERNAME/REPLACE_WITH_PASSWORDin the real config with actual credentials before use. After editingopencode.json, quit and restart opencode — config is loaded once at startup and not hot-reloaded.
Catalog
~30 tools, namespaced bb_*. Replies are JSON or raw diff/file text.
Projects & repositories
Tool | Purpose |
| List projects (filter, paginated) |
| List repos (per-project or server-wide, filter, paginated) |
| Full repo details: state, default branch, clone URLs, web link |
| Create repo under a project (fork support) |
Branches
bb_list_branches, bb_get_branch, bb_create_branch, bb_delete_branch
Pull requests
bb_list_pull_requests (state/author/reviewer/text filters),
bb_get_pull_request, bb_create_pull_request, bb_update_pull_request
(title/description/reviewers), bb_merge_pull_request (noFF / fastForward /
squash / rebase / squashAndRebase / mergeAndLog / rebaseMessageMerge),
bb_decline_pull_request, bb_approve_pull_request,
bb_unapprove_pull_request
Comments
bb_list_pull_request_comments, bb_create_pull_request_comment (inline
anchors via anchoredTo or replies via parentCommentId),
bb_update_comment, bb_delete_comment, bb_resolve_comment
Diffs
bb_get_diff(from, until), bb_get_diff_summary, bb_get_pull_request_diff,
bb_get_pull_request_diff_summary
Commits
bb_get_commit, bb_list_commits (per-branch), bb_get_commit_diff,
bb_get_commit_parents
Files (in-repo read/write)
bb_list_directory, bb_get_file, bb_raw_file (full content),
bb_get_file_metadata, bb_create_file, bb_update_file, bb_delete_file
Search
bb_search_repositories, bb_search_code (text + project/repo/branch/path/date filters)
Builds / pipeline
bb_list_commit_builds (CI status per commit)
Admin
bb_application_properties (server version / connectivity check)
Pagination
List tools accept limit (default 25, max 100) and start (zero-based
offset). The first page is returned in one call; fetch the next page by
passing start = values.length.
Repository layout
bitbucket-standalone-mcp/
├─ src/
│ ├─ index.ts # McpServer wiring: registers every tool
│ ├─ client.ts # REST client (Basic auth, pagination, paths helper)
│ └─ tools/
│ ├─ types.ts # AnyToolDefinition contract + repoKeys helper
│ ├─ admin.ts branches.ts commits.ts comments.ts diffs.ts
│ ├─ files.ts pipelines.ts pull-requests.ts repos.ts search.ts
├─ dist/ # compiled JS (output of `npm run build`)
└─ scripts/smoke.mjs # offline tools/list smoke testCloud vs. Server: what's not here
This targets Server/Data Center only. Bitbucket Cloud features
(.rest/api/2.0 HTTP-token auth, branch status, pullrequest-task, GSSO) are
out of scope. npm run inspect + git clone the server for live
exploration.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceFacilitates interaction with Bitbucket Server for pull request management using the MCP protocol, supporting operations such as creating, merging, commenting, and reviewing pull requests.1566Apache 2.0
- AlicenseBqualityDmaintenanceAn MCP server that provides tools for interacting with the Bitbucket API, supporting both Bitbucket Cloud and Bitbucket Server, enabling pull request, branch, file, code review, and search operations.195,234MIT
- AlicenseNot gradedqualityBmaintenanceEnables interaction with Bitbucket Server/Data Center (Stash) for project and repository discovery, pull request management, code review, and code search.10MIT
- AlicenseBqualityBmaintenanceMCP server for Bitbucket Server integration, enabling project, repository, pull request, source code, branch, and code review operations via the Bitbucket Server APIs.2713MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)
GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jabdon00/bitbucket-standalone-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server