Bitbucket MCP
Click on "Deploy 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 MCP Find PRs and commits for Jira issue PROJ-123"
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 MCP Server
An MCP server that connects Claude Desktop and Claude Code to Bitbucket Cloud, enabling AI-assisted bug triage, impact analysis from live repository data.
Tools
Tool | Description |
| Find PRs (by title/branch) and commits (by message) linked to a Jira issue key. Searches one repo or all repos in the workspace. |
| Search PRs by keyword — returns details, description, comments, and changed files in one response |
| List modified files with line add/remove counts for a PR number or commit hash |
| Return the full unified diff for a PR or commit, truncated at a line boundary if over 50,000 characters |
| Return the full content of a file at a given branch or commit ref |
| Show commit history for a file — frequency, authors, and dates |
| Find other PRs that touched the same files as a given PR or commit |
| List all repositories in the configured workspace |
Related MCP server: Atlassian Bitbucket MCP Server
Authentication
Bitbucket Cloud uses Basic Auth with a Bitbucket API Token
Go to Bitbucket -> Account Settings -> Security -> API Tokens
Create a Token with Scope
Quick setup (Windows)
Run the setup script — it installs dependencies, builds, prompts for credentials, and registers the server in both Claude Desktop and Claude Code:
powershell -ExecutionPolicy Bypass -File setup.ps1Credentials are written to .env.local (git-ignored). The MCP config entry stays secret-free.
Manual setup
1. Install and build
npm install
npm run build2. Create .env.local
BITBUCKET_WORKSPACE=https://bitbucket.org/your-workspace/workspace/overview/
BITBUCKET_EMAIL=you@example.com
BITBUCKET_API_TOKEN=your_app_password_here3. Register in Claude Desktop
Open %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) and add:
{
"mcpServers": {
"bitbucket": {
"command": "node",
"args": ["C:/path/to/bitbucket-mcp-server/dist/index.js"]
}
}
}Restart Claude Desktop to load the tools.
4. Register in Claude Code
claude mcp add bitbucket node "C:/path/to/bitbucket-mcp-server/dist/index.js" --scope userEnvironment variables
Variable | Required | Description |
| Yes | Full workspace URL or slug (e.g. |
| Yes | Your Atlassian account email |
| Yes | Bitbucket App Password (from account → App passwords) |
Example prompts
"Show me all PRs and commits related to PROJ-123"
"Search PRs mentioning login timeout in repo my-service"
"What files were changed in PR 42 in repo my-service?"
"Get the diff for commit a1b2c3d4 in repo my-service"
"Show me the content of src/auth.ts on the main branch"
"Who has been changing src/payment/processor.ts and how often?"
"Find other PRs that touched the same files as PR 42"
"List all repos in the workspace"Available Tools
8 toolsget_changed_filesB
Get the list of files changed in a pull request or commit, with per-file line add/remove counts.
Inputs: ref (required), repoSlug (required).
get_commit_history_for_fileB
Get the commit history for a specific file, showing who changed it and how frequently.
Inputs: filePath (required), repoSlug (required), limit.
get_diffA
Get the full unified diff for a pull request or commit. Diffs larger than 50,000 characters are truncated at a line boundary.
Inputs: ref (required), repoSlug (required).
get_file_contentA
Get the full content of a file at a given branch name or commit hash. If no ref is given, the repository's default branch is used.
Inputs: filePath (required), repoSlug (required), ref.
list_reposB
List all repositories in the configured Bitbucket workspace.
Inputs: limit.
search_by_jira_idA
Search Bitbucket for PRs and commits related to a Jira issue ID. Finds PRs where the ID appears in the title or source branch name, and commits where it appears in the message.
Inputs: jiraId (required), repoSlug.
search_by_pr_titleA
Search pull requests by keyword in the title. Returns PR details, description, comments, and changed files.
Inputs: query (required), repoSlug (required), state, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: get_changed_files, get_commit_history_for_file, get_diff, get_file_content, get_related_prs, list_repos, search_by_jira_id, search_by_pr_title. No two tools overlap in functionality.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., get_changed_files, list_repos, search_by_jira_id). The verbs (get, list, search) and nouns are clear and predictable.
With 8 tools, the server is well-scoped for its purpose. It covers essential Bitbucket operations without being too sparse or overwhelming.
The tool set lacks fundamental PR operations such as listing PRs, getting a single PR by ID, creating or updating PRs, and commenting. It is read-only and focused on code review and searching, but missing basic CRUD for PRs is a notable gap.
Maintenance
Related MCP Connectors
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn integration tool that enables AI assistants like Claude to directly access and interact with Bitbucket repositories, pull requests, and code without requiring copy/paste operations.69,115 npm163ISC
- AlicenseBqualityBmaintenanceEnables AI assistants to interact with Bitbucket Cloud and self-hosted instances for pull request reviews, code search, repository operations, and managing PR comments and approvals.19GPL 3.0
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Bitbucket Server/Data Center for reviewing pull requests, managing repositories, searching users, and more.149 npm4MIT
- AlicenseNot gradedqualityCmaintenanceEnables pull-request review workflows on Bitbucket Cloud via Claude Code, offering tools to view PR metadata, comments, diffs, and to post comments or approve.6,532 npmMIT