Skip to main content

MCP server for Bitbucket with dual auth (Cloud + Data Center), repos, PRs, branches, and more

Project description

Atlassian MCP Servers

A monorepo of Model Context Protocol (MCP) servers for Atlassian products, built on FastMCP 3.

Server Tools Package
Jira 37 atlassian-jira-mcp
Confluence 41 atlassian-confluence-mcp
Bitbucket 44 atlassian-bitbucket-mcp

Structure

atlassian/
├── jira-mcp-server/          # Issues, boards, sprints, workflows
├── confluence-mcp-server/    # Pages, spaces, blogs, search
└── bitbucket-mcp-server/     # Repos, PRs, branches, builds

Installation

Each server is an independent Python package. Install from the server directory:

cd jira-mcp-server && pip install -e ".[dev]"
cd confluence-mcp-server && pip install -e ".[dev]"
cd bitbucket-mcp-server && pip install -e ".[dev]"

Requires Python 3.10+.

Authentication

All three servers support dual authentication modes, auto-detected from environment variables.

Atlassian Cloud

Uses Basic auth with your email and an API token.

# Jira Cloud
export JIRA_MCP_URL=https://yoursite.atlassian.net
export JIRA_MCP_EMAIL=you@company.com
export JIRA_MCP_TOKEN=your-api-token

# Confluence Cloud
export CONFLUENCE_MCP_URL=https://yoursite.atlassian.net/wiki
export CONFLUENCE_MCP_EMAIL=you@company.com
export CONFLUENCE_MCP_TOKEN=your-api-token

# Bitbucket Cloud
export BITBUCKET_MCP_URL=https://api.bitbucket.org
export BITBUCKET_MCP_EMAIL=you@company.com
export BITBUCKET_MCP_TOKEN=your-app-password

Self-Hosted (Data Center)

Uses Bearer auth with a personal access token.

# Jira Data Center
export JIRA_MCP_URL=https://jira.company.com
export JIRA_MCP_TOKEN=your-personal-access-token

# Confluence Data Center
export CONFLUENCE_MCP_URL=https://confluence.company.com
export CONFLUENCE_MCP_TOKEN=your-personal-access-token

# Bitbucket Data Center
export BITBUCKET_MCP_URL=https://bitbucket.company.com
export BITBUCKET_MCP_TOKEN=your-personal-access-token

Auto-Detection

  • If EMAIL is set: Cloud mode (Basic auth)
  • If only TOKEN is set: Data Center mode (Bearer auth)
  • Set AUTH_TYPE=cloud or AUTH_TYPE=pat to override

MCP Client Configuration

Add to your .mcp.json (e.g., for Claude Code):

{
  "mcpServers": {
    "jira": {
      "command": "atlassian-jira-mcp",
      "env": {
        "JIRA_MCP_URL": "https://yoursite.atlassian.net",
        "JIRA_MCP_EMAIL": "you@company.com",
        "JIRA_MCP_TOKEN": "your-api-token"
      }
    },
    "confluence": {
      "command": "atlassian-confluence-mcp",
      "env": {
        "CONFLUENCE_MCP_URL": "https://yoursite.atlassian.net/wiki",
        "CONFLUENCE_MCP_EMAIL": "you@company.com",
        "CONFLUENCE_MCP_TOKEN": "your-api-token"
      }
    },
    "bitbucket": {
      "command": "atlassian-bitbucket-mcp",
      "env": {
        "BITBUCKET_MCP_URL": "https://api.bitbucket.org",
        "BITBUCKET_MCP_EMAIL": "you@company.com",
        "BITBUCKET_MCP_TOKEN": "your-app-password"
      }
    }
  }
}

Development

# Run tests (from any server directory)
pytest

# Lint
ruff check src/ tests/

# Type check
mypy src/

All servers enforce 100% test coverage.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atlassian_bitbucket_mcp-1.3.0.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atlassian_bitbucket_mcp-1.3.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file atlassian_bitbucket_mcp-1.3.0.tar.gz.

File metadata

  • Download URL: atlassian_bitbucket_mcp-1.3.0.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for atlassian_bitbucket_mcp-1.3.0.tar.gz
Algorithm Hash digest
SHA256 c3986f9d88ecc7142de67d8df76d8a410041ba138edfe62565bc958c89cd5121
MD5 30e2a58216efd8fd81bc5ed3273d0ab1
BLAKE2b-256 1ab791d4ac0bf6b1bbf1211a5724d09ace093af6e4c421c3df2209fa5196b996

See more details on using hashes here.

File details

Details for the file atlassian_bitbucket_mcp-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for atlassian_bitbucket_mcp-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5202edb9aee11f584b82b7e4f40b1357270a26286b6ac7a779f1770729834d10
MD5 008bde36fc0f913cfe4b1754d3b1c2d1
BLAKE2b-256 f54f892aaf3da0a48bf95b28dbc923eb9260410bb1cf9a7709e7fe7d716a8518

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page