Bitbucket MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BITBUCKET_URL | Yes | Bitbucket base URL, such as https://api.bitbucket.org or https://bitbucket.example.com/bitbucket | |
| BITBUCKET_TOKEN | Yes | API token, app password, or personal access token | |
| BITBUCKET_USERNAME | No | Username paired with the token for basic auth (required if BITBUCKET_AUTH_TYPE is basic) | |
| BITBUCKET_AUTH_TYPE | No | bearer or basic | bearer |
| BITBUCKET_MAX_DIFF_BYTES | No | Maximum UTF-8 byte size returned in rawDiff | 1000000 |
| BITBUCKET_ENABLE_WRITE_TOOLS | No | Set to true to allow tools that modify Bitbucket, currently PR comment creation | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_pull_requestA | Retrieves metadata, description, state/status, author, reviewers, source branch, destination branch, timestamps, and links for a specific Bitbucket pull request. |
| get_pull_request_diffA | Retrieves the raw diff and, when available, a structured list of changed files for a specific Bitbucket pull request. |
| add_pull_request_commentA | Creates a general, file, or inline line comment on a Bitbucket pull request. This is a write operation and requires BITBUCKET_ENABLE_WRITE_TOOLS=true. |
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/inceon/bitbucket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server