
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