Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BITBUCKET_CLIENT_IDNoYour Bitbucket OAuth 2.0 client ID
BITBUCKET_ACCESS_TOKENNoYour Bitbucket app password for authentication
BITBUCKET_CLIENT_SECRETNoYour Bitbucket OAuth 2.0 client secret

Tools

Functions exposed to the LLM to take actions

NameDescription
list_repositories

List repositories in a workspace. Returns paginated results with repository details.

get_repository

Get details of a specific repository including its branches, pull requests, and other metadata.

create_repository

Create a new repository in the specified workspace.

delete_repository

Delete a repository. This action is irreversible.

list_repository_forks

List all forks of a repository.

list_pull_requests

List pull requests for a repository with optional filtering by state.

get_pull_request

Get details of a specific pull request including its source, destination, and status.

create_pull_request

Create a new pull request from a source branch to a destination branch.

update_pull_request

Update a pull request title, description, or destination branch.

merge_pull_request

Merge an open pull request. Supports merge commit, squash, and fast-forward strategies.

decline_pull_request

Decline/close a pull request without merging.

approve_pull_request

Approve a pull request.

request_changes

Request changes on a pull request.

list_pr_comments

List all comments on a pull request.

add_pr_comment

Add a comment to a pull request. Can be a general comment or an inline comment on a specific file/line.

get_pr_diff

Get the diff for a pull request showing all changes.

list_branches

List all branches in a repository.

get_branch

Get details of a specific branch including its latest commit.

create_branch

Create a new branch from a specific commit or existing branch.

delete_branch

Delete a branch from a repository.

list_commits

List commits in a repository with optional filtering by branch.

get_commit

Get details of a specific commit including its message, author, and parent commits.

get_commit_diff

Get the diff for a specific commit showing all changes.

list_issues

List issues in a repository with optional filtering.

get_issue

Get details of a specific issue.

create_issue

Create a new issue in a repository.

update_issue

Update an existing issue.

delete_issue

Delete an issue from a repository.

list_pipelines

List pipeline runs for a repository.

get_pipeline

Get details of a specific pipeline run.

trigger_pipeline

Trigger a new pipeline run on a branch, tag, or bookmark.

stop_pipeline

Stop a running pipeline.

search_code

Search for code across all repositories in a workspace.

get_file_content

Get the content of a file from a repository.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/Lexmata/bitbucket-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server