Bitbucket Server MCP
Overview
Bitbucket Server MCP is a server designed for managing pull requests in Bitbucket Server using the Model Context Protocol (MCP). It provides tools and resources to interact with the Bitbucket Server API effectively.
To use Bitbucket Server MCP, you can install it via Smithery or manually using npm. After installation, configure the server with your Bitbucket Server details and use the provided commands to manage pull requests.
- Create, retrieve, merge, and decline pull requests. - Add comments to pull requests. - Fetch review history and diffs for pull requests. - Supports configuration through environment variables for easy setup.
- Automating pull request management in Bitbucket Server.
- Integrating with CI/CD pipelines for seamless code reviews.
- Enhancing collaboration among development teams through efficient pull request handling.
Add to your AI client
Use these steps to connect Bitbucket Server MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"bitbucket-server-mcp-server-garc33": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bitbucket-server-mcp-server-garc33"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"bitbucket-server-mcp-server-garc33": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bitbucket-server-mcp-server-garc33"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"bitbucket-server-mcp-server-garc33": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bitbucket-server-mcp-server-garc33"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"bitbucket-server-mcp-server-garc33": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bitbucket-server-mcp-server-garc33"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"bitbucket-server-mcp-server-garc33": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bitbucket-server-mcp-server-garc33"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"bitbucket-server-mcp-server-garc33": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bitbucket-server-mcp-server-garc33"
]
}
}
}FAQ
What are the requirements to run Bitbucket Server MCP?
You need Node.js version 16 or higher.
How do I install Bitbucket Server MCP?
You can install it using the Smithery CLI or manually via npm.
Can I configure the server for different Bitbucket instances?
Yes! You can set the base URL and authentication details through environment variables.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":814,"uuid":"24580366-8b60-4671-8d8c-7d9365cdd3eb","name":"bitbucket-server-mcp-server","title":"Bitbucket Server MCP","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/1409740?v=4","created_at":"2025-01-28T02:11:48.052Z","updated_at":"2025-02-23T07:12:25.940Z","status":"created","author_name":"garc33","author_avatar_url":"https://avatars.githubusercontent.com/u/1409740?v=4","tags":"bitbucket,mcp,pull-request-management","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/garc33/bitbucket-server-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/53c063ff462b4f362e21dc567ad99e59d1c1807174754c4d1dd9dea82c928430/68747470733a2f2f736d6974686572792e61692f62616467652f406761726333332f6269746275636b65742d7365727665722d6d63702d736572766572","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]