Atlassian Bitbucket MCP Server

Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via

Local serverstdioTypeScript

What is the Atlassian Bitbucket MCP server?

Connect Atlassian Bitbucket to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through. The atlassian bitbucket mcp server is what makes that connection.

What the server does

A Node.js/TypeScript Model Context Protocol (MCP) server for Atlassian Bitbucket Cloud. Enables AI systems (e.g., LLMs like Claude or Cursor AI) to securely interact with your repositories, pull requests, workspaces, and code in real time.

Model Context Protocol (MCP) is an open standard for securely connecting AI systems to external tools and data sources. This server implements MCP for Bitbucket Cloud, enabling AI assistants to interact with your Bitbucket data programmatically.

  • Minimal Input, Maximum Output — Simple identifiers provide comprehensive details without requiring extra flags
  • Rich Code Visualization — Get detailed insights into code changes with file statistics, diff views, and smart context
  • Secure Local Authentication — Run locally with your credentials, never storing tokens on remote servers
  • Intuitive Markdown Responses — Well-structured, consistent Markdown formatting for all outputs
  • Full Bitbucket Integration — Access workspaces, repositories, pull requests, comments, code search, and more

Installation

The server ships on npm as @aashari/mcp-server-atlassian-bitbucket, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • bb_ls_workspaces — Lists available workspaces (query: str opt). Use: View accessible workspaces
  • bb_get_workspace — Gets workspace details (workspaceSlug: str req). Use: View workspace information
  • bb_ls_repos — Lists repositories (workspaceSlug: str opt, projectKey: str opt, query: str opt, role: str opt). Use: Find repositories
  • bb_get_repo — Gets repository details (workspaceSlug: str req, repoSlug: str req). Use: Access repo information
  • bb_search — Searches Bitbucket content (workspaceSlug: str req, query: str req, scope: str opt, language: str opt, extension: str opt). Use: Find code or PRs
  • bb_ls_prs — Lists pull requests (workspaceSlug: str req, repoSlug: str req, state: str opt). Use: View open or merged PRs
  • bb_get_pr — Gets PR details (workspaceSlug: str req, repoSlug: str req, prId: str req). Use: View PR details with diffs
  • bb_ls_pr_comments — Lists PR comments (workspaceSlug: str req, repoSlug: str req, prId: str req). Use: View PR discussions
  • bb_add_pr_comment — Adds comment to PR (workspaceSlug: str req, repoSlug: str req, prId: str req, content: str req, inline: obj opt). Use: Add feedback to PRs
  • bb_add_pr — Creates a PR (workspaceSlug: str req, repoSlug: str req, title: str req, sourceBranch: str req, targetBranch: str opt). Use: Create new PRs
  • bb_add_branch — Creates a branch (workspaceSlug: str req, repoSlug: str req, newBranchName: str req, sourceBranchOrCommit: str opt). Use: Create a feature branch
  • bb_clone_repo — Clones a repository (workspaceSlug: str req, repoSlug: str req, targetPath: str req). Use: Clone code locally

Credentials and setup notes

Configuration is passed through the environment: ATLASSIAN_BITBUCKET_USERNAME, ATLASSIAN_BITBUCKET_APP_PASSWORD, ATLASSIAN_SITE_NAME, ATLASSIAN_USER_EMAIL, ATLASSIAN_API_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js (>=18.x): Download - Bitbucket Cloud Account

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Atlassian Bitbucket.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Atlassian Bitbucket's toolset — bb_ls_workspaces, bb_get_workspace, bb_ls_repos and 11 more — is a fair guide to whether it matches your workflow. It is maintained by askanuradha; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
bb_ls_workspacesLists available workspaces (query: str opt). Use: View accessible workspaces.
bb_get_workspaceGets workspace details (workspaceSlug: str req). Use: View workspace information.
bb_ls_reposLists repositories (workspaceSlug: str opt, projectKey: str opt, query: str opt, role: str opt). Use: Find repositories.
bb_get_repoGets repository details (workspaceSlug: str req, repoSlug: str req). Use: Access repo information.
bb_searchSearches Bitbucket content (workspaceSlug: str req, query: str req, scope: str opt, language: str opt, extension: str opt). Use: Find code or PRs.
bb_ls_prsLists pull requests (workspaceSlug: str req, repoSlug: str req, state: str opt). Use: View open or merged PRs.
bb_get_prGets PR details (workspaceSlug: str req, repoSlug: str req, prId: str req). Use: View PR details with diffs.
bb_ls_pr_commentsLists PR comments (workspaceSlug: str req, repoSlug: str req, prId: str req). Use: View PR discussions.
bb_add_pr_commentAdds comment to PR (workspaceSlug: str req, repoSlug: str req, prId: str req, content: str req, inline: obj opt). Use: Add feedback to PRs.
bb_add_prCreates a PR (workspaceSlug: str req, repoSlug: str req, title: str req, sourceBranch: str req, targetBranch: str opt). Use: Create new PRs.
bb_add_branchCreates a branch (workspaceSlug: str req, repoSlug: str req, newBranchName: str req, sourceBranchOrCommit: str opt). Use: Create a feature branch.
bb_clone_repoClones a repository (workspaceSlug: str req, repoSlug: str req, targetPath: str req). Use: Clone code locally.
bb_get_commit_historyGets commit history (workspaceSlug: str req, repoSlug: str req, revision: str opt, path: str opt). Use: View code history.
bb_get_fileGets file content (workspaceSlug: str req, repoSlug: str req, filePath: str req, revision: str opt). Use: View specific file.

How to install the Atlassian Bitbucket MCP server

{
	"mcpServers": {
		"bitbucket": {
			"command": "npx",
			"args": ["-y", "@aashari/mcp-server-atlassian-bitbucket"]
		}
	}
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js (>=18.x): Download - Bitbucket Cloud Account
VariableDescriptionRequired
ATLASSIAN_BITBUCKET_USERNAMEConfiguration value read at startup.Optional
ATLASSIAN_BITBUCKET_APP_PASSWORDConfiguration value read at startup.Optional
ATLASSIAN_SITE_NAMEConfiguration value read at startup.Optional
ATLASSIAN_USER_EMAILConfiguration value read at startup.Optional
ATLASSIAN_API_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Atlassian Bitbucket to bb ls workspaces.
  • Use Atlassian Bitbucket to bb get workspace.
  • Use Atlassian Bitbucket to bb ls repos.

Frequently asked questions

It connects Atlassian Bitbucket to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (bb_ls_workspaces, bb_get_workspace, bb_ls_repos, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Atlassian Bitbucket directly.