Skip to main content
Glama

Atlassian Bitbucket MCP Server

by aashari

bb_search

Search Bitbucket repositories, code, pull requests, or content within a specified workspace or repository. Filter results by language, file extension, or content type, and manage large result sets with pagination. Requires Bitbucket credentials.

Instructions

Searches Bitbucket for content matching the provided query. Use this tool to find repositories, code, pull requests, or other content in Bitbucket. Specify scope to narrow your search ("code", "repositories", "pullrequests", or "content"). Filter code searches by language or extension. Filter content searches by contentType. Only searches within the specified workspaceSlug and optionally within a specific repoSlug. Supports pagination via limit and cursor. Requires Atlassian Bitbucket credentials configured. Returns search results as Markdown.

Input Schema

NameRequiredDescriptionDefault
contentTypeNoContent type for content search (e.g., "wiki", "issue"). Equivalent to --content-type in CLI.
cursorNoPagination cursor for retrieving the next set of results. For repositories and pull requests, this is a cursor string. For code search, this is a page number. Use this to navigate through large result sets.
extensionNoFilter code search by file extension. Equivalent to --extension in CLI.
languageNoFilter code search by language. Equivalent to --language in CLI.
limitNoMaximum number of results to return (1-100). Use this to control the response size. Useful for pagination or when you only need a few results.
queryYesSearch query text. Required. Will match against content based on the selected search scope. Equivalent to --query in CLI.
repoSlugNoOptional: Repository slug to limit search scope. Required for `pullrequests` scope. Example: "project-api". Equivalent to --repo in CLI.
scopeNoSearch scope: "code", "content", "repositories", "pullrequests". Default: "code". Equivalent to --type in CLI.code
workspaceSlugNoWorkspace slug to search in. If not provided, the system will use your default workspace. Example: "myteam". Equivalent to --workspace in CLI.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "contentType": { "description": "Content type for content search (e.g., \"wiki\", \"issue\"). Equivalent to --content-type in CLI.", "type": "string" }, "cursor": { "description": "Pagination cursor for retrieving the next set of results. For repositories and pull requests, this is a cursor string. For code search, this is a page number. Use this to navigate through large result sets.", "type": "string" }, "extension": { "description": "Filter code search by file extension. Equivalent to --extension in CLI.", "type": "string" }, "language": { "description": "Filter code search by language. Equivalent to --language in CLI.", "type": "string" }, "limit": { "description": "Maximum number of results to return (1-100). Use this to control the response size. Useful for pagination or when you only need a few results.", "maximum": 100, "minimum": 1, "type": "number" }, "query": { "description": "Search query text. Required. Will match against content based on the selected search scope. Equivalent to --query in CLI.", "minLength": 1, "type": "string" }, "repoSlug": { "description": "Optional: Repository slug to limit search scope. Required for `pullrequests` scope. Example: \"project-api\". Equivalent to --repo in CLI.", "type": "string" }, "scope": { "default": "code", "description": "Search scope: \"code\", \"content\", \"repositories\", \"pullrequests\". Default: \"code\". Equivalent to --type in CLI.", "enum": [ "code", "content", "repositories", "pullrequests" ], "type": "string" }, "workspaceSlug": { "description": "Workspace slug to search in. If not provided, the system will use your default workspace. Example: \"myteam\". Equivalent to --workspace in CLI.", "type": "string" } }, "required": [ "query" ], "type": "object" }

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