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.2.0.tar.gz (24.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.2.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atlassian_bitbucket_mcp-1.2.0.tar.gz
  • Upload date:
  • Size: 24.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 6fe366ba7fac228eeed0ae24c29395c1b2318e8d01cb7859137b5d5291ca12b8
MD5 367d583a9a679436b48181421730d4ba
BLAKE2b-256 b8293547555c6797abacc340af800b086e7f3f8187b3b3cd9c372a0b97d95ee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for atlassian_bitbucket_mcp-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6004565936260c28cf70009241a95f7231de7eb8ce66e36bfcfdd2fbf8838d7
MD5 d235f4f2df5e64173165204e68f911e2
BLAKE2b-256 273bac04d4a5eafb752c23953612e020de7f8d021ed39ae97a2e8e8d255983cc

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