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 38 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.0.0.tar.gz (18.1 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.0.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atlassian_bitbucket_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for atlassian_bitbucket_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab90c1434958cd9bac47c460b43588923c5f9a8f66bd33091b59d9c92dde6ae3
MD5 47cfa2a390f5fe62a9e8efeed65bfd2a
BLAKE2b-256 78f334bdf738e4db362f3539b3cbbaa373cd8e89b06b407a987a3d5a08d2e5b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlassian_bitbucket_mcp-1.0.0.tar.gz:

Publisher: publish.yml on troylar/atlassian-mcp-servers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for atlassian_bitbucket_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a522006b29416f49534218a75f85c33b2d3f8f1a6f4dcec205d7dff3cb2bc5e
MD5 c5561e9b6556fef15262f263037cacb6
BLAKE2b-256 f83f7565bb16a0d4359b66091dbbf0e6e7cf7bcb3fcd6218db2a357ede6d2a43

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlassian_bitbucket_mcp-1.0.0-py3-none-any.whl:

Publisher: publish.yml on troylar/atlassian-mcp-servers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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