Cover image
MCP-Server-Atlassian-Bitbucket
Public

MCP-Server-Atlassian-Bitbucket

Try Now
2025-04-09

Node.js/typecript MCP -Server für Atlassian Bitbucket. Ermöglicht es AI -Systemen (LLMs), mit Arbeitsbereichen, Repositorys und Anforderungen über Tools zu interagieren (listen, erhalten, kommentieren, suche). Verbindet KI direkt mit Versionensteuerungs -Workflows über die Standard -MCP -Schnittstelle.

3 years

Works with Finder

2

Github Watches

6

Github Forks

8

Github Stars

Atlassian Bitbucket MCP Server

This project provides a Model Context Protocol (MCP) server that acts as a bridge between AI assistants (like Anthropic's Claude, Cursor AI, or other MCP-compatible clients) and your Atlassian Bitbucket instance. It allows AI to securely access and interact with your repositories, pull requests, and workspaces in real time.


Overview

What is MCP?

Model Context Protocol (MCP) is an open standard that allows AI systems to securely and contextually connect with external tools and data sources.

This server implements MCP specifically for Bitbucket Cloud, bridging your Bitbucket data with AI assistants.

Why Use This Server?

  • Minimal Input, Maximum Output Philosophy: Simple identifiers like workspaceSlug and repoSlug are all you need. Each tool returns comprehensive details without requiring extra flags.

  • Rich Code Visualization: Get detailed insights into repositories and code changes with file statistics, diff views, and smart context around code modifications.

  • Secure Local Authentication: Credentials are never stored in the server. The server runs locally, so your tokens never leave your machine and you can request only the permissions you need.

  • Intuitive Markdown Responses: All responses use well-structured Markdown for readability with consistent formatting and navigational links.

  • Full Bitbucket Integration: Access workspaces, repositories, pull requests, comments, code search, and more through a unified interface.


Getting Started

Prerequisites

  • Node.js (>=18.x): Download
  • Bitbucket Cloud Account

Step 1: Authenticate

Choose one of the following authentication methods:

Option A: Bitbucket App Password (Recommended)

Generate one from Bitbucket App Passwords. Minimum permissions:

  • Workspaces: Read
  • Repositories: Read
  • Pull Requests: Read

Option B: Atlassian API Token

Generate one from Atlassian API Tokens.


Step 2: Configure Credentials

Method A: MCP Config File (Recommended)

Create or edit ~/.mcp/configs.json:

Using Bitbucket App Password:

{
	"@aashari/mcp-server-atlassian-bitbucket": {
		"environments": {
			"ATLASSIAN_BITBUCKET_USERNAME": "<your_username>",
			"ATLASSIAN_BITBUCKET_APP_PASSWORD": "<your_app_password>"
		}
	}
}

Using Atlassian API Token:

{
	"@aashari/mcp-server-atlassian-bitbucket": {
		"environments": {
			"ATLASSIAN_SITE_NAME": "bitbucket",
			"ATLASSIAN_USER_EMAIL": "<your_email>",
			"ATLASSIAN_API_TOKEN": "<your_api_token>"
		}
	}
}

Method B: Environment Variables

Pass credentials directly when running the server:

ATLASSIAN_BITBUCKET_USERNAME="<your_username>" \
ATLASSIAN_BITBUCKET_APP_PASSWORD="<your_app_password>" \
npx -y @aashari/mcp-server-atlassian-bitbucket

Step 3: Connect Your AI Assistant

Configure your MCP-compatible client to launch this server.

Claude / Cursor Configuration:

{
	"mcpServers": {
		"aashari/mcp-server-atlassian-bitbucket": {
			"command": "npx",
			"args": ["-y", "@aashari/mcp-server-atlassian-bitbucket"]
		}
	}
}

This configuration launches the server automatically at runtime.


Tools

This section covers the MCP tools available when using this server with an AI assistant. Note that MCP tools use snake_case for tool names and camelCase for parameters.

list_workspaces

List available Bitbucket workspaces.

{}

or:

{ "query": "devteam" }

"Show me all my Bitbucket workspaces."


get_workspace

Get full details for a specific workspace.

{ "workspaceSlug": "acme-corp" }

"Tell me more about the 'acme-corp' workspace."


list_repositories

List repositories in a workspace.

{ "workspaceSlug": "acme-corp" }

or:

{ "workspaceSlug": "acme-corp", "query": "api" }

"List repositories in 'acme-corp'."


get_repository

Get details of a specific repository.

{ "workspaceSlug": "acme-corp", "repoSlug": "backend-api" }

"Show me the 'backend-api' repository in 'acme-corp'."


search

Search Bitbucket content.

Repositories:

{ "workspaceSlug": "acme-corp", "query": "api", "scope": "repositories" }

Pull Requests:

{
	"workspaceSlug": "acme-corp",
	"repoSlug": "backend-api",
	"query": "fix",
	"scope": "pullrequests"
}

Commits:

{
	"workspaceSlug": "acme-corp",
	"repoSlug": "backend-api",
	"query": "update",
	"scope": "commits"
}

Code:

{ "workspaceSlug": "acme-corp", "query": "function getUser", "scope": "code" }

"Search for 'function getUser' in the 'acme-corp' workspace."


list_pull_requests

List pull requests in a repository.

{ "workspaceSlug": "acme-corp", "repoSlug": "frontend-app", "state": "OPEN" }

"Show open PRs in 'frontend-app'."


get_pull_request

Get full details of a pull request, including code diffs and file changes.

{ "workspaceSlug": "acme-corp", "repoSlug": "frontend-app", "prId": "42" }

"Get PR #42 from 'frontend-app' with all code changes."


list_pr_comments

List comments on a specific pull request.

{ "workspaceSlug": "acme-corp", "repoSlug": "frontend-app", "prId": "42" }

"Show me all comments on PR #42."


add_pr_comment

Add a comment to a pull request.

General:

{
	"workspaceSlug": "acme-corp",
	"repoSlug": "frontend-app",
	"prId": "42",
	"content": "Looks good."
}

Inline:

{
	"workspaceSlug": "acme-corp",
	"repoSlug": "frontend-app",
	"prId": "42",
	"content": "Consider refactoring.",
	"inline": { "path": "src/utils.js", "line": 42 }
}

"Add a comment to PR #42 on line 42."


pull_requests_create

Create a new pull request.

{
	"workspaceSlug": "acme-corp",
	"repoSlug": "frontend-app",
	"title": "Add login screen",
	"sourceBranch": "feature/login"
}

"Create a PR from 'feature/login' to 'main'."


Command-Line Interface (CLI)

The CLI uses kebab-case for commands (e.g., list-workspaces) and options (e.g., --workspace-slug).

Quick Use with npx

npx -y @aashari/mcp-server-atlassian-bitbucket list-workspaces
npx -y @aashari/mcp-server-atlassian-bitbucket get-repository \
  --workspace-slug acme-corp \
  --repo-slug backend-api

Install Globally

npm install -g @aashari/mcp-server-atlassian-bitbucket

Then run directly:

mcp-atlassian-bitbucket list-workspaces

Discover More CLI Options

Use --help to see flags and usage for all available commands:

mcp-atlassian-bitbucket --help

Or get detailed help for a specific command:

mcp-atlassian-bitbucket get-repository --help
mcp-atlassian-bitbucket list-pull-requests --help
mcp-atlassian-bitbucket search --help

License

ISC License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

    Reviews

    3 (1)
    Avatar
    user_AEze4bnt
    2025-04-16

    I have been using mcp-server-atlassian-bitbucket by aashari and it has been impressive in integrating Bitbucket with other Atlassian products seamlessly. The setup was straightforward with the provided URL and the documentation is clear. I highly recommend it for anyone looking to optimize their workflow with Bitbucket through MCP. The welcome information is handy and sets proper expectations. Check it out on GitHub: https://github.com/aashari/mcp-server-atlassian-bitbucket