bitbucket-mcp
An MCP server for Bitbucket Cloud, covering pull requests, pull request comments, and pipelines.
README
bitbucket-mcp
⚠️ This is a personal project built for fun and carries no support or guarantees. For anything that matters, prefer the official Atlassian MCP server.
An MCP server for Bitbucket Cloud, covering pull requests, pull request comments, and pipelines. Distributed as a Claude Code plugin.
Setup
Requires uv on PATH.
1. Install
claude plugin marketplace add Zomino/bitbucket-mcp
claude plugin install bitbucket@bitbucket
2. Create a token
Create a Bitbucket API token at https://id.atlassian.com/manage-profile/security/api-tokens. Grant exactly these scopes:
| Scope | Why |
|---|---|
read:pullrequest:bitbucket |
List and read pull requests, diffs, commits, statuses, and comments |
write:pullrequest:bitbucket |
Create, update, comment, approve, request changes, decline, and merge |
read:pipeline:bitbucket |
Read pipelines, steps, and step logs |
read:repository:bitbucket |
Read the repository content behind pull request diffs and commits |
With BITBUCKET_READ_ONLY=true, drop write:pullrequest:bitbucket and grant
only the three read: scopes.
3. Set the env vars
Set these in the env block of a Claude Code settings file
(~/.claude/settings.json for every project, or .claude/settings.json for
one), then restart the session.
{
"env": {
"BITBUCKET_WORKSPACE": "my-workspace",
"BITBUCKET_REPO": "my-repo",
"BITBUCKET_USERNAME": "me@example.com",
"BITBUCKET_API_TOKEN": "…"
}
}
| Variable | Required | Default | Purpose |
|---|---|---|---|
BITBUCKET_WORKSPACE |
yes | Workspace slug | |
BITBUCKET_REPO |
yes | Repository slug | |
BITBUCKET_USERNAME |
yes | Atlassian account email | |
BITBUCKET_API_TOKEN |
yes | Token from step 2 | |
BITBUCKET_READ_ONLY |
no | false |
Expose read-only tools only |
BITBUCKET_ENABLE_PULL_REQUESTS |
no | true |
Toggle pull request tools |
BITBUCKET_ENABLE_PIPELINES |
no | true |
Toggle pipeline tools |
Development
- Run the test suite with
uv run pytest. - Build a wheel with
uv build. - Publish with
uv publish.
One server instance targets one workspace and repository, selected by the env vars above.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.