Atlassian Bitbucket MCP Server
Provides tools for interacting with Atlassian Bitbucket Server/Data Center, enabling AI systems to access projects, repositories, branches, files, and manage pull requests.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Atlassian Bitbucket MCP Server
A Model Context Protocol (MCP) server that integrates Atlassian Bitbucket Server/Data Center with AI systems.
What It Does
This server enables AI systems to interact with Bitbucket repositories by providing:
Access to projects, repositories, branches, and files
Tools for working with pull requests
Type-safe API integration with official Bitbucket OpenAPI specs
Related MCP server: Bitbucket MCP
Quick Setup
Prerequisites
Node.js (v20+ recommended)
npm
Python 3 (for OpenAPI filtering script)
Bitbucket Server access token
Installation
git clone [<atlassian-bitbucket-server-mcp>](https://github.com/guenichone/atlassian-bitbucket-server-mcp)
cd mcp-server-selfhosted-bitbucket
npm install
npm run build-appRunning the Server
# As STDIO server (default for AI integration)
ATLASSIAN_BITBUCKET_SERVER_URL=https://git.your-company.com/ \
ATLASSIAN_BITBUCKET_ACCESS_TOKEN=your-token \
npm start
# As HTTP/SSE server
MCP_TRANSPORT=sse \
ATLASSIAN_BITBUCKET_SERVER_URL=https://git.your-company.com/ \
ATLASSIAN_BITBUCKET_ACCESS_TOKEN=your-token \
npm startDocker Usage
Using Docker CLI
# Build
docker build -t bitbucket-mcp-server .
# Run
docker run --rm -i \
-e ATLASSIAN_BITBUCKET_SERVER_URL=https://git.your-company.com/ \
-e ATLASSIAN_BITBUCKET_ACCESS_TOKEN=your-token \
bitbucket-mcp-serverUsing the Makefile (Recommended)
The project includes a Makefile for simplified Docker operations:
# Build the Docker image
make docker-build
# Run with your Bitbucket credentials
BITBUCKET_URL=https://git.your-company.com/ BITBUCKET_TOKEN=your-token make docker-run
# Build and run in one command
BITBUCKET_URL=https://git.your-company.com/ BITBUCKET_TOKEN=your-token make docker-all
# View all available make commands and examples
make helpEnvironment Variables
ATLASSIAN_BITBUCKET_SERVER_URL- Bitbucket server URLATLASSIAN_BITBUCKET_ACCESS_TOKEN- Your access tokenMCP_TRANSPORT-stdio(default) orssePORT- HTTP port when using SSE (default: 3000)
Thanks
This project was inspired by aashari/mcp-server-atlassian-bitbucket.
License
MIT - See LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Bitbucket Cloud and Server APIs to list and retrieve repositories, fetch and create pull requests, and manage related resources through natural language.5,856 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Bitbucket repositories, pull requests, and related resources through the Bitbucket Cloud and Server APIs. It supports operations such as listing repositories, retrieving repository details, and fetching or creating pull requests.5,856 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Bitbucket repositories and pull requests via Cloud and Server APIs, including listing repositories, retrieving details, fetching pull requests, and creating pull requests.5,856 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Bitbucket repositories and pull requests, including listing repositories, retrieving repository details, fetching pull requests, and creating pull requests through Bitbucket Cloud and Server APIs.5,856 npmMIT