What is Bitbucket MCP Server?
A Model Context Protocol server that provides 29 tools for interacting with the Bitbucket API, supporting both Bitbucket Cloud and Bitbucket Server. It is designed for developers using AI assistants to manage pull requests, code reviews, branches, files, and code search.
How to use Bitbucket MCP Server?
Install via npx -y @nexus2520/bitbucket-mcp-server or from source. Configure the server in your MCP settings file with environment variables (BITBUCKET_USERNAME, BITBUCKET_APP_PASSWORD for Cloud; for Server additionally BITBUCKET_TOKEN and BITBUCKET_BASE_URL). Optionally set BITBUCKET_TOOL_GROUPS to expose only desired tool groups. Then invoke any of the 29 tools (e.g., get_pull_request, search_code).
Key features of Bitbucket MCP Server
- 29 tools covering PRs, comments, attachments, reviews, tasks, commits, branches, files, search, and discovery.
- Supports both Bitbucket Cloud and Bitbucket Server.
- Tool group filtering reduces token usage by exposing only needed tools.
- Bitbucket Cloud automatically hides server-only tools.
- Structured diffs, inline comments, nested replies, and merge commit details.
- Code search with index-backed search, file content search with regex, and repository search.
Use cases of Bitbucket MCP Server
- Review pull requests, approve, request changes, and manage comments.
- Explore repository code via file browsing, blame, and content search.
- Manage branches: list, get details, and delete.
- Search code across repositories with language/extension filters and regex.
- Automate PR workflows: create, update, merge, and decline.
コメント