Bitbucket Cloud MCP Server
Enables AI assistants to read Bitbucket Cloud pull requests and diffs through natural conversation.
README
Bitbucket Cloud MCP Server
An MCP (Model Context Protocol) server that lets AI assistants read Bitbucket Cloud pull requests. Connect Claude, Copilot, or any MCP-compatible client to your Bitbucket Cloud workspace and review PRs through natural conversation.
What Can It Do?
| Tool | Description |
|---|---|
get_bb_pull_request |
Retrieve pull request details (title, author, status, branches, etc.) |
get_bb_diff |
Get the full diff of a pull request |
Example prompts you can use with your AI assistant:
"Summarize pull request #42 in the my-app repo"
"Review the diff for PR #15 and suggest improvements"
"What's the status of open PRs in our project?"
Quick Start
1. Install
git clone https://github.com/ttekun/bitbucket-cloud-mcp-server.git
cd bitbucket-cloud-mcp-server
npm install
npm run build
2. Get a Bitbucket App Password
- Go to Bitbucket Cloud → Personal Settings → App passwords
- Create a new app password with Repository: Read and Pull request: Read permissions
3. Configure Your MCP Client
<details> <summary><strong>Claude Desktop</strong></summary>
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"bitbucket-cloud": {
"command": "node",
"args": ["/absolute/path/to/bitbucket-cloud-mcp-server/build/index.js"],
"env": {
"BITBUCKET_TOKEN": "your-app-password",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
}
</details>
<details> <summary><strong>VS Code (Copilot / Claude Code)</strong></summary>
Add to your VS Code settings or .vscode/mcp.json:
{
"mcpServers": {
"bitbucket-cloud": {
"command": "node",
"args": ["/absolute/path/to/bitbucket-cloud-mcp-server/build/index.js"],
"env": {
"BITBUCKET_TOKEN": "your-app-password",
"BITBUCKET_WORKSPACE": "your-workspace"
}
}
}
}
</details>
Environment Variables
| Variable | Required | Description |
|---|---|---|
BITBUCKET_TOKEN |
Yes | Bitbucket Cloud app password |
BITBUCKET_WORKSPACE |
No | Default workspace (can be overridden per request) |
Tool Parameters
Both tools accept the same parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
workspace |
string | Yes* | Bitbucket workspace (*falls back to BITBUCKET_WORKSPACE env var) |
repo_slug |
string | Yes | Repository slug |
pull_request_id |
number | Yes | Pull request ID |
Development
npm run dev # Watch mode
npm test # Run tests
npm run lint # Lint
npm run inspector # MCP Inspector (debug tool)
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.