Skip to main content
Glama

Atlassian Bitbucket MCP Server

by aashari

bb_list_branches

List branches in a Bitbucket repository, filter by query, sort by criteria, and paginate results. Returns branch details including name, latest commit, and merge strategy. Requires workspace and repository slugs.

Instructions

Lists branches in a repository identified by workspaceSlug and repoSlug. Filters branches by an optional text query and supports custom sort order. Provides pagination via limit and cursor. Pagination details are included at the end of the text content. Returns branch details as Markdown with each branch's name, latest commit, and default merge strategy. Requires Bitbucket credentials.

Input Schema

NameRequiredDescriptionDefault
cursorNoPagination cursor for retrieving the next set of results. Obtained from previous response when more results are available.
limitNoMaximum number of items to return (1-100). Controls the response size. Defaults to 25 if omitted.
queryNoQuery string to filter branches by name or other properties (text search).
repoSlugYesRepository slug to list branches from. Must be a valid repository slug in the specified workspace. Example: "project-api"
sortNoField to sort branches by. Common values: "name" (default), "-name", "target.date". Prefix with "-" for descending order.
workspaceSlugNoWorkspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam"

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cursor": { "description": "Pagination cursor for retrieving the next set of results. Obtained from previous response when more results are available.", "type": "string" }, "limit": { "description": "Maximum number of items to return (1-100). Controls the response size. Defaults to 25 if omitted.", "exclusiveMinimum": 0, "maximum": 100, "type": "integer" }, "query": { "description": "Query string to filter branches by name or other properties (text search).", "type": "string" }, "repoSlug": { "description": "Repository slug to list branches from. Must be a valid repository slug in the specified workspace. Example: \"project-api\"", "minLength": 1, "type": "string" }, "sort": { "description": "Field to sort branches by. Common values: \"name\" (default), \"-name\", \"target.date\". Prefix with \"-\" for descending order.", "type": "string" }, "workspaceSlug": { "description": "Workspace slug containing the repository. If not provided, the system will use your default workspace. Example: \"myteam\"", "type": "string" } }, "required": [ "repoSlug" ], "type": "object" }
Install Server

Other Tools from Atlassian Bitbucket MCP Server

Related Tools

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/aashari/mcp-server-atlassian-bitbucket'

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