Bitbucket MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BITBUCKET_TOKEN | No | Your Bitbucket HTTP access token (for Bitbucket Server) | |
| BITBUCKET_BASE_URL | No | The base URL of your Bitbucket Server instance (e.g., https://bitbucket.yourcompany.com) | |
| BITBUCKET_USERNAME | No | Your Bitbucket username (for Bitbucket Cloud) or full email address (for Bitbucket Server, e.g., john.doe@company.com) | |
| BITBUCKET_APP_PASSWORD | No | Your Bitbucket App Password (for Bitbucket Cloud) |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_pull_requestB | Get details of a Bitbucket pull request including merge commit information |
| list_pull_requestsC | List pull requests for a repository with optional filters |
| create_pull_requestC | Create a new pull request |
| update_pull_requestA | Update an existing pull request. When updating without specifying reviewers, existing reviewers and their approval status will be preserved. |
| add_commentA | Add a comment to a pull request. Supports: 1) General PR comments, 2) Replies to existing comments, 3) Inline comments on specific code lines (using line_number OR code_snippet), 4) Code suggestions for single or multi-line replacements. For inline comments, you can either provide exact line_number or use code_snippet to auto-detect the line. |
| merge_pull_requestC | Merge a pull request |
| list_branchesC | List branches in a repository |
| delete_branchC | Delete a branch |
| get_pull_request_diffC | Get the diff/changes for a pull request with optional filtering |
| approve_pull_requestC | Approve a pull request |
| unapprove_pull_requestC | Remove approval from a pull request |
| request_changesC | Request changes on a pull request |
| remove_requested_changesC | Remove change request from a pull request |
| get_branchC | Get detailed information about a branch including associated pull requests |
| list_directory_contentC | List files and directories in a repository path |
| get_file_contentA | Get file content from a repository with smart truncation for large files |
| list_branch_commitsC | List commits in a branch with detailed information and filtering options |
| list_pr_commitsC | List all commits that are part of a pull request |
| search_codeB | Search for code across Bitbucket repositories with enhanced context-aware search patterns (currently only supported for Bitbucket Server) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/pdogra1299/bitbucket-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server