MCP server for Atlassian Bitbucket Data Center - interact with repositories and code
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Community project β not affiliated with, endorsed by, or supported by Atlassian. Use at your own discretion.
Model Context Protocol (MCP) servers that connect Claude Desktop, Claude Code, Cursor, and any other MCP-compatible AI assistant to self-hosted Atlassian Data Center (formerly Server) instances: Jira, Confluence, and Bitbucket.
Search and manage Jira issues, read and edit Confluence pages, review Bitbucket pull requests β from your AI assistant, with credentials stored in your OS keychain instead of pasted into a client config.
| Package | Version | Server for |
|---|---|---|
jira-datacenter-mcp | Jira Data Center / Server | |
confluence-datacenter-mcp | Confluence Data Center / Server | |
bitbucket-datacenter-mcp | Bitbucket Data Center / Server | |
datacenter-mcp-core | Shared runtime (installed automatically β not run directly) |
Each product is a separate package β install only the ones you need.
Each server exposes MCP tools (actions the assistant can call), resources (readable context endpoints), and prompts (ready-made workflows). Tools are grouped by domain and follow the naming pattern <product>_verb_noun (e.g. jira_search_issues, bitbucket_get_pull_request).
| Server | Tools | Resources | Prompts |
|---|---|---|---|
| Jira | 288 | 4 | 4 |
| Confluence | 115 | 4 | 4 |
| Bitbucket | 120 | 4 | 4 |
| Group | Tools | Covers |
|---|---|---|
issues | 71 | search (JQL), create/update/transition, comments, worklogs, links, attachments, watchers, votes |
projects | 48 | projects, versions, components, roles, categories |
users | 29 | user lookup/search, groups, assignable-user queries |
workflows | 25 | workflows, statuses, schemes |
agile | 22 | boards, sprints, backlog, epics |
admin | 93 | fields, screens, permissions, notification/security schemes, and other administrative reads/writes |
| Group | Tools | Covers |
|---|---|---|
content | 32 | pages/blogposts CRUD, bodies, versions, labels, children/descendants, search (CQL) |
spaces | 30 | spaces, space content, permissions, watchers |
users | 22 | users, groups, memberships |
admin | 11 | global permissions, access mode, and other admin reads |
webhooks | 9 | webhook registration and management |
attachments | 11 | upload, list, update attachments; download binary content, page attachments and embedded images |
| Group | Tools | Covers |
|---|---|---|
repositories | 55 | repos, branches, commits, files/browse (text and binary), diffs, tags, labels, settings |
pullRequests | 30 | PR CRUD, diffs/changes, inline & file comments, tasks, reviews, merge/decline, participants |
builds | 13 | build status and code-insights reports |
permissions | 8 | project/repository permission grants |
authentication | 6 | access tokens, SSH & GPG keys |
projects | 5 | project CRUD |
security | 3 | security-related reads |
Every tool carries MCP annotations (read-only vs. destructive hints), and argument completions are provided for common identifiers (project keys, board IDs, repository slugs) so compatible clients can autocomplete them.
Each package ships an interactive setup command that stores credentials in the most secure place your OS offers (macOS Keychain, or a 0600 file elsewhere). Run it once per product:
Setup prompts for host, API base path, default page size, and API token, then makes a live authenticated request to verify everything before saving β a wrong host or token is caught immediately. Leave the token blank to configure anonymous (unauthenticated) access on instances that allow it.
After setup, the server boots with zero environment variables β see Connecting a client.
Prefer explicit config? You can skip
setupentirely and pass credentials via environment variables or a shared config file instead. See the Configuration reference.
Setup accepts flags for CI or remote bootstrap (--help for the full list):
| Flag | Short | Description |
|---|---|---|
--host <value> | -H | Host, e.g. jira.example.com |
--api-base-path <value> | -b | API base path or full URL |
--token <value> | -t | API token (PAT) |
--username <value> | -u | Username for Basic auth (alternative to --token) |
--password <value> | -p | Password for Basic auth (with --username) |
--default-page-size <n> | -s | Default page size (positive integer) |
--profile <name> | -P | Named profile for a second instance of the same product |
--non-interactive | -n | No prompts; exit non-zero if a required value is missing |
--help | -h | Show usage |
In --non-interactive mode, missing values are resolved from existing configuration and the command exits 1 on the first validation failure β usable as a CI gate.
Once setup has stored your credentials, the env block can be empty. The examples below pass credentials inline for clarity; drop the env entries if you ran setup.
Set *_HOST to a domain (+ optional port) without a protocol β https:// is assumed. To point at a non-standard path or force http://, use *_API_BASE_PATH with a full URL instead (the product-specific API suffix is appended automatically β don't include it).
Config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) Β· %APPDATA%\Claude\claude_desktop_config.json (Windows). Keep only the servers you need.
After running setup, this collapses to:
Swap -e JIRA_HOST=β¦ for -e JIRA_API_BASE_PATH=https://jira.example.com/rest, or drop the -e flags entirely if you ran setup.
Any stdio MCP client works. Point it at the command npx -y <product>-datacenter-mcp and supply credentials through its env mechanism (or rely on setup). For remote/multi-client hosting, use the HTTP transport.
Three modes, resolved per request:
*_API_TOKEN. Sent as Authorization: Bearer <token>.*_USERNAME + *_PASSWORD (for older instances without PATs). Takes precedence over a token if both are configured.Authorization header is sent; works on instances that allow unauthenticated reads.| Product | Path in the web UI |
|---|---|
| Jira | Profile β Personal Access Tokens β Create token |
| Confluence | Profile/Settings β Personal Access Tokens β Create token |
| Bitbucket | Manage account β HTTP access tokens β Create token |
Give the token the minimum permissions it needs and copy it immediately β it is shown only once.
Each product reads its own prefix (JIRA_*, CONFLUENCE_*, BITBUCKET_*):
| Variable | Required | Description |
|---|---|---|
*_HOST | β ΒΉ | Domain (+ port), no protocol β e.g. jira.example.com |
*_API_BASE_PATH | β ΒΉ | Full base URL incl. protocol β alternative to *_HOST |
*_API_TOKEN | β | Personal Access Token (Bearer auth) |
*_USERNAME / *_PASSWORD | β | Basic auth pair (alternative to the token) |
*_DEFAULT_PAGE_SIZE | β | Default page size for paged endpoints |
ΒΉ Provide one of *_HOST or *_API_BASE_PATH. The API suffix is appended for you and must not be included: Jira /rest (+ /api/2), Confluence /rest/api, Bitbucket /rest (+ /api/latest).
| Variable | Default | Description |
|---|---|---|
ATLASSIAN_DC_MCP_CONFIG_FILE | β | Absolute path to a shared dotenv file (see below); fails fast if set but missing |
ATLASSIAN_DC_MCP_PROFILE | β | Selects a named profile's stored credentials (multiple instances) |
ATLASSIAN_DC_MCP_HTTP_PORT | β | Serve over HTTP instead of stdio |
ATLASSIAN_DC_MCP_LOG_LEVEL | info | debug Β· info Β· warn Β· error |
ATLASSIAN_DC_MCP_REQUEST_TIMEOUT_MS | 30000 | Per-request timeout to the Atlassian API |
ATLASSIAN_DC_MCP_MAX_RESPONSE_CHARS | 100000 | Cap on a tool result's characters; 0 disables the cap |
ATLASSIAN_DC_MCP_MAX_INLINE_BYTES | 1048576 images262144 other | Largest downloaded file returned inline instead of requiring outputPath. Setting it applies one value to both; 0 always requires outputPath |
At startup each config key is resolved by walking these sources in order and taking the first non-empty value:
| Priority | Source | Provides |
|---|---|---|
| 100 | process.env | all keys |
| 80 | env file β ATLASSIAN_DC_MCP_CONFIG_FILE, or ./.env | all keys |
| 60 | home file β ~/.atlassian-dc-mcp/<product>.env (%USERPROFILE%\β¦ on Windows) | all keys |
| 40 | macOS Keychain β service atlassian-dc-mcp, account <product>-token / <product>-password | token, password |
Process env always wins, so you can override a stored credential for a single session. Keychain reads are cached once at startup β tool calls never shell out.
To reuse one set of credentials across several MCP hosts on a machine, put the *_HOST / *_API_TOKEN / β¦ variables in one dotenv file and point every server at it with an absolute ATLASSIAN_DC_MCP_CONFIG_FILE:
setup splits secrets from non-secrets:
atlassian-dc-mcp); the copy in the home file is cleared after a successful write, so there's never a second copy in a less-secure place.~/.atlassian-dc-mcp/<product>.env, mode 0600 (your user only).%USERPROFILE%\.atlassian-dc-mcp\<product>.env, inheriting your user-profile ACL.Non-secret fields (host, base path, page size) always live in the home file.
To run two instances of the same product (e.g. two Jira sites), give each a --profile at setup and select it at launch with ATLASSIAN_DC_MCP_PROFILE:
A profile only changes which home file (<product>.<profile>.env) and Keychain account are used.
By default every server speaks stdio β what local hosts like Claude Desktop expect. Set ATLASSIAN_DC_MCP_HTTP_PORT to a positive integer to serve the Streamable HTTP transport instead (for remote/multi-client access); the two are mutually exclusive per process.
The HTTP transport carries no auth of its own beyond the configured Atlassian credentials β put your own reverse proxy, TLS, and access control in front of it before exposing it beyond localhost.
Retry-After header is honored (clamped to 30s) instead of the computed backoff. 4xx client errors are never retried.ATLASSIAN_DC_MCP_MAX_RESPONSE_CHARS (default 100k chars) are truncated with a marker, so a single broad query can't flood the context window. Set 0 to disable.outputPath: with it the file is written to disk and only its metadata comes back, so size is irrelevant. Without it the bytes are returned as their own content block (an image, or a base64 resource blob), bypassing the response cap; anything over ATLASSIAN_DC_MCP_MAX_INLINE_BYTES is refused with a pointer to outputPath rather than truncated. That ceiling is 1 MiB for raster images, which a host decodes as a picture, and 256 KiB for everything else, whose base64 a host can only read as text.All logs go to stderr as one JSON object per line ({"timestamp","level","message",β¦}), keeping stdout clean for the stdio protocol. Control verbosity with ATLASSIAN_DC_MCP_LOG_LEVEL:
A pnpm workspace monorepo. Four packages under packages/: core (shared runtime) and one per product.
Prerequisites: Node.js β₯ 26 Β· pnpm (pinned to 11.9.0 via packageManager) Β· a reachable Atlassian DC/Server instance.
Build or test a single package with --filter:
Unit tests mock the API client, so they can't catch an auth/network/API-shape regression against a real instance. Each product can run an opt-in, read-only live test that skips itself (not a failure) when unconfigured:
.env.live is gitignored β never commit real credentials.
Versioning and publishing use Changesets; all four packages move in lockstep (a fixed group). Any behavior-changing PR should include one:
Commit the generated .changeset/*.md alongside your change. Merging the resulting "Version Packages" PR is what publishes to npm and the MCP Registry.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/atlassian-dc-mcp-bitbucket)<a href="https://allmcps.com/mcp/atlassian-dc-mcp-bitbucket"><img src="https://allmcps.com/api/badge/atlassian-dc-mcp-bitbucket?style=directory" alt="Atlassian Dc Mcp Bitbucket on AllMCPs" /></a>