atlassian-mcp
Use this MCP server to connect an AI client to local git and self-hosted Jira Server/Data Center workflows (the README also advertises Bitbucket PR/review support).
Inspect git context: branch, upstream ahead/behind, remote, recent commits, status, diff stat, and diffs between refs.
Get combined dev context from git state, linked Jira ticket, PR status, and next-step hints.
Start work from a Jira ticket: resolve it, create a branch, fetch the repo README, and optionally transition/push.
Search Jira issues, projects, boards, sprints, versions, users, and issue types.
Read full Jira issue details, transitions, comments, and attachments.
Mutate Jira: create/update/transition issues, assign, comment, link, log work, manage sprints, and set fix versions.
Manage Jira comments and fix versions (create/update/release/archive/delete).
Fetch and decode Jira attachments inline, with controls for images, PDFs, audio, and video frames.
Note: this provided schema exposes git and Jira tools; README-described Bitbucket tools are not present in this schema.
Provides tools for self-hosted Atlassian products (Jira and Bitbucket), including workflow automation across tickets and pull requests.
Allows interaction with self-hosted Bitbucket instances for managing pull requests, repositories, branches, comments, tasks, and file content.
Allows interaction with self-hosted Jira instances for managing issues, projects, sprints, versions, comments, attachments, and work logs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@atlassian-mcp show my PRs waiting for review"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
atlassian-mcp
An MCP server for self-hosted Jira and Bitbucket (Server / Data Center): tickets, sprints, pull requests, review threads and local git context, in one static binary with no runtime dependencies.
Jira Cloud and Bitbucket Cloud use different APIs and are not supported.
Tools
Tool | What it does |
| Start here: git state, the linked Jira ticket and the open PR with approvals, blockers and next steps. Also readable as the resource |
| Resolve a ticket (key or free text), branch off the default branch, load the repo README, optionally transition the ticket |
| Merge the PR and move the ticket to Done; refuses while approvals are missing or a build failed ( |
| Branch, upstream, recent commits, status, diff stat; or a paged diff between refs |
|
|
| One issue in full: fields, sprint, transitions, comments, attachments; |
| Create, update, transition, comment, link, log work, add to sprint, set custom fields, attach files, delete, manage fix versions; several in one call |
|
|
| PR metadata, commits, comments, blockers, builds, optional diff, attachments |
| Create or update a PR; |
| Add, edit or delete PR comments, including suggestions and draft-review comments |
| A file at a branch, tag, commit or PR source branch, paged |
| List, create, resolve, reopen or delete PR tasks |
| A Jira or Bitbucket attachment, decoded so the model can see it: images, video and animation frames, audio, PDFs, text |
| An in-chat upload panel for files the server cannot read itself, e.g. a pasted screenshot (hosts with MCP Apps) |
Things to ask for:
"what am I working on?" · "make a branch for FOO-123" · "ship this"
"what's in the current sprint?" · "which estimates changed since the sprint started?"
"show my PRs waiting for review" · "approve PR 42" · "reply to comment 123 on PR 42"
"move FOO-123 to In Progress" · "log 2h on FOO-123" · "set story points to 5"
"what can I set on an Epic in PAY?" · "create version 9.1.0 in PAY and release it"
Related MCP server: Bitbucket Server MCP
Guarantees
Enforced in code, not left to the model:
Arguments are checked against each tool's schema; an unknown
actionorresourceis an error, never a fallback.Assignees, components, fix versions and reviewers are resolved before anything is written; a bad one comes back with the valid choices.
Markdown is converted to Jira wiki markup on every Jira write.
PR comments: one reply per thread, no duplicates, no new top-level comment on your own PR (
asAuthor=trueoverrides),#123becomes a link.Inline comments stay anchored to the commit you reviewed, remapped if the branch moved.
Reviewers are only dropped with
update.replaceReviewers=true.Truncated output always names the argument that fetches the rest.
Text the agent writes ends with a bold
[AI]line, unless the user dictated it (commentUserAuthored/userAuthored) or marking is off ("markAIText": false).
Setup
1. Configure
Create ~/.atlassian-mcp.json with a personal access token for each service:
{
"$schema": "https://raw.githubusercontent.com/stubbedev/atlassian-mcp/master/atlassian-mcp.schema.json",
"jira": { "url": "https://jira.example.com", "token": "…" },
"bitbucket": { "url": "https://bitbucket.example.com", "token": "…" }
}Or set JIRA_URL, JIRA_ACCESS_TOKEN, BITBUCKET_URL, BITBUCKET_ACCESS_TOKEN. The
config is looked up at --config <path>, $ATLASSIAN_MCP_CONFIG, ~/.atlassian-mcp.json,
$XDG_CONFIG_HOME/atlassian-mcp/config.json, then ./.atlassian-mcp.json; values in the
file win, environment variables fill the gaps.
Bitbucket project and repo are detected from your origin remote, and the Jira project from
the ticket key in your branch, so most calls need neither.
2. Install
Option | Install | Command for your client |
npx (Node 18+) | nothing |
|
npm |
|
|
Composer (PHP 8.1+) |
|
|
Claude Desktop | open the | — |
Binary |
| its path |
Go |
|
|
Nix |
|
|
npm and Composer download the release binary for your platform, verify its checksum and
cache it per version under $XDG_CACHE_HOME/atlassian-mcp/. Composer asks once to trust the
plugin (composer config allow-plugins.stubbedev/atlassian-mcp true for CI); composer global require works too. To update, re-run the install, or npx clear-npx-cache for npx.
3. Connect
claude mcp add atlassian -- npx -y @stubbedev/atlassian-mcp@latest
codex mcp add atlassian -- npx -y @stubbedev/atlassian-mcp@latest
code --add-mcp '{"name":"atlassian","command":"npx","args":["-y","@stubbedev/atlassian-mcp@latest"]}'Other clients take the common mcpServers shape:
{
"mcpServers": {
"atlassian": {
"command": "npx",
"args": ["-y", "@stubbedev/atlassian-mcp@latest", "--config", "/home/you/.atlassian-mcp.json"],
"env": { "ATLASSIAN_MCP_REPO_ROOT": "/home/you/code/my-repo" }
}
}
}Client | Where |
Claude Desktop |
|
Cursor |
|
Windsurf |
|
LM Studio, Cherry Studio, Witsy, Jan, 5ire | in-app MCP settings, same fields |
// Zed: ~/.config/zed/settings.json
{ "context_servers": { "atlassian": { "command": { "path": "npx", "args": ["-y", "@stubbedev/atlassian-mcp@latest"] } } } }
// OpenCode: opencode.json
{ "mcp": { "atlassian": { "type": "local", "command": ["npx", "-y", "@stubbedev/atlassian-mcp@latest"] } } }# Codex: ~/.codex/config.toml (note the underscore)
[mcp_servers.atlassian]
command = "npx"
args = ["-y", "@stubbedev/atlassian-mcp@latest"]# Goose: ~/.config/goose/config.yaml
extensions:
atlassian: { enabled: true, type: stdio, cmd: npx, args: ["-y", "@stubbedev/atlassian-mcp@latest"] }Desktop apps start the server with no shell, a minimal PATH and no workspace. Use
absolute paths (which npx), and set ATLASSIAN_MCP_REPO_ROOT so the git and PR tools know
which repository you mean (comma-separate several; repoPath on a call still wins). Claude
Desktop logs server output to ~/Library/Logs/Claude/mcp-server-atlassian.log.
ChatGPT only accepts remote HTTPS servers with OAuth, so it is not supported.
Personal access tokens
Jira 8.14+: profile avatar → Profile → Personal Access Tokens → Create token.
Bitbucket 5.5+: profile avatar → Manage account → Personal access tokens → Create a token, with Projects: Read and Repositories: Write (to open PRs and comment).
HTTP mode
One long-lived server can serve many clients over Streamable HTTP:
atlassian-mcp --http # 127.0.0.1:7337, same as ATLASSIAN_MCP_HTTP=1
claude mcp add --transport http atlassian http://127.0.0.1:7337/mcpThe endpoint is POST /mcp with an optional GET /mcp event stream; sessions are isolated
by Mcp-Session-Id, and GET /healthz is an unauthenticated liveness probe. Binding a
non-loopback address requires ATLASSIAN_MCP_HTTP_TOKEN (sent as a bearer token); terminate
TLS at your proxy.
The repository a call works on comes from, in order: repoPath, a root header
(X-Repo-Root, X-Mcp-Roots, X-Mcp-Root, Mcp-Roots or Mcp-Root; a path or file://
URI), ATLASSIAN_MCP_REPO_ROOT, the client's MCP roots, then the working directory (stdio
only). Repositories must be on the server's machine. MCP revision 2026-07-28 drops
server-to-client requests, so there a root header or repoPath is the only way to name one.
Attachments
attachments arguments on jira_mutate, bitbucket_mutate and bitbucket_comment accept a
local path, an http(s) URL, or a data: URI. URLs on your Jira or Bitbucket host are
fetched with your token, which is never sent anywhere else; downloads are capped at 250 MB.
Files pasted into the chat have no path, so use attach_files for those.
get_attachment decodes in-process, with no ffmpeg or other tools: images (including
AVIF, HEIC and JPEG XL) are resized; animations and video (H.264, Motion JPEG, VP8 keyframes)
become sampled frames; PDFs become text, or page images when scanned. Anything else is saved
to a temp file whose path is returned; saveTo keeps the original.
Git also runs in-process. Fetch and push use ssh-agent, ~/.ssh keys and known_hosts,
~/.git-credentials, ~/.netrc, or the Bitbucket token; credential helpers, hooks and LFS
do not run.
Environment
Variable | Purpose | Default |
| Config file path | see Configure |
| Default repository root(s), comma-separated | unset |
| Serve HTTP: | stdio |
| Bearer token; required off loopback | unset |
|
|
|
| Age limit for auto-saved attachments |
|
| Size limit for auto-saved attachments | 1 GB |
|
| unset |
Development, releases and internals: MAINTAINERS.md.
Available Tools
10 toolsget_dev_contextA
Master entry point for "what am I working on / what's the status", and before any review or coding task. Returns: git branch + upstream state, Jira ticket overview (status, transitions, sprint, comments), open PR with reviewer approvals, and actionable next-step hints (create PR, merge, address blockers).
Inputs: repoPath.
git_get_contextA
Start here for any coding or review task: current branch, upstream ahead/behind, remote URL, recent commits, working tree status, diff stat summary, and Jira keys detected in the branch name. Pass includeDiff=true to also include the full uncommitted diff.
Inputs: repoPath, commitLimit, includeDiff.
git_get_diffA
Get a diff between two git refs or commits. Use when you need to compare a feature branch to main, inspect a specific commit range, or review changes between two refs. For large diffs, increase maxChars or use charOffset to page through them.
Inputs: repoPath, fromRef, toRef, maxChars, +1 more.
jira_commentA
Add, update, or delete a comment on a Jira issue. action defaults to "add". Can only edit/delete your own comments. Use Jira wiki markup (Atlassian renderer syntax), not GitHub/CommonMark markdown.
Inputs: issueKey (required), action, commentId, body.
jira_getA
Full details for one Jira issue: summary, description, status, assignee, sprint, available transitions, recent comments, and a list of attachments (filename, size, mime type, attachment ID). To view an attachment's contents (e.g. an image), call jira_get_attachment with the attachment ID surfaced here.
Inputs: issueKey (required), includeComments, commentsMaxResults, commentsStartAt, +3 more.
jira_get_attachmentA
Fetch a Jira attachment by ID and return its contents inline. Images are auto-resized + re-encoded; text/JSON/XML return as text; videos and animated images (GIF/APNG/animated WebP) are decoded with ffmpeg into sampled frames (re-call with start/end/frames or mode=scenes to refine); audio returns as an audio block; PDFs return extracted text. Oversized/non-renderable files are saved to a temp file and the path returned. Use jira_get first to discover attachment IDs.
Inputs: attachmentId (required), saveTo, maxDimension, quality, +5 more.
jira_mutateA
Create/update a ticket, transition status, assign, comment, link issues, or log work — bundles create/update/transition/comment/link/worklog in one call. Use Jira wiki markup (Atlassian renderer syntax), not GitHub/CommonMark markdown.
Inputs: issueKey, create, update, sprintId, +6 more.
jira_searchA
Discover Jira resources (tickets, projects, boards, sprints, versions, users). Set resource:
• "issues" (default) — search by text, JQL, project, status, assignee, issue type, or mine=true for your queue
• "projects" — list all projects and their keys
• "issue_types" — valid types and statuses for a project
• "boards" — list boards (pass project to filter by project key); use this to find the boardId before fetching sprints or board_overview
• "sprints" — sprints for a board (pass boardId); if you don't know the boardId, first use resource=boards
• "board_overview" — active/future sprints with their issues for a board (pass boardId); use when asked "what's in the sprint", "show me the board", or "what's everyone working on"
• "versions" — list fix versions/releases for a project (pass project; optionally pass query to filter by name substring). If the version you need does not exist, create it yourself with jira_version action=create — do NOT ask the user to make it in the Jira UI.
• "users" — find users by name/email (pass query)
Inputs: resource, mine, query, jql, +9 more.
jira_versionA
Manage Jira fix versions (releases): create, update, release, archive, delete. action defaults to "create". For create pass projectKey + name. For update/release/archive/delete pass id (look it up via jira_search resource=versions). "release" sets released=true and defaults releaseDate to today. Once a version exists you can set it on tickets via jira_mutate update.fixVersion.
Inputs: action, projectKey, project, id, +6 more.
start_workA
Start working on a Jira ticket end-to-end: resolves the ticket (by key or free-text search with a picker when multiple match), creates a local branch with an auto-generated name, fetches the project README from Bitbucket so you have commit/PR conventions in context, and prints a next-steps summary. If issueKey is omitted, provide query for free-text search.
Inputs: issueKey, query, repoPath, baseBranch, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
git_get_context and get_dev_context both claim to be the master entry point for coding/review tasks and return heavily overlapping git+Jira status information, making it unclear which one to call. jira_comment also duplicates the comment capability already bundled inside jira_mutate, further blurring tool boundaries.
Most Jira tools follow a readable jira_<verb_or_noun> pattern and Git tools use git_get_*, but get_dev_context and start_work break the prefix convention, and jira_mutate uses a vague verb instead of a concrete resource-action name. The naming is still mostly predictable despite these deviations.
10 tools is a reasonable size for a combined Jira/Git workflow and covers the major operations without feeling bloated. The count is slightly higher than needed because of overlapping entry-point tools and duplicated comment functionality, but it is still well within an appropriate range.
The set covers core Jira lifecycle operations, attachment retrieval, version management, git context, and diff inspection. Notable gaps include PR creation/merging despite those actions being hinted at in descriptions, and no explicit issue deletion, but most workflows can be completed with the existing tools.
Maintenance
Related MCP Connectors
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Answers questions about how your product works, from your GitHub or GitLab code.
Plain-English git for agents: 22 tools to branch, commit, push and tag. Free tier.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Bitbucket Cloud and self-hosted instances for pull request reviews, code search, repository operations, and managing PR comments and approvals.19GPL 3.0
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Bitbucket Server/Data Center for reviewing pull requests, managing repositories, searching users, and more.149 npm4MIT
- AlicenseAqualityDmaintenanceEnables to interact with Bitbucket Server repositories, pull requests, and code reviews, including file browsing, PR management, and review actions through natural language.5916 npmApache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables interaction with self-hosted Jira instances via Personal Access Token, supporting issue management and project operations through natural language.-