Skip to main content
Glama

mcp-bitbucket

Bitbucket Cloud REST API 2.0용 MCP(stdio) 서버입니다. Cursor와 함께 작동합니다: pull request, pipeline, 로그, clone.

도구는 일반적인 bb_get / bb_post / bb_put / bb_patch / bb_delete / bb_clone 세트와 일치합니다.

요구 사항

  • Node.js 18+

  • Atlassian Scoped API Token(앱 비밀번호는 작동하지 않음)

토큰: id.atlassian.com → API tokens.
유용한 범위: 저장소, pull request, pipeline 및 사용자 읽기(read:repository:bitbucket, read:pullrequest:bitbucket, read:pipeline:bitbucket, read:user:bitbucket). 쓰기 작업에는 해당 write:*를 추가하세요.

Related MCP server: Bitbucket Cloud MCP Server

설치

git clone https://github.com/genkis/mcp-bitbucket.git
cd mcp-bitbucket
npm install

.env.example.env로 복사하고 값을 로컬에서 채우세요. .env 파일은 커밋하지 마세요.

Cursor (~/.cursor/mcp.json)

토큰과 이메일은 이 저장소가 아닌 Cursor의 로컬 구성에만 보관하세요.

{
  "mcpServers": {
    "bitbucket": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/mcp-bitbucket/index.js"],
      "env": {
        "ATLASSIAN_USER_EMAIL": "you@example.com",
        "ATLASSIAN_API_TOKEN": "your-scoped-api-token",
        "BITBUCKET_DEFAULT_WORKSPACE": "your-workspace-slug"
      }
    }
  }
}

변경 후 Cursor에서 MCP 서버를 다시 로드하세요.

변수:

변수

설명

ATLASSIAN_USER_EMAIL

Atlassian 계정 이메일

ATLASSIAN_API_TOKEN

Scoped API Token

BITBUCKET_DEFAULT_WORKSPACE

기본 workspace(bb_clone에서 사용)

별칭: BITBUCKET_USERNAME, BITBUCKET_API_TOKEN.

도구

/2.0 접두사는 자동으로 추가됩니다. 경로는 /로 시작합니다(예: /workspaces).

도구

용도

bb_get

읽기(PR, pipeline, 로그, 파일)

bb_post

생성(PR, 댓글, merge)

bb_put

리소스 전체 교체

bb_patch

부분 업데이트

bb_delete

삭제 / PR decline

bb_clone

git clone(SSH, 이후 HTTPS)

공통 매개변수: path, 선택적으로 queryParams, jq(JMESPath), outputFormat(toon 또는 json). bb_post / bb_put / bb_patch에는 body가 필요합니다.

경로 예시:

  • /workspaces

  • /repositories/{workspace}/{repo}/pullrequests/{id}

  • /repositories/{workspace}/{repo}/pullrequests/{id}/diff

  • /repositories/{workspace}/{repo}/pipelines/?pagelen=50&sort=-created_on

  • /repositories/{workspace}/{repo}/pipelines/{uuid}/steps/{stepUuid}/log

jq 필터는 전체 JSON을 모델로 가져오지 않도록 목록에서 항상 사용하는 것이 좋습니다.

보안

  • 토큰, .env 또는 비밀이 포함된 mcp.json을 커밋하지 마세요.

  • 이 서버는 Basic Auth(이메일 + 토큰)로 api.bitbucket.org에 요청을 전달만 합니다.

  • 로그와 오류에는 토큰이 출력되지 않습니다.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Facilitates interaction with Bitbucket Server for pull request management using the MCP protocol, supporting operations such as creating, merging, commenting, and reviewing pull requests.
    15
    66
    Apache 2.0
  • A
    license
    B
    quality
    C
    maintenance
    Enables interaction with Bitbucket Cloud through 25+ tools for managing repositories, pull requests, branches, commits, issues, pipelines, and code search with OAuth 2.0 authentication.
    34
    13
    1
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that provides tools for interacting with the Bitbucket API, supporting both Bitbucket Cloud and Bitbucket Server, enabling pull request, branch, file, code review, and search operations.
    19
    5,234
    MIT
  • A
    license
    C
    quality
    B
    maintenance
    MCP server for integrating with Bitbucket Cloud and Server APIs, enabling AI assistants to interact with repositories, pull requests, pipelines, and more.
    59
    54
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)

  • GitLab MCP — wraps the GitLab REST API v4 (BYO API key)

  • A MCP server built for developers enabling Git based project management with project and personal…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/genkis/mcp-bitbucket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server