Bitbucket MCP Server
Provides tools for managing Bitbucket Server projects, repositories, pull requests, branches, source code, and code search, enabling operations such as listing projects, creating and merging pull requests, browsing files, and searching code.
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 repositories in project MyProject"
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
MCP (Model Context Protocol) server for Bitbucket Server integration. This server provides tools to interact with Bitbucket Server APIs.
Features
Project Operations
list_projects: List all projects the user has access to
get_project_detail: Get detailed information about a specific project
Repository Operations
list_repositories: List repositories in a specific project
get_repo_branches: List branches in a repository (with optional filter)
get_repo_commits: List recent commits in a repository
get_repo_tags: List tags in a repository (with optional filter)
Pull Request Operations
get_pull_requests: Get pull requests for a repository
get_pull_request_detail: Get detailed information about a specific pull request
create_pull_request: Create a new pull request (with optional reviewers)
merge_pull_request: Merge a pull request
decline_pull_request: Decline/reject a pull request
get_pull_request_comments: Get comments on a pull request
Source Code Operations
get_file_content: Get the raw content of a file
get_directory_listing: List files and directories at a given path
get_file_diff: Get the diff between two commits or branches
Branch Operations
create_branch: Create a new branch
delete_branch: Delete a branch
Code Review Operations
get_pull_request_diff: Get the diff of a pull request for code review
Code Search
search_code: Search for code in a repository
Related MCP server: Bitbucket MCP Server
Installation
Using npx (recommended)
npx sbitbucket-mcp-serverUsing npm
npm install -g sbitbucket-mcp-serverConfiguration
Environment Variables
Variable | Required | Description |
| Yes | Your Bitbucket Server URL (e.g., |
| Yes | Personal Access Token (PAT) for authentication |
Claude Desktop Configuration
Add to your Claude Desktop config file:
{
"mcpServers": {
"bitbucket": {
"command": "npx",
"args": ["-y", "sbitbucket-mcp-server"],
"env": {
"BITBUCKET_URL": "https://your-bitbucket-server.com",
"BITBUCKET_TOKEN": "your-personal-access-token"
}
}
}
}Development
# Install dependencies
npm install
# Build
npm run build
# Development mode (watch)
npm run dev
# Start server
npm startLicense
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/nbhson/bitbucket-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server