Bitbucket MCP Server for Cloudflare Workers
Get started with Bitbucket in your AI application. Choose your preferred language below.
npm install primrose-mcp
Sign up and create an API key in your dashboard
Use listTools() to discover Bitbucket tools and callTool() to execute them
import { Primrose } from 'primrose-mcp';
// Initialize the client
const primrose = new Primrose({
apiKey: 'prm_xxxxx',
provider: 'anthropic' // or: openai, google, amazon, meta, mistral
});
// List available Bitbucket tools
const tools = await primrose.listTools({ mcpServer: 'bitbucket' });
console.log(tools);
// Call a Bitbucket tool
const result = await primrose.callTool('bitbucket_bitbucket_list_commits', {
page: 'your-value',
format: 'your-value',
exclude: 'your-value',
include: 'your-value',
pagelen: 'your-value',
revision: 'your-value',
repo_slug: 'your-value',
workspace: 'your-value'
});
console.log(result);This server uses API KEY authentication.
View Full Auth Guide