@jestay/bitbucket-mcp
Provides tools for code review of Bitbucket Cloud pull requests: list PRs, read diffs, file contents and comments, and post review comments (general, inline, or replies).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@jestay/bitbucket-mcplist open pull requests in my-workspace/my-repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@jestay/bitbucket-mcp
MCP server for code review of Bitbucket Cloud pull requests: list PRs, read diffs, file contents and comments, and post review comments (general, inline on specific lines, or replies).
Tools
Tool | Description |
| List PRs of a repo, filtered by state (default OPEN) |
| Full PR metadata: branches, commits, reviewers, approval status |
| Unified diff of the PR (plain text) |
| Raw file content at a branch/tag/commit |
| Existing PR comments (general and inline) |
| Post a comment: general, inline ( |
Related MCP server: Bitbucket MCP Server
Review workflow
By default the server ships MCP instructions telling the connected agent to
review first and comment later: read the diff, consolidate all findings,
present them to the user, and post only the comments the user explicitly
approved. create_pull_request_comment carries the same warning in its
description.
For unattended use (automation/CI), set BITBUCKET_YOLO=true to remove the
approval gate and let the agent comment autonomously.
Requirements
Node.js 20.6+
An Atlassian API token (see below)
Creating the API token
Create an API token with scopes at https://id.atlassian.com/manage-profile/security/api-tokens, select Bitbucket as the app, and grant these scopes:
Scope | Used for |
| Authentication / identifying the token's user |
| Resolving the workspace in API routes |
| Reading repository file contents ( |
| Listing and reading PRs, diffs and comments |
| Posting review comments |
No other scopes are needed — in particular, write:repository:bitbucket is
NOT required (this server never pushes code).
Note: Atlassian App Passwords are deprecated — use API tokens.
Usage (npx)
No installation needed — any machine with Node 20.6+ can run it via npx.
.mcp.json (Claude Code) or claude_desktop_config.json (Claude Desktop):
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["-y", "@jestay/bitbucket-mcp"],
"env": {
"BITBUCKET_EMAIL": "you@company.com",
"BITBUCKET_API_TOKEN": "your_token_here",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
}Or with the Claude Code CLI:
claude mcp add bitbucket \
-e BITBUCKET_EMAIL=you@company.com \
-e BITBUCKET_API_TOKEN=your_token_here \
-e BITBUCKET_WORKSPACE=your-workspace \
-- npx -y @jestay/bitbucket-mcpEnvironment variables
Variable | Required | Description |
| Yes | Atlassian account email |
| Yes | Atlassian API token (scopes above) |
| No | Default workspace so tools don't need it per call |
| No | Set to |
Local development
pnpm install
pnpm build
cp .env.example .env # then fill in the values
pnpm dev # run from source (tsx)
pnpm start # run the compiled buildpnpm dev and pnpm start load environment variables from a .env file in
the project root. When registering the server in an MCP client, environment
variables come from the client's own config instead and no .env file is
needed. To register a local build, use
node /absolute/path/to/bitbucket-mcp/dist/index.js as the command.
Project layout
src/
├── index.ts # entry point
├── config.ts # env-var configuration
├── client.ts # HTTP client for the Bitbucket Cloud API 2.0 (auth lives here)
└── server.ts # McpServer + tool registrationThis server cannot be installed
Maintenance
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
- AlicenseBqualityCmaintenanceAn MCP server that enables interaction with Bitbucket repositories through the Model Context Protocol, supporting both Bitbucket Cloud and Server with features for PR lifecycle management and code review.Last updated194,64324MIT
- Alicense-qualityDmaintenanceAn 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.Last updated4,643MIT
- AlicenseAqualityCmaintenanceMCP server for Bitbucket Cloud, focused on pull-request review workflowsLast updated4114,691MIT
- AlicenseBqualityBmaintenanceMCP server for Bitbucket Server integration, enabling project, repository, pull request, source code, branch, and code review operations via the Bitbucket Server APIs.Last updated27370MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
MCP server for managing Prisma Postgres.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jestays/bitbucket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server