MCP server for Bitbucket API integration - supports both Cloud and Server
Drift inferred · capture-to-capture
No drift recorded — single capability capture; advisories appear once its surface changes.
tools
-
add_comment
Add general, inline, threaded, or suggestion comments to a PR
-
convert_pr_item
Convert a comment to a task (direction: "to_task") or back ("to_comment")
-
create_pr_task
Create a new task on a pull request
-
create_pull_request
Create new pull requests
-
decline_pull_request
Decline/reject a pull request
-
delete_branch
Delete a branch
-
delete_comment
Delete a comment from a pull request
-
delete_pr_task
Delete a task from a pull request
-
find_in_files
Content search via file listing + raw-content fan-out. Full PCRE regex; works on languages or branches Bitbucket's index does not cover; with rate-limit detection and honest scan diagnostics
-
get_branch
Detailed branch info including associated PRs and stats
-
get_commit_detail
Get the structured diff for a specific commit by SHA
-
get_file_blame
Per-line blame: who last modified each line, commit hash, and author timestamp (Bitbucket Server only)
-
get_file_content
Get file content with smart truncation for large files
-
get_pull_request
Full PR details including comments, file changes, and merge info
-
get_pull_request_diff
Structured line-by-line diff with ADDED/REMOVED/CONTEXT types
-
list_branch_commits
List commits in a branch with date/author/message filters
-
list_branches
List branches with filtering and pagination
-
list_directory_content
List files and directories in a repository path
-
list_pr_commits
List all commits in a pull request
-
list_pr_tasks
List all tasks on a pull request
-
list_projects
List all accessible Bitbucket projects/workspaces
-
list_pull_requests
List PRs with filters (state, author, pagination)
-
list_repositories
List repositories in a project or across all accessible projects
-
merge_pull_request
Merge pull requests with various strategies
-
search_code
Index-backed code search with Bitbucket modifiers (lang:, ext:, path:, archived:, fork:, -term), client-side regex_filter post-filter, snake_case ↔ camelCase fanout, and an index-reach probe that surf
-
search_files
Search for files by glob pattern (case-insensitive, like VS Code Ctrl+P)
-
search_repositories
Search for repositories by name, slug, or description
-
set_pr_approval
Approve (approved: true) or unapprove (approved: false) a PR
-
set_pr_task_status
Mark a task done (done: true) or reopen it (done: false)
-
set_review_status
Request changes (request_changes: true) or remove the request (false)
-
update_pr_task
Update the text of an existing task
-
update_pull_request
Update PR details (title, description, reviewers, destination branch)
last analysis: fetch-failed · showing evidence from the last successful analysis (3d ago)
filesystem 2
- fs package/build/handlers/pull-request-handlers.js :5
import { existsSync } from 'fs'; - fs package/build/utils/api-client.js :3
import { createReadStream } from 'fs';
network 1
- net package/build/utils/api-client.js :1
import axios from 'axios';
secrets 1
- secrets package/build/index.js :16
const BITBUCKET_APP_PASSWORD = process.env.BITBUCKET_APP_PASSWORD;
declared dependencies 7
- @modelcontextprotocol/sdk@^1.12.1
- axios@^1.10.0
- form-data@^4.0.4
- minimatch@9.0.5
- @types/minimatch@^5.1.2
- @types/node@^22.15.29
- typescript@^5.8.3