
Atlassian Attachments
io.github.alyiox由 GitHub 帳號 alyiox 發布v0.3.0更新於 Oct 27, 2026
MCP server for downloading, uploading, and deleting Jira Cloud attachments by ID.
發布方自己的服務:Atlassian Rovo MCP Server
概覽
本機 MCP 伺服器,用於在 Jira Cloud 與本機磁碟之間搬移附件檔案:依 ID 下載、上傳到議題、解析媒體 ID 以及刪除。
- 可以做什麼
- 依附件 ID 將 Jira 附件下載到本機目錄,可選擇覆寫檔名與是否覆蓋既有檔案
- 把本機檔案作為附件上傳到 Jira 議題,並回傳其媒體 ID
- 把既有附件解析為 ADF 媒體節點參照(唯讀)
- 依 ID 永久刪除附件,並回報被刪除的內容
- 適用情境
- 當助理需要把 Jira 附件下載到本機、把本機檔案附加到議題,或取得在描述或留言中內嵌附件所需的媒體 UUID 時使用。它的定位是官方 Atlassian MCP 伺服器的補充,後者負責搜尋與議題內容,但不處理檔案傳輸。
- 執行需求
- 透過 uvx 從 PyPI 套件在本機執行,需要 Python 3.13+。需要 Atlassian Cloud 帳號以及三項設定:ATLASSIAN_SITE_URL(必須為 HTTPS)、ATLASSIAN_EMAIL 和 ATLASSIAN_API_TOKEN,可透過環境變數或設定檔提供。權杖需具備 read:jira-work 權限,上傳與刪除還需 write:jira-work。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Atlassian Attachments,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MCP Jira Attachments
[CI] [PyPI] [Python 3.13+] [License: MIT]
A Model Context Protocol (MCP) server for downloading Jira Cloud attachments by attachment ID to local disk, and uploading local files as attachments to a Jira issue.
Supplement to the official Atlassian MCP server. The official Atlassian MCP server covers search, issue management, and content operations but does not move attachment files between Jira and local disk. This server fills that gap.
Requirements: Python 3.13+, an Atlassian Cloud account, and an API token with at least the read:jira-work scope. Uploading also needs write:jira-work.
Authentication
Scoped tokens are recommended to limit access to exactly the permissions needed.
Note: The granular
read:attachment:jirascope is not sufficient — Jira's attachment metadata endpoint (/rest/api/3/attachment/{id}) requiresread:jira-workto resolve issue-level permissions. A classic (unscoped) API token also works.
Create an API token
- Go to id.atlassian.com/manage-profile/security/api-tokens
- Click Create API token
- Choose "Create API token with scopes" and select
read:jira-work(addwrite:jira-workto upload), or choose "Classic API token" for full access - Copy the generated token
Quick start
The fastest way to try the server is with the MCP Inspector. Set the three required environment variables and run:
From the published package (no clone needed):
From a local clone:
Configuration
Set environment variables or create a config file. Environment variables take priority.
Environment variables:
Config file (~/.config/mcp-atlassian-attachments/config.json):
Tools
download_jira_attachment
Returns:
upload_jira_attachment
Returns:
Each call adds a new attachment; Jira does not replace a same-named file. Uploads larger than the site attachment size limit fail with a 413.
get_jira_attachment_reference
Read-only. Returns mediaId for an attachment that is already on an issue:
After an upload you do not need this tool — upload_jira_attachment already returns mediaId, so embedding costs no extra call.
delete_jira_attachment
Needs write:jira-work. Metadata is read before the delete, so the result reports what was removed and a missing ID fails without attempting anything:
There is no undo. Jira deletes the file outright, and a second call to the same ID fails with
404.Deleting does not clean up references. If the attachment was embedded in a description or comment, the ADF media node stays exactly where it was and becomes a dangling reference — verified against a live issue. Remove the node yourself if you delete a file that was referenced.
Referencing an attachment in a description or comment
Uploading a file attaches it, but nothing appears inline in the description or a comment. Rendering it requires an ADF media node — and that node identifies the file by its Media Services UUID, not by the numeric attachment ID:
No Jira attachment metadata endpoint exposes that UUID, which is why this server resolves it: GET /rest/api/3/attachment/content/{id} answers with a 303 to https://api.media.atlassian.com/file/{mediaId}/binary, so reading the Location header without following the redirect yields the UUID at no download cost. The UUID exists as soon as the file is attached — it does not depend on the attachment being referenced anywhere.
Both tools therefore return mediaId. Writing the node into the issue is deliberately left to a Jira content tool such as the official Atlassian MCP server, whose addCommentToJiraIssue and editJiraIssue accept contentFormat: "adf" — this server moves files and does not edit issue content:
upload_jira_attachment→ takemediaIdfrom the result- Post a comment with an ADF body wrapping a media node built from it:
For a description, read the existing ADF, append the node, and write the whole document back — PUT /rest/api/3/issue/{key} replaces the field rather than appending to it.
Notes:
- A bare
medianode is not rendered; it must be wrapped inmediaSingle(single file),mediaGroup(file-card list), ormediaInline(inline chip). collectionis""for Jira issue attachments.- Optional
width/heighton the media node set the intrinsic pixel size, and are only honoured insidemediaSingle. mediaIdis best-effort: if the redirect cannot be read it comes backnull, and the upload itself still succeeds.
Simpler alternative: v2 wiki markup
The older v2 endpoints still accept wiki markup and convert it to ADF server-side, resolving the attachment by filename — so no media UUID is needed:
Jira stores that as a proper media node with the correct UUID filled in. Confirmed working on Jira Cloud as of August 2026.
Two behaviours to know about, both verified against a live issue:
- Dimensions are a fixed placeholder, not the real ones. The conversion always writes
width: 200, height: 183regardless of the image — a 64x48 and an 8x8 PNG both came back as 200x183.!file|width=300!sets the width but leaves height at 183, so the aspect ratio is wrong unless you write the ADF yourself. - Duplicate filenames resolve to the oldest. With two attachments both named
ambiguous.png,!ambiguous.png!resolved to the first one uploaded. Re-uploading under the same name to "update" an image will keep showing the old file.
Prefer mediaId when you want to be explicit: it is unambiguous with duplicate names, it lets you set true dimensions, it works with v3/ADF (which is what the official Atlassian MCP server writes), and it does not depend on a legacy path Atlassian may eventually retire.
MCP host configuration
Add the following to your MCP host's config file. The JSON is the same for Cursor (.cursor/mcp.json), Claude Desktop (claude_desktop_config.json), and Claude Code (.claude.json).
Security
ATLASSIAN_API_TOKENis never logged or included in error messages.- The computed
Authorizationheader is never exposed in tool output or errors. - File writes are confined to the provided
output_dir. - Filenames are sanitized to prevent path traversal, both on download and on the name sent to Jira.
- Uploads read exactly the file at
file_pathand send nothing else.
Tests
Roadmap
download_confluence_attachment_tool— Confluence Cloud uses a different API (/wiki/api/v2/) and a different identifier model. Planned for a future release.
License
MIT. See LICENSE.
來源:README.md,提交 ed1980b
工具
0版本歷史
1- v0.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Atlassian 整合

Atlassian Rovo MCP Server
com.atlassian官方發布者
Atlassian 官方遠端 MCP 伺服器,讓助理搜尋、讀取、建立與更新 Jira、Confluence、Bitbucket、Compass、Loom 及平台資料。

Atlassian (browser SSO)
由 GitHub 帳號 GeiserX 發布
本機 MCP 伺服器,提供完整的 mcp-atlassian Jira 與 Confluence 工具集,以你自己的 SSO 瀏覽器工作階段而非 API 權杖進行驗證。

Mcp Atlassian Extended
由 GitHub 帳號 vish288 發布
面向 Jira 與 Confluence 的 MCP 伺服器,可處理議題、連結、附件、看板、衝刺、版本與團隊行事曆,並支援唯讀鎖定。

Atlassian Dc Mcp Jira
由 GitHub 帳號 b1ff 發布
用於 Atlassian Jira Data Center 的 MCP 伺服器 - 搜尋、檢視和建立問題AI 翻譯

Atlassian Dc Mcp Confluence
由 GitHub 帳號 b1ff 發布
MCP server for Atlassian Confluence Data Center - access and manage content