bitbucket
mcp-bitbucket
MCP-Server (stdio) für die Bitbucket Cloud REST API 2.0. Funktioniert mit Cursor: Pull Requests, Pipelines, Logs, Clone.
Die Tools entsprechen dem typischen Satz bb_get / bb_post / bb_put / bb_patch / bb_delete / bb_clone.
Voraussetzungen
Node.js 18+
Scoped API Token von Atlassian (App-Passwörter funktionieren nicht)
Token: id.atlassian.com → API tokens.
Nützliche Bereiche: Lesen von Repository, Pull Requests, Pipelines und Benutzer (read:repository:bitbucket, read:pullrequest:bitbucket, read:pipeline:bitbucket, read:user:bitbucket). Für Schreibzugriff entsprechende write:*-Bereiche hinzufügen.
Related MCP server: Bitbucket Cloud MCP Server
Installation
git clone https://github.com/genkis/mcp-bitbucket.git
cd mcp-bitbucket
npm installKopiere .env.example in .env und fülle die Werte lokal aus. Die Datei .env nicht committen.
Cursor (~/.cursor/mcp.json)
Token und E-Mail nur in der lokalen Cursor-Konfiguration aufbewahren, nicht in diesem Repository.
{
"mcpServers": {
"bitbucket": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/mcp-bitbucket/index.js"],
"env": {
"ATLASSIAN_USER_EMAIL": "you@example.com",
"ATLASSIAN_API_TOKEN": "your-scoped-api-token",
"BITBUCKET_DEFAULT_WORKSPACE": "your-workspace-slug"
}
}
}
}Nach Änderungen die MCP-Server in Cursor neu laden.
Variablen:
Variable | Beschreibung |
| E-Mail des Atlassian-Kontos |
| Scoped API Token |
| Standard-Workspace (wird von |
Aliasse: BITBUCKET_USERNAME, BITBUCKET_API_TOKEN.
Tools
Das Präfix /2.0 wird automatisch hinzugefügt. Der Pfad beginnt mit /, z. B. /workspaces.
Tool | Verwendung |
| Lesen (PR, Pipelines, Logs, Dateien) |
| Erstellen (PR, Kommentar, Merge) |
| Vollständiges Ersetzen einer Ressource |
| Teilweise Aktualisierung |
| Löschen / PR ablehnen |
|
|
Gemeinsame Parameter: path, optional queryParams, jq (JMESPath), outputFormat (toon oder json). bb_post / bb_put / bb_patch erfordern body.
Beispiele für Pfade:
/workspaces/repositories/{workspace}/{repo}/pullrequests/{id}/repositories/{workspace}/{repo}/pullrequests/{id}/diff/repositories/{workspace}/{repo}/pipelines/?pagelen=50&sort=-created_on/repositories/{workspace}/{repo}/pipelines/{uuid}/steps/{stepUuid}/log
Der jq-Filter sollte bei Listen immer verwendet werden, um nicht das gesamte JSON in das Modell zu ziehen.
Sicherheit
Keine Tokens,
.envodermcp.jsonmit Geheimnissen committen.Dieser Server leitet nur Anfragen an
api.bitbucket.orgmit Basic Auth (E-Mail + Token) weiter.Logs und Fehler geben den Token nicht aus.
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.
Related MCP Servers
- AlicenseAqualityBmaintenanceFacilitates interaction with Bitbucket Server for pull request management using the MCP protocol, supporting operations such as creating, merging, commenting, and reviewing pull requests.1566Apache 2.0
- AlicenseBqualityCmaintenanceEnables interaction with Bitbucket Cloud through 25+ tools for managing repositories, pull requests, branches, commits, issues, pipelines, and code search with OAuth 2.0 authentication.34131MIT
- AlicenseBqualityDmaintenanceAn 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.195,234MIT
- AlicenseCqualityBmaintenanceMCP server for integrating with Bitbucket Cloud and Server APIs, enabling AI assistants to interact with repositories, pull requests, pipelines, and more.59543MIT
Related MCP Connectors
Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)
GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
A MCP server built for developers enabling Git based project management with project and personal…
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/genkis/mcp-bitbucket'
If you have feedback or need assistance with the MCP directory API, please join our Discord server