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.1.0.tar.gz (22.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.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atlassian_bitbucket_mcp-1.1.0.tar.gz
  • Upload date:
  • Size: 22.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.1.0.tar.gz
Algorithm Hash digest
SHA256 429343c95b90e2fa082d3bdd0bbf50129169029823f3ca1bc3d0de3a9d676bc3
MD5 ac47eedf7c7e87417aaa62cf6264d823
BLAKE2b-256 c6367af92c077ed88aa10e6f43b4dda405ba83f15d9ca1c1054799fc6c5e7d1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for atlassian_bitbucket_mcp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a70e9a4740f35739e0b56e7cf526301b94a8e1727112397ad80980e90ddfb488
MD5 db90cef3f9570d58060e8264af4258a8
BLAKE2b-256 b700b23fac8993939e00c8d940d9ddf23d151405e77c3fa546fea9ff7b416a00

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