a2a mcp
☰
Back to MCP Servers
Bitbucket MCP logo
mcp-server666

Bitbucket MCP

Model Context Protocol (MCP) server for Bitbucket Cloud and Server that lets AI assistants like Cursor manage repositories, pull requests, pipelines, and more through natural language.

Bitbucket MCP preview

Overview

Bitbucket MCP is an open-source Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Bitbucket Server/Data Center APIs. It enables AI assistants (such as Cursor) to interact securely with your Bitbucket repositories, pull requests, pipelines, and other resources directly through natural language prompts.

This server implements the MCP standard and is published on npm as bitbucket-mcp.

Features

  • Repository operations: list repositories and retrieve details
  • Pull request lifecycle: list, get, create, update, merge, approve, decline, add/view comments, diffs, and tasks
  • Pipeline operations: list runs, trigger/stop pipelines, view steps and logs
  • Pagination support (pagelen, page, all, limit)
  • Safe-by-default design: DELETE operations are disabled unless BITBUCKET_ENABLE_DANGEROUS=true is explicitly set

Supported Operations

The server exposes tools for common Bitbucket workflows including repository browsing, PR management, code review automation, and pipeline monitoring. Full tool list and API mappings are defined in the source.

Security & Best Practices

  • Requires Bitbucket app passwords (or access tokens) with minimal scopes (Repositories: Read; Pull requests: Read/Write; Pipelines: Read)
  • No DELETE operations enabled by default
  • Configurable logging (file-based or disabled)
  • Supports both Bitbucket Cloud (https://api.bitbucket.org/2.0) and self-hosted Bitbucket Server via configurable BITBUCKET_URL

Compatibility

Works with any MCP-compatible AI runtime. Primary integration examples focus on Cursor, with support for Bitbucket Cloud and Server.

MCP Setup

Prerequisites

  • Node.js required (for npx/npm)
  • Bitbucket account with app password or access token

Access requirements

  • Bitbucket app password (Repositories: Read, Pull requests: Read/Write, Pipelines: Read) or access token required via environment variables

Client setup

Cursor

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "env": {
        "BITBUCKET_URL": "https://api.bitbucket.org/2.0",
        "BITBUCKET_WORKSPACE": "your-workspace",
        "BITBUCKET_USERNAME": "your-username",
        "BITBUCKET_PASSWORD": "your-app-password"
      },
      "args": ["-y", "bitbucket-mcp@latest"]
    }
  }
}
  • Create or edit .cursor/mcp.json in your project root.
  • Paste the config block above and replace placeholders (your-workspace, your-username, your-app-password) with your actual values.

Auth:

  • Credentials are passed via environment variables in the MCP config. No browser sign-in or additional authorization steps required.

Legacy URL format (https://bitbucket.org/your-workspace) also supported for workspace auto-detection.

Claude Code

Not documented

Claude Desktop

Not documented

VS Code

Not documented

Codex

Not documented

Windsurf

Not documented

Lovable

Not documented

Other

Run via npx -y bitbucket-mcp@latest with required environment variables (see envVars). Configure in your MCP client using stdio/command transport.

Environment variables

  • BITBUCKET_URL (defaults to https://api.bitbucket.org/2.0)
  • BITBUCKET_WORKSPACE (optional, auto-detected from URL in legacy mode)
  • BITBUCKET_USERNAME (your Bitbucket email/username)
  • BITBUCKET_PASSWORD (app password or API token)
  • BITBUCKET_TOKEN (alternative to username/password)

Setup docs: https://github.com/MatanYemini/bitbucket-mcp

Tags

mcp-serverbitbucketnodejspull-requestspipelinesrepositoriesai-integration

Related Entries

Keep exploring similar tools and resources in this category.

Browse MCP Servers
Hyper3D MCP logo

Hyper3D MCP

MCP Servers

Hyper3D MCP is Hyper3D's hosted Rodin MCP server for creating 3D assets from natural-language instructions or supported references, checking asynchronous generation progress, and retrieving model download links inside AI coding clients. Official setup is documented for Codex, Claude Code, and Kimi Code CLI.

Semrush MCP Server logo

Semrush MCP Server

MCP Servers

Semrush MCP connects AI assistants to Semrush APIs for keyword, backlink, website traffic and market research.

Browserbase MCP Server logo

Browserbase MCP Server

MCP Servers

Browserbase MCP gives AI agents browser automation tools powered by Stagehand and Browserbase browser sessions.

SerpApi MCP Server logo

SerpApi MCP Server

MCP Servers

SerpApi MCP exposes search engine results to AI assistants through SerpApi, supporting live research and structured search data retrieval.

Similarweb MCP Server logo

Similarweb MCP Server

MCP Servers

Similarweb MCP brings website traffic and digital market intelligence into AI assistants for competitive research.

AgentQL MCP Server logo

AgentQL MCP Server

MCP Servers

AgentQL MCP connects AI agents to AgentQL web extraction, returning structured information from web pages for research and automation.

a2a mcp

Search the directory

Find entries, skills, articles, and categories. Use arrow keys to select and Enter to open.