bitbucket
MCP server from garc33/bitbucket-server-mcp-server
claude mcp add --transport stdio garc33-bitbucket-server-mcp-server npx -y @garc33/bitbucket-server-mcp-server \ --env BITBUCKET_CUSTOM_HEADERS="Comma-separated list or JSON for custom HTTP headers to include in all requests" \ --env BITBUCKET_DEFAULT_PROJECT="Optional default Bitbucket project key (used if per-command project is not provided)"
How to use
This Bitbucket Server MCP provides a suite of MCP tools to manage Bitbucket Server pull requests, repositories, and related metadata via the MCP protocol. It exposes capabilities such as listing projects, repositories, and pull requests, creating and managing PRs, merging or declining PRs, commenting, and retrieving diffs and file contents. The tools support optional default project handling and can filter results by state, author, and direction, making it easier to automate workflows across Bitbucket Server instances. Use the available commands to discover projects, inspect repository structures, prepare PRs, and perform code reviews programmatically through the MCP interface.
How to install
Prerequisites:
- Node.js v16 or newer installed on the host
- Internet access to fetch the MCP server package
-
Prerequisite check:
- Ensure Node.js is installed: node -v
- Ensure npm/npx is available: npm -v or npx -v
-
Install the MCP server via Smithery (recommended):
- Run: npx -y @garc33/bitbucket-server-mcp-server --client claude
-
Manual installation (alternative):
- Install dependencies: npm install
- Build (if a build step is defined): npm run build
-
Run the MCP server:
- If using npx approach, launching the server will be handled by the package after install. Ensure any required environment variables are set (see mcp_config env section).
Notes:
- The server relies on Node.js >= 16. If you use a container or VM, ensure the runtime matches this requirement.
- You may need to configure authentication or proxy settings via environment variables described in additional_notes.
Additional notes
Environment variables and configuration tips:
- BITBUCKET_DEFAULT_PROJECT: If set, this defaults the project key when a specific project is not provided for per-command operations.
- BITBUCKET_CUSTOM_HEADERS: Provide additional HTTP headers as a string (e.g., 'Header1=Value1,Header2=Value2') to be included in all Bitbucket Server API requests (useful for proxies or Zero Trust tokens).
- BITBUCKET_DIFF_MAX_LINES_PER_FILE: Controls the maximum lines shown per file when using get_diff. If unset, a default is used by the server. Set to 0 for no limit.
Common issues and tips:
- If you encounter authentication issues, verify that the server has access to the Bitbucket Server API and that any required tokens or credentials are supplied via environment variables.
- When using per-command project keys, ensure they exist in Bitbucket Server; if not, rely on BITBUCKET_DEFAULT_PROJECT.
- For large diffs, consider adjusting max lines per file to avoid excessive output or truncation behavior.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.