Model Context Protocol (MCP) server for Bitbucket Cloud and Server API integration
Model Context Protocol (MCP) server for Bitbucket Cloud and Server API integration
A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs. This MCP server enables AI assistants like Cursor to interact with your Bitbucket repositories, pull requests, and other resources.
Checkout out the official npm package This server implements the Model Context Protocol standard to provide AI assistants with access to Bitbucket data and operations. It includes tools for:
Once Bitbucket is connected, these are the calls the assistant has available:
Pagination — Unless noted otherwise, listing tools accept the following optional parameters:listRepositories — The listRepositories tool exposed by this servergetRepository — The getRepository tool exposed by this servergetPullRequests — The getPullRequests tool exposed by this servercreatePullRequest — The createPullRequest tool exposed by this servergetPullRequest — The getPullRequest tool exposed by this serverupdatePullRequest — The updatePullRequest tool exposed by this servergetPullRequestActivity — The getPullRequestActivity tool exposed by this serverapprovePullRequest — The approvePullRequest tool exposed by this serverunapprovePullRequest — The unapprovePullRequest tool exposed by this serverdeclinePullRequest — The declinePullRequest tool exposed by this servermergePullRequest — The mergePullRequest tool exposed by this serverlistRepositories — The listRepositories tool exposed by this server.getRepository — The getRepository tool exposed by this server.getPullRequests — The getPullRequests tool exposed by this server.createPullRequest — The createPullRequest tool exposed by this server.getPullRequest — The getPullRequest tool exposed by this server.updatePullRequest — The updatePullRequest tool exposed by this server.getPullRequestActivity — The getPullRequestActivity tool exposed by this server.approvePullRequest — The approvePullRequest tool exposed by this server.unapprovePullRequest — The unapprovePullRequest tool exposed by this server.declinePullRequest — The declinePullRequest tool exposed by this server.mergePullRequest — The mergePullRequest tool exposed by this server.requestChanges — The requestChanges tool exposed by this server.removeChangeRequest — The removeChangeRequest tool exposed by this server.Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| listRepositories | The listRepositories tool exposed by this server. |
| getRepository | The getRepository tool exposed by this server. |
| getPullRequests | The getPullRequests tool exposed by this server. |
| createPullRequest | The createPullRequest tool exposed by this server. |
| getPullRequest | The getPullRequest tool exposed by this server. |
| updatePullRequest | The updatePullRequest tool exposed by this server. |
| getPullRequestActivity | The getPullRequestActivity tool exposed by this server. |
| approvePullRequest | The approvePullRequest tool exposed by this server. |
| unapprovePullRequest | The unapprovePullRequest tool exposed by this server. |
| declinePullRequest | The declinePullRequest tool exposed by this server. |
| mergePullRequest | The mergePullRequest tool exposed by this server. |
| requestChanges | The requestChanges tool exposed by this server. |
| removeChangeRequest | The removeChangeRequest tool exposed by this server. |
{
"mcpServers": {
"bitbucket-1": {
"command": "npx",
"args": ["-y", "bitbucket-mcp"],
"env": {
"BITBUCKET_URL": "your-value",
"BITBUCKET_WORKSPACE": "your-value",
"BITBUCKET_USERNAME": "your-value",
"BITBUCKET_PASSWORD": "your-value",
"BITBUCKET_TOKEN": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| BITBUCKET_URL | Endpoint or connection string the server talks to. | Yes |
| BITBUCKET_WORKSPACE | Configuration value read at startup. | Optional |
| BITBUCKET_USERNAME | Configuration value read at startup. | Optional |
| BITBUCKET_PASSWORD | Configuration value read at startup. | Optional |
| BITBUCKET_TOKEN | Credential the server authenticates with. | Yes |
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
Connect GitHub MCP to repositories, issues and pull requests with GitHub’s hosted service or a locally run server.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Search Linear issues and projects, inspect work context and manage updates through Linear’s hosted MCP server with OAuth.