Aktar
OfficialThe Aktar MCP server lets an agent interact with the Aktar app to upload files, create/share links, browse storage, and inspect upload/status data.
Check whether Aktar is running, its version, and the selected destination.
List configured storage destinations, including kind, provider, bucket, link base, selected state, and file-type uses.
Search upload history by file name/key and destination, newest first.
Upload local files with optional destination, custom name, folder, expiry, and short-link choice; returns link plus Markdown and HTML, and reuses existing uploads when possible.
Upload the clipboard's file or image.
Create or reuse short links for existing uploads.
Browse folders and files in a destination's bucket, with pagination.
Create temporary presigned download links for S3 destinations (up to 60 minutes).
Get thumbnail previews of uploads.
List watched folders and their status/queue.
Pause watched folders for a set time or until resumed.
Resume watched folders.
Uploads files to a user's Backblaze B2 bucket through Aktar and returns the resulting links. Supports destination selection, custom naming and folders, expiry, short links, QR codes, JSON output, and history/search via the MCP server.
Uploads files to a user's Cloudflare R2 bucket through Aktar and returns the resulting links. Supports destination selection, custom naming and folders, expiry, short links, QR codes, JSON output, and history/search via the MCP server.

The aktar command talks to the Aktar app on your Mac or Windows PC, so it uses the destinations, keys, path templates and link settings you already set up there. Your storage keys never leave the app.
$ aktar upload screenshot.png
https://files.example.com/2026/09/7f3c2a91.pngInstall
npm install -g @getaktar/cli
# or
brew install getaktar/tap/aktar-cliOr run it without installing: npx @getaktar/cli upload file.png.
Requires Node.js 18 or later and Aktar for Mac 0.18.0 or Aktar for Windows 0.11.0 or later (earlier versions of the CLI work with Aktar for Mac 0.4.0 and later).
Related MCP server: tralha
Connect to Aktar
In Aktar, open Settings > Integrations and turn on Allow local connections.
Copy the token shown there.
Run:
aktar loginand paste the token when asked (avoid aktar login --token <token>: other programs can see command lines, and it stays in your shell history). It's checked against Aktar and saved to ~/.config/aktar/cli.json (%APPDATA%\aktar\cli.json on Windows), readable only by you. You can also pipe it in (pbpaste | aktar login) or set AKTAR_TOKEN (and AKTAR_PORT if you changed the port) instead.
Usage
aktar upload report.pdf # prints the link
aktar upload *.png -f markdown # one Markdown image per file
aktar upload build.zip -d Builds # pick a destination by name or ID
aktar upload notes.txt --folder docs/2026 # keep the name, upload into a folder
aktar upload IMG_4021.jpg --name cover # upload as cover.jpg
aktar upload log.txt --expires 7 # delete after 7 days
aktar upload --clipboard # the file or image on the clipboard
aktar upload demo.mp4 --qr # the link and a QR code to open it on your phone
aktar upload talk.pdf --short # a short link from the destination's link shortener
aktar upload photo.jpg --json # full details as JSON
aktar status # which Aktar and destination you're connected to
aktar destinations # list destinations and their kind (* marks the selected one)
aktar history invoice -n 5 # search recent uploads
aktar replace 0B6C2F8E-3D1A-4C55-9E2B-7A41D0C3E9F1 v2.png # new file, same link
aktar replace docs/guide.pdf guide.pdf -d Docs # replace a key in a destination's bucket
aktar qr https://example.com # a QR code of any link or text
aktar qr 0B6C2F8E-3D1A-4C55-9E2B-7A41D0C3E9F1 # a QR code of an upload in history
aktar short 0B6C2F8E-3D1A-4C55-9E2B-7A41D0C3E9F1 # a short link for an upload in historyWithout -d, files go to the destination selected in Aktar's menu bar. Uploads show up in Aktar's history like any other.
--format chooses what's printed: url (default), markdown, html, or custom (your template from Aktar). --expires takes 1, 3, 7, 14, 30, 60, 90, 180 or 365 days and needs Aktar's auto-delete rule for that duration on the destination; without it, files are kept. Aktar apps from before the longer durations accept only 1, 7, 14 and 30, and a bucket they set up has only those four rules: Check Again under Auto-Delete in the destination's settings adds the rest.
Each destination has a kind of storage: s3 (Cloudflare R2, Amazon S3, Backblaze B2, MinIO and other S3-compatible storage), webdav (Aktar for Mac 0.23.0 / Windows and Linux 0.17.0 and later) or sftp (a later Aktar); older apps only have s3. aktar destinations shows it next to the provider, and --json has it as kind. WebDAV and SFTP destinations can't delete files after a while or make temporary links, so aktar upload -d <destination> --expires is refused for them before anything is uploaded. When Aktar itself turns a request down because the destination can't do it (HTTP 409), aktar prints Aktar's message on one line and exits 1.
--name uploads a single file under another name: it's what {filename} and {ext} in the destination's path template become, and what Aktar's history shows. If the name has no extension, the file's own is added (--name cover uploads IMG_4021.jpg as cover.jpg); if it has one, it's used as given. With --folder, it's the name inside the folder.
If the same file (same contents, destination and expiry) is already in the bucket, Aktar doesn't upload it again and gives you the existing link. aktar prints the link as usual and notes it on stderr (aktar: photo.jpg: already uploaded, reused the existing link), so scripts reading stdout still get one link per file. This needs Aktar for Mac 0.10.0 or Windows 0.3.0.
Short links
If a destination has a link shortener set up in Aktar (Shlink, YOURLS, Kutt, Dub, Short.io or your own), Aktar shortens its links following that destination's rules, and aktar prints the short link. --format uses it too: the Markdown, HTML and custom formats come from Aktar with the short link in them.
--shortmakes a short link for this upload even if the destination's "Only shorten links longer than" rule would skip it. It fails if the destination has no link shortener.--no-shortmakes none this time.
If Aktar can't make the short link (the shortener is down, say), the upload still goes through: aktar prints the original link and notes it on stderr (aktar: talk.pdf: couldn't make a short link, printed the original link: ...).
aktar short <upload-id|link> makes a short link for an upload already in history, found by its ID, link or short link, and prints it. If it already has one, that's the one printed. --json prints the short link's details (provider, status, clicks when the shortener counts them), --qr adds its QR code. aktar history shows each upload's short link after its link.
Older versions of Aktar, and Aktar for Windows until it has short links, ignore --short and --no-short.
QR codes
aktar upload --qr prints a QR code under each link, so you can open it on your phone. The QR code is always of the link itself (the short link, if there is one), whatever --format prints. It's drawn black on white in the terminal, whatever its theme; when the output isn't a terminal, or NO_COLOR is set, it's drawn without colors (light modules as blocks), which phone cameras read on a light or dark background. --qr can't be combined with --json.
aktar qr <text> shows the QR code of any link or text; quote text with spaces. Given an upload ID from aktar history --json, it shows that upload's link (its short link, if it has one) and its QR code. --png <file> saves the QR code as a PNG instead:
aktar qr https://files.example.com/2026/09/7f3c2a91.png --png link.pngWhat Aktar does for you
The app does the work per destination, so the CLI needs nothing extra for it:
Converting images to WebP or AVIF, if the destination is set to
{md5}and{sha256}in path templates, to name files by their contentsBig files: past 5 GB, Aktar uploads in parts and resumes after a dropped connection.
aktarstreams the file to the app, so its size doesn't matter
The link aktar prints is the one for the file as stored, after any conversion.
JSON output
aktar upload --json prints an array with one entry per uploaded file:
[
{
"id": "0B6C…",
"filename": "photo.jpg",
"objectKey": "2026/09/7f3c2a91.jpg",
"url": "https://files.example.com/2026/09/7f3c2a91.jpg",
"shortUrl": null,
"destinationId": "5D1A…",
"destinationName": "Screenshots",
"mimeType": "image/jpeg",
"size": 482113,
"createdAt": "2026-09-30T12:00:00Z",
"expiresAt": null,
"formats": { "url": "…", "markdown": "…", "html": "…", "custom": "…" },
"reused": false
}
]reused is true when nothing was uploaded because the file was already there; older versions of Aktar leave it out. shortUrl is the upload's short link, or null when it has none; formats already use it. When Aktar couldn't make the short link, shortLinkError says why. aktar history --json has shortUrl too.
Exit codes
Code | Meaning |
0 | Everything worked |
1 | At least one upload or request failed (the others still went through) |
2 | Bad arguments, or a file that doesn't exist (nothing was uploaded) |
3 | Not logged in, Aktar isn't running, its local API is off, the token is wrong, or the app on the port couldn't prove it's Aktar (or is too old to) |
AI agents (MCP and skill)
MCP server
aktar mcp runs a Model Context Protocol server, so Claude, Cursor, VS Code, Codex and other agents can upload through Aktar, find past uploads and make links. Connect Aktar first (aktar login), then add it to your agent with the folder it may upload files from:
claude mcp add aktar -- aktar mcp --root ~/Projects # Claude Code
codex mcp add aktar -- aktar mcp --root ~/Projects # CodexFor Claude Desktop, Cursor, VS Code and others that take a JSON config:
{
"mcpServers": {
"aktar": { "command": "aktar", "args": ["mcp", "--root", "/Users/you/Projects"] }
}
}Without a global install, use "command": "npx", "args": ["-y", "@getaktar/cli", "mcp", "--root", "/Users/you/Projects"].
Tool | What it does |
| Upload a file (destination, name, folder, expiry, short link optional) and return its link, Markdown and HTML |
| Upload what's on the clipboard (left out with |
| Write a new file over an upload or any file in a bucket, keeping its link (only with |
| A short link for an upload, from its destination's link shortener |
| Search upload history (with each upload's short link) |
| Destinations, their kind ( |
| Browse a bucket's folders and files |
| A link that stops working after a while (presigned URL). This gives access: anyone with the link can download the file until it expires, even from a private bucket. At most 60 minutes unless |
| A preview image of an upload (Mac 0.13.0 / Windows 0.6.0) |
| Watched folders and their status |
| Pause watched folders, for a number of minutes or until resumed (Mac 0.11.0 / Windows 0.4.0) |
| Resume watched folders |
| Check the connection |
| Delete an upload from its bucket (only with |
Uploading publishes a file, so keep an eye on what your agent sends. Your agent asks before calling a tool unless you allow it, and the server limits what it can reach:
--root <folder>: only upload files from this folder (repeat for more). Paths are resolved, symlinks included, before they're checked. Without--root, files come only from the folder the server runs in (agents usually start it in your project). If that's your home folder or the top of the disk, as some apps do, local files aren't uploaded at all until you add--root.--root ~or--root /allow more, if you really want that.Secrets are never uploaded, wherever they are: SSH and private keys (
id_rsa,id_ed25519,*.pem,*.p12,*.pfx...),.envfiles,~/.ssh,~/.gnupg,~/.aws,~/.azure,~/.config/gcloud,~/.kube,~/.docker,~/.netrc,~/.npmrc,~/.pypirc,~/.git-credentials, Aktar's own config, the Keychain, browser profiles and password databases (*.kdbx). Files with several hard links aren't uploaded either. To share one of these, upload it yourself withaktar upload.--read-only: only the tools that change nothing (search, list, temporary links, thumbnails).--allow-replace: also offerreplace_file, which overwrites files in a bucket. It's left out by default because the old contents are gone, like a delete.--allow-delete: also offerdelete_upload(andreplace_file).--max-link-minutes <n>: letcreate_temporary_linkmake links that work for up tonminutes (default 60, at most 10080, 7 days).--log <file>: append each tool call (time, tool, arguments, result) to a file only you can read, to see later what an agent did.
claude mcp add aktar -- aktar mcp --root ~/Projects --root ~/Desktop --allow-replaceTool results start with a note that file names, keys and messages inside come from files and buckets, so agents treat them as data rather than instructions; control and text-direction characters are removed from them.
The server speaks both the current per-request protocol (2026-07-28) and the earlier initialize versions (2024-11-05 to 2025-11-25).
Agent skill
Agents that use skills but not MCP can use the CLI directly. aktar skill prints a SKILL.md that teaches them how:
mkdir -p ~/.claude/skills/aktar && aktar skill > ~/.claude/skills/aktar/SKILL.mdChecking it's Aktar
Before sending the token, aktar asks the app on the port to prove it has the same token (without sending it), so if Aktar isn't running and another program is listening on its port, that program gets neither the token nor your files. This needs Aktar for Mac 0.18.0 or Aktar for Windows 0.11.0 or later; with an older Aktar, aktar stops and asks you to update.
Typora
In Typora, open Settings > Image > Image Upload, choose Custom Command and enter:
aktar uploadTypora passes the image paths and reads one link per line. Click Test Uploader to check it.
Links
Website: https://getaktar.com/cli/
Aktar for Mac and Windows: https://getaktar.com
Homebrew:
brew install getaktar/tap/aktar-cli
License
MIT
Available Tools
12 toolscreate_short_linkCreate a short linkAIdempotent
Make a short link for an upload from search_uploads with its destination's link shortener, or return the one it already has. Returns the short link and the upload, whose formats then use it. Fails if the destination has no link shortener set up.
Inputs: id (required).
create_temporary_linkCreate a temporary linkARead-only
Make a link to a file in a bucket that stops working after a while (a presigned URL), for private buckets or sharing for a limited time. Only s3 destinations can; WebDAV and SFTP ones can't. Anyone with the link can download the file until it expires, even from a private bucket, so only make one when the user asks. Nothing in the bucket changes.
Inputs: key (required), minutes, destination.
get_statusAktar statusARead-only
Check that Aktar is running and connected, and which version and destination it has selected.
Inputs: no named parameters.
get_thumbnailShow an upload's thumbnailARead-only
Get a small preview image of an upload from search_uploads (photos, videos, PDFs, documents...), to see what a file looks like without downloading it.
Inputs: id (required).
list_bucketBrowse a bucketARead-only
List the folders and files right under a folder of a destination's bucket, including files not uploaded with Aktar. Returns nextContinuationToken when there's more.
Inputs: prefix, destination, continuationToken.
list_destinationsList destinationsARead-only
List the storage destinations set up in Aktar: name, kind (s3, webdav or sftp), provider, bucket (empty for WebDAV, the base folder for SFTP), public link base, whether it's the selected one, and the file types it's used for.
Inputs: no named parameters.
list_watched_foldersList watched foldersARead-only
List the folders Aktar uploads new files from automatically, with their status and queue, and whether watching is paused.
Inputs: no named parameters.
pause_watchingPause watched foldersAIdempotent
Pause all of Aktar's watched folders, so new files in them aren't uploaded until watching resumes. Give minutes to resume on its own, or leave it out to pause until resume_watching.
Inputs: minutes.
resume_watchingResume watched foldersAIdempotent
Resume Aktar's watched folders after pause_watching (or a pause from the app), so new files in them upload again.
Inputs: no named parameters.
search_uploadsSearch uploadsARead-only
Search Aktar's upload history by file name or key, newest first. Without a query, lists the latest uploads.
Inputs: limit, query, destination.
upload_clipboardUpload the clipboardA
Upload the file or image on the user's clipboard and return its link. The file becomes reachable by anyone with the link.
Inputs: short, expires, destination.
upload_fileUpload a fileAIdempotent
Upload a local file to the user's storage and return its link (plus Markdown and HTML). The file becomes reachable by anyone with the link. If the same file is already there, Aktar returns its existing link (reused: true).
Inputs: path (required), name, short, folder, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a distinct action-resource pairing: upload (file vs clipboard), pause/resume watching, and three different list_* tools target clearly separate scopes (destinations, watched folders, bucket contents). The only mild overlap is between search_uploads (upload history) and list_bucket (raw bucket contents), but the descriptions make the distinction explicit.
All 12 tools follow a strict snake_case verb_noun pattern (get_status, upload_file, list_bucket, create_short_link, search_uploads) with no deviations. The pause_watching/resume_watching pair is the only non-verb_noun form but still reads as a consistent complementary pair.
12 tools is squarely in the well-scoped range, and every tool maps to a distinct capability: status, two upload paths, watching control, link creation, previews, and three listing/search operations. Nothing feels redundant or missing.
The upload/search/share/list lifecycle is well covered, but there is no way to delete or rename an upload, revoke a short link, download file contents, or add/remove a storage destination. These gaps around destructive and destination-management operations will force agents to dead-end on common cleanup and setup tasks.
Maintenance
Related MCP Connectors
File uploads for AI agents. Upload, list, and manage files. No signup required.
Persistent file storage for AI agents. Save files over MCP, get a link a human can open.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage media assets on any S3-compatible storage, including uploads, downloads, tagging, and collections, via presigned URLs.MIT- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage buckets and files, upload binaries through single-use URLs, create and revoke public links, preview images, and search indexed markdown notes.AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage S3-compatible storage through 39 tools covering buckets, objects, versions, policies, CORS, lifecycle, tags, encryption, presigned URLs, and multipart cleanup, either as a shared Streamable HTTP service or a local stdio process. It turns a local file path into a public URL in a single call while keeping storage credentials on the server.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to upload text or files over MCP to your own S3, MinIO, RustFS, or Backblaze B2 buckets and receive a presigned share link with a chosen expiry and permission. Each bucket gets its own endpoint, and uploads use either a single text tool call or a presigned PUT flow finished by the agent's shell.MIT