Bitbucket MCP Server

Developmentstdiov1.0.0
代码仓库

MCP server for Atlassian Bitbucket that connects AI tools to repositories, pull requests, branches, and pipelines. Enables agents to review and create pull requests, read file contents and diffs, leave comments, and inspect build status on Bitbucket Cloud and Server.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "bitbucket": {
      "command": "npx",
      "args": [
        "-y",
        "bitbucket-mcp"
      ],
      "env": {
        "BITBUCKET_USERNAME": "<YOUR_BITBUCKET_USERNAME>",
        "BITBUCKET_APP_PASSWORD": "<YOUR_BITBUCKET_APP_PASSWORD>"
      }
    }
  }
}

工具 (3)

list_pull_requests

List pull requests for a repository with optional state filter.

{
  "type": "object",
  "required": [
    "workspace",
    "repo_slug"
  ],
  "properties": {
    "state": {
      "type": "string",
      "description": "PR state (OPEN, MERGED, DECLINED)"
    },
    "repo_slug": {
      "type": "string",
      "description": "Repository slug"
    },
    "workspace": {
      "type": "string",
      "description": "Bitbucket workspace ID"
    }
  }
}

create_pull_request

Create a pull request between two branches.

{
  "type": "object",
  "required": [
    "workspace",
    "repo_slug",
    "source_branch",
    "destination_branch",
    "title"
  ],
  "properties": {
    "title": {
      "type": "string",
      "description": "Pull request title"
    },
    "repo_slug": {
      "type": "string",
      "description": "Repository slug"
    },
    "workspace": {
      "type": "string",
      "description": "Bitbucket workspace ID"
    },
    "source_branch": {
      "type": "string",
      "description": "Source branch"
    },
    "destination_branch": {
      "type": "string",
      "description": "Destination branch"
    }
  }
}

get_file

Read the contents of a file at a given ref.

{
  "type": "object",
  "required": [
    "workspace",
    "repo_slug",
    "path"
  ],
  "properties": {
    "ref": {
      "type": "string",
      "description": "Branch, tag, or commit"
    },
    "path": {
      "type": "string",
      "description": "File path"
    },
    "repo_slug": {
      "type": "string",
      "description": "Repository slug"
    },
    "workspace": {
      "type": "string",
      "description": "Bitbucket workspace ID"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Atlassian Community (@MatanYemini)
代码仓库
https://github.com/MatanYemini/bitbucket-mcp
许可证
MIT
版本
1.0.0
星标
410
最后更新
2026年6月24日