Bitbucket MCP Server
Provides comprehensive access to Bitbucket Cloud repositories, enabling management of pull requests, comments, tasks, and branches through the Bitbucket REST API 2.0
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., "@Bitbucket MCP Serverlist all open pull requests in the main repository"
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.
Bitbucket MCP Server
Read-only MCP server for Bitbucket Cloud — lets Claude and other LLM clients browse repositories, pull requests, comments, tasks, and branches. Token-sparse output, no write access, credential never leaves the client layer.
Quickstart
You need a Bitbucket Cloud (Atlassian) API token with repository read scopes (read:repository:bitbucket, plus read:pullrequest:bitbucket for PRs/comments/tasks) — no write scopes. Mint one at https://id.atlassian.com/manage-profile/security/api-tokens, then add to your MCP client (e.g. claude_desktop_config.json):
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["-y", "@bobmaertz/bitbucket-mcp"],
"env": {
"BITBUCKET_WORKSPACE": "your-workspace",
"BITBUCKET_EMAIL": "you@example.com",
"BITBUCKET_API_TOKEN": "your-api-token"
}
}
}
}Then ask: "List the open PRs in acme/widgets" · "Show the comments on PR #42".
Related MCP server: Atlassian Bitbucket MCP Server
Configuration
Environment variables — auth is Basic email:token. LOG_LEVEL (default info) and BITBUCKET_ALLOW_WRITES (reserved, off) are optional. The deprecated BITBUCKET_USERNAME + BITBUCKET_APP_PASSWORD pair is accepted as a fallback. See .env.example.
Variable | Notes |
| Default workspace ID (required). |
| Required. Token minted at id.atlassian.com. |
Tools
Read-only. workspace defaults to BITBUCKET_WORKSPACE; repo-scoped tools require repo.
Tool | Key inputs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bitbucket_list_repositories needs no args: omit workspace to list the configured BITBUCKET_WORKSPACE, or pass workspace to scope to another. There is no cross-workspace listing — Atlassian retired both GET /repositories and GET /workspaces under CHANGE-2770.
bitbucket_list_user_pull_requests lists all pull requests authored by a user across a whole workspace in one aggregated call — no more listing every repo and querying each. It auto-follows pagination (up to max_pages, default 10) and sorts newest-updated first (-updated_on). Omit user for the authenticated account ("my" PRs); otherwise user must be an account UUID ({…}) or Atlassian account_id — bare usernames were removed by Bitbucket. It covers authored PRs only; reviewer-only involvement isn't included. Backed by GET /workspaces/{workspace}/pullrequests/{selected_user}.
Development
Monorepo: bitbucket-api (REST client) → bitbucket-core (config, presenters, operations) → bitbucket-mcp-server (MCP adapter).
npm install && npm run build
npm test # unit + hermetic HTTP integration
npm run test:contract # validate against the vendored Bitbucket OpenAPI specDesign notes: docs/ai/DESIGN.md.
License
MIT
This 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.
Latest Blog Posts
- 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/bobmaertz/bitbucket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server