Bitbucket MCP server for Claude, ChatGPT, Claude Code and Cursor
Bitbucket is a Git-based code hosting and collaboration platform supporting private and public repositories, enabling teams to manage and review code through pull requests and integrations
Examples of what your AI apps can do in Bitbucket. You'll see the exact list of tools after you connect it.
create_branch
ToolCreates a new branch in a bitbucket repository from a target commit hash; the branch name must be unique, adhere to bitbucket's naming conventions, and not include the 'refs/heads/' prefix.
create_issue
ToolCreates a new issue in a bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component ids exist.
create_issue_comment
ToolAdds a new comment with markdown support to an existing bitbucket issue.
create_pull_request
ToolCreates a new pull request in a specified bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.
create_repository
ToolCreates a new bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project key` is not provided.
delete_issue
ToolPermanently deletes a specific issue, identified by its `issue id`, from the repository specified by `repo slug` within the given `workspace`.
delete_repository
ToolPermanently deletes a specified bitbucket repository; this action is irreversible and does not affect forks.
get_current_user
ToolRetrieves the profile information (uuid, display name, links, creation date) for the currently authenticated bitbucket user.
get_file_from_repository
ToolRetrieves a specific file's content from a bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.
get_pull_request
ToolGet a single pull request by id with complete details.
get_snippet
ToolRetrieves a specific bitbucket snippet by its encoded id from an existing workspace, returning its metadata and file structure.
list_pull_requests
ToolLists pull requests in a specified, accessible bitbucket repository, optionally filtering by state (open, merged, declined).
list_repositories_in_workspace
ToolLists repositories in a specified bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results.
list_workspace_members
ToolLists all members of a specified bitbucket workspace; the workspace must exist.
list_workspaces
ToolLists bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.
create_snippet_comment
ToolPosts a new top-level comment or a threaded reply to an existing comment on a specified bitbucket snippet.
update_issue
ToolUpdates an existing issue in a bitbucket repository by modifying specified attributes; requires `workspace`, `repo slug`, `issue id`, and at least one attribute to update.
Free. No card needed.
How to connect Bitbucket
- 1Create your free ContextGate account.
- 2Bitbucket isn't in ContextGate's app list yet. If you have an MCP server for Bitbucket, add it under Connections → Add Connection → Custom MCP.
- 3Add ContextGate to Claude, Cursor or ChatGPT (the Setup page shows you how), then ask it to use Bitbucket.
What you get with Bitbucket and ContextGate
- Your AI apps can use Bitbucket Claude, Cursor, ChatGPT and other AI apps reach Bitbucket through the one ContextGate connection you add to them.
- You choose which tools they can use Switch off any Bitbucket tool you don't want used. It's hidden from your AI apps and refused if called.
- Every call is checked and recorded Your policies check each call (for example, personal data is hidden and secrets are blocked), and Activity keeps a record of it.
ContextGate sees only the tool calls that go through it, not your AI app's built-in tools or your chats.
Select a tool on the left to see its parameters
What you get with Bitbucket and ContextGate
- Your AI apps can use Bitbucket: Claude, Cursor, ChatGPT and other AI apps reach Bitbucket through the one ContextGate connection you add to them.
- You choose which tools they can use: Switch off any Bitbucket tool you don't want used. It's hidden from your AI apps and refused if called.
- Every call is checked and recorded: Your policies check each call (for example, personal data is hidden and secrets are blocked), and Activity keeps a record of it.
ContextGate sees only the tool calls that go through it, not your AI app's built-in tools or your chats.
Free. No card needed.
How to connect Bitbucket
- Create your free ContextGate account.
- Bitbucket isn't in ContextGate's app list yet. If you have an MCP server for Bitbucket, add it under Connections → Add Connection → Custom MCP.
- Add ContextGate to Claude, Cursor or ChatGPT (the Setup page shows you how), then ask it to use Bitbucket.