Version Control · Developer Tools

Bitbucket MCP Server

pdogra1299/bitbucket-mcp-server

MCP server for Bitbucket — built for AI coding agents that need to work with remote repositories as if they were local clones: grep-fast code search, windowed file reads, compact token-efficient responses, and a transport layer that never trips Bitbucket's rate limits.

Install

npx -y @nexus2520/bitbucket-mcp-server

Client configuration

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": [
        "-y",
        "@nexus2520/bitbucket-mcp-server"
      ],
      "env": {
        "BITBUCKET_USERNAME": "<BITBUCKET_USERNAME>",
        "BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>",
        "BITBUCKET_BASE_URL": "<BITBUCKET_BASE_URL>"
      }
    }
  }
}

Environment variables

BITBUCKET_USERNAMEBITBUCKET_TOKENBITBUCKET_BASE_URL
Category
Version Control, Developer Tools
License
MIT
Updated
Oct 6, 2026

Tools (16)

  • grep

    search file contents with full regex, any branch, like ripgrep on a local clone.

  • search_code

    index-backed exact-term search across a whole project in one call (default branch only, case-insensitive, no regex, files <512 KiB, ~1000-result window).

  • search_repositories

    find repos by name/description.

  • get_pull_request

    metadata + reviewer status + merge info in 1 call; include_comments / include_file_changes (default true), include_tasks, comment_limit.

  • list_pull_requests

    repo-scoped; omit repository (Server) for your PRs across all repos in one call (role filter).

  • create_pull_request

    update_pull_request, merge_pull_request, decline_pull_request — all mutations accept version from a prior read (saves a fetch; auto-refetch + retry once on 409…

  • add_comment

    general, threaded reply, inline (file_path + line_number, or code_snippet auto-resolution), code suggestion, or task (severity: "BLOCKER", Server).

  • manage_comment

    edit / delete / resolve / reopen / to_task / to_comment on any comment or task, one call with version.

  • get_pull_request_diff

    raw unified diff text; scope with file_path (server-side), include_patterns/exclude_patterns, context_lines, ignore_whitespace.

  • set_review_status

    APPROVED / NEEDS_WORK / UNAPPROVED (mutually exclusive; one call).

  • list_pr_commits

    list_branch_commits (server-side since-rev/merges filters; bounded page-walk for client-side author/until/search), get_commit_detail (unified diff, or detail:…

  • list_branches

    get_branch (branch + its PRs), delete_branch (expected_head skips the lookup call).

  • get_file_content

    windowed server-side: start_line/line_count transfer only that window (≤5000 lines/call). full_content / negative start_line for whole-file or tail reads.

  • get_file_blame

    commit-span blame for a line window in 1 call (Server).

  • list_directory_content

    paginated, compact.

  • manage_attachments

    (download capped, delete), list_projects, list_repositories.

Details on this page are taken from the project's README. Open README

Related MCP servers

More servers
core logo

core

opensumi/core

3.3k

A framework helps you quickly build AI Native IDE products.

Version Control
test1 logo

test1

trpc-group/trpc-go

942

tRPC-Go, is the Go language implementation of tRPC, which is a pluggable, high-performance RPC framework.

Version Control
AI-Gateway logo

AI-Gateway

Azure-Samples/AI-Gateway

565

New! The AI Gateway Dev Portal is now live — A starting point for building your own developer portal on top of Azure API Management AI Gateway's. Fork it, open it in VS Code with GitHub Copilot (or any coding agent), and shape it to fit your needs!

Version Control
e2b logo

e2b

e2b-dev/mcp-server

233

Deprecated: This project is no longer actively maintained. It may not receive further updates or bug fixes.

Version Control
MCP Git Ingest logo

MCP Git Ingest

adhikasp/mcp-git-ingest

180

A Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.

Version Control
gitlab mcp logo

gitlab mcp

zereight/gitlab-mcp

70

Documentation → Setup guides, environment variables, and the full tool reference live on the hosted docs site.

Version Control