mcp-atlassian-attachments
This server is an MCP tool for moving Jira Cloud attachment files between Jira and local disk, complementing the official Atlassian MCP server.
Download a Jira attachment by ID to a local directory, with optional filename override and overwrite control.
Upload a local file as an attachment to a Jira issue, optionally renaming it and returning attachment metadata plus a media UUID for embedding.
Resolve an existing attachment into an ADF media reference, returning its Media Services UUID for use in descriptions or comments.
Permanently delete a Jira attachment by ID, reporting what was removed.
Use Jira wiki markup as a simpler alternative for referencing attachments by filename, though with known limitations.
Configure via environment variables or a config file, with scoped API token support for read and write operations.
Enables downloading Jira Cloud attachments by attachment ID to local disk, including metadata such as filename, MIME type, and size.
Click on "Install 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., "@mcp-atlassian-attachmentsDownload Jira attachment 439535 to ./downloads"
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.
MCP Atlassian Attachments
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
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 accessCopy the generated token
Related MCP server: MCP Atlassian
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):
ATLASSIAN_SITE_URL=https://yourorg.atlassian.net \
ATLASSIAN_EMAIL=your.email@example.com \
ATLASSIAN_API_TOKEN=your-api-token \
npx -y @modelcontextprotocol/inspector uvx mcp-atlassian-attachmentsFrom a local clone:
ATLASSIAN_SITE_URL=https://yourorg.atlassian.net \
ATLASSIAN_EMAIL=your.email@example.com \
ATLASSIAN_API_TOKEN=your-api-token \
npx -y @modelcontextprotocol/inspector uv run mcp-atlassian-attachmentsConfiguration
Set environment variables or create a config file. Environment variables take priority.
Environment variables:
export ATLASSIAN_SITE_URL="https://yourorg.atlassian.net"
export ATLASSIAN_EMAIL="your.email@example.com"
export ATLASSIAN_API_TOKEN="your-api-token"Config file (~/.config/mcp-atlassian-attachments/config.json):
{
"site_url": "https://yourorg.atlassian.net",
"email": "your.email@example.com",
"api_token": "your-api-token"
}Tools
Tool | Description | Required params |
| Download a Jira attachment by ID. |
|
| Upload a local file as an attachment on a Jira issue. |
|
| Resolve an existing attachment into an ADF media node. |
|
| Permanently delete an attachment by ID. |
|
download_jira_attachment
Parameter | Type | Description |
| string | Jira attachment ID |
| string | Local directory for the saved file. Created automatically if it does not exist. |
| string (optional) | Override filename. Uses metadata filename when omitted. |
| bool (optional) | Replace an existing file. Defaults to |
Returns:
{
"product": "jira",
"attachmentId": "439535",
"filename": "screenshot.png",
"mimeType": "image/png",
"size": 496724,
"path": "/your/output/dir/screenshot.png",
"attachmentUrl": "https://yourorg.atlassian.net/rest/api/3/attachment/content/439535"
}upload_jira_attachment
Parameter | Type | Description |
| string | Jira issue key or ID, for example |
| string | Path to the local file to upload. Must exist. |
| string (optional) | Name to store in Jira. Uses the local filename when omitted. |
Returns:
{
"product": "jira",
"issueKey": "PROJ-123",
"attachmentId": "600100",
"filename": "report.png",
"mimeType": "image/png",
"size": 24581,
"path": "/your/local/dir/report.png",
"attachmentUrl": "https://yourorg.atlassian.net/rest/api/3/attachment/content/600100",
"mediaId": "6df94659-caa7-4561-bbe3-6384ec534bba"
}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
Parameter | Type | Description |
| string | Jira attachment ID |
Read-only. Returns mediaId for an attachment that is already on an issue:
{
"product": "jira",
"attachmentId": "439535",
"filename": "screenshot.png",
"mimeType": "image/png",
"size": 496724,
"attachmentUrl": "https://yourorg.atlassian.net/rest/api/3/attachment/content/439535",
"mediaId": "6df94659-caa7-4561-bbe3-6384ec534bba"
}After an upload you do not need this tool — upload_jira_attachment already returns mediaId, so embedding costs no extra call.
delete_jira_attachment
Parameter | Type | Description |
| string | Jira attachment ID to delete permanently |
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:
{
"product": "jira",
"attachmentId": "481718",
"filename": "delete-me.txt",
"mimeType": "text/plain",
"size": 31,
"deleted": true
}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:
{
"type": "mediaSingle",
"attrs": { "layout": "center" },
"content": [
{
"type": "media",
"attrs": {
"type": "file",
"id": "6df94659-caa7-4561-bbe3-6384ec534bba",
"collection": "",
"alt": "report.png"
}
}
]
}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 resultPost a comment with an ADF body wrapping a media node built from it:
{
"version": 1,
"type": "doc",
"content": [
{ "type": "paragraph", "content": [{ "type": "text", "text": "Latest run:" }] },
{ "type": "mediaSingle", "attrs": { "layout": "center" }, "content": [ "...the media node..." ] }
]
}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:
POST /rest/api/2/issue/PROJ-123/comment
{ "body": "See attached: !report.png|thumbnail!" }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).
{
"mcpServers": {
"atlassian": {
"command": "uvx",
"args": ["mcp-atlassian-attachments"],
"env": {
"ATLASSIAN_SITE_URL": "https://yourorg.atlassian.net",
"ATLASSIAN_EMAIL": "your.email@example.com",
"ATLASSIAN_API_TOKEN": "your-api-token"
}
}
}
}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
uv run pytest tests/ -vRoadmap
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.
Available Tools
1 tooldownload_jira_attachmentA
[Atlassian] Download Jira attachment by ID to a local directory.
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Uses Jira metadata filename when omitted. | |
| overwrite | No | Replace an existing file when true. Fail if the file exists when false. | |
| output_dir | Yes | Local directory to save the file. Created automatically if it does not exist. | |
| attachment_id | Yes | Jira attachment ID, for example 439535. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description should disclose behavioral traits like side effects (file system writes) and requirements (authentication). It only states 'download...to local directory', missing details about overwrite behavior (though schema provides some), network calls, or error conditions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that front-loads the core action. No unnecessary words, making it easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that an output schema exists (context signals indicate true), the description does not need to explain return values. However, the description lacks context about usage scenarios and is brief; some behavioral aspects are covered by the schema but overall completeness is adequate but not outstanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% coverage with descriptions for all four parameters. The tool description does not add extra meaning beyond what the schema provides, resulting in a baseline score.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (download), the resource (Jira attachment by ID), and the destination (local directory). It is specific and unambiguous, effectively conveying the tool's purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool, prerequisites, or alternatives. However, the tool's purpose is straightforward, so the lack of usage guidelines is not severely detrimental.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.2- First observed
download_jira_attachment
TDQS
With only one tool, there is no possibility of confusion between tools.
The single tool uses a clear verb_noun pattern (download_jira_attachment), consistent with good naming conventions.
The server is named 'attachments' but provides only a download tool; this is far too few for the implied scope.
Missing fundamental operations like upload, delete, or list attachments, leaving agents with a dead-end workflow.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
An MCP server that provides access to Testiny projects, test cases and test runs
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceModel Context Protocol (MCP) server for Atlassian Cloud products (Confluence and Jira). This integration is designed specifically for Atlassian Cloud instances and does not support Atlassian Server or Data Center deployments.5,853MIT
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that integrates with Atlassian Confluence and Jira, enabling AI assistants to search, create, and update content in these platforms through natural language interactions.1MIT
- AlicenseNot gradedqualityDmaintenanceA clean and focused Model Context Protocol (MCP) server that provides seamless integration between AI assistants and Jira, enabling natural language interaction with your Jira projects, issues, and workflows.5MIT
- AlicenseNot gradedqualityBmaintenanceModel Context Protocol (MCP) server for Atlassian products (Confluence and Jira). Supports both Cloud and Server/Data Center deployments.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alyiox/mcp-atlassian-attachments'
If you have feedback or need assistance with the MCP directory API, please join our Discord server