Skip to main content
Glama
sanscdm

bitbucket-mcp

by sanscdm

Bitbucket MCP

A FastMCP server for Bitbucket Cloud REST API.

Features

  • List repositories

  • Get repo details

  • List branches

  • List pull requests

  • Create/manage pull requests

  • And more...

Related MCP server: Bitbucket MCP

Setup

1. Create a Bitbucket API Token

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens

  2. Click "Create API token with scopes" (not the regular one)

  3. Name it (e.g., "MCP Tool")

  4. Under "Select app", choose Bitbucket

  5. Grant the needed permissions (repo read/write, PR read/write, etc.)

  6. Copy the token

2. Set Environment Variables

export BITBUCKET_EMAIL="your-email@domain.com"
export BITBUCKET_API_TOKEN="your-api-token-here"

Or create a .env file:

BITBUCKET_EMAIL=your-email@domain.com
BITBUCKET_API_TOKEN=your-api-token-here

3. Run the Server

# Using uv (recommended)
uv run --directory /path/to/bitbucket-mcp python server.py

# Or with pip
pip install -r requirements.txt
python server.py

4. Connect via mcporter

Add to your mcporter.json:

{
  "mcpServers": {
    "bitbucket": {
      "command": "/path/to/uv",
      "args": [
        "run",
        "--directory",
        "/path/to/bitbucket-mcp",
        "python",
        "server.py"
      ],
      "env": {
        "BITBUCKET_EMAIL": "your-email@domain.com",
        "BITBUCKET_API_TOKEN": "your-api-token"
      }
    }
  }
}

Requirements

  • Python 3.10+

  • uv (optional, but recommended)

License

MIT

Install Server
F
license - not found
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that provides tools for interacting with the Bitbucket API, supporting both Bitbucket Cloud and Bitbucket Server, enabling pull request, branch, file, code review, and search operations.
    19
    4,628
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    An MCP server for Bitbucket Cloud that enables managing pull requests, branches, and repositories in natural language from any MCP-capable client.
    135
    4
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP server for Bitbucket Cloud that enables reviewing, managing, and merging pull requests, assigning reviewers by name, reading files at a ref, and inspecting pipeline status from any MCP client.
    14
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/sanscdm/bitbucket-mcp'

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