# YAFL — Yet Another File Layer (MCP server + CLI) [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/yafldev/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1133  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-175

## Description
Agent-first E2EE file transfer over MCP: move files between machines in one tool call, gone in 24h.

## Tools
Capabilities this server exposes over MCP:

- **upload_file** — Encrypts and uploads exactly the file or directory at the given local `path` (absolute, or relative to the current working directory). A directory is zipped client-side into a single archive before upload. Reads only that one path – never scans unrelated files or directories. Returns a shareable link (24h expiry, 100MB cap) with the decryption key embedded in the URL fragment; the key is never sent to the API. Optionally make the link one-time (burned after the first download) or password-protected.
- **get_status** — Checks whether the YAFL share link at the given `url` is still live — live, expired, or not found — without downloading or decrypting anything. Returns liveness, size, and expiry only. Does not read the decryption key even if present in the URL fragment, and never fetches any file bytes.
- **download_file** — Downloads and decrypts exactly the one file referenced by the given YAFL share `url`, writing it only into `destDir` (default: the current working directory) — never anywhere else. Requires the decryption key embedded in the URL fragment; the key is used only locally to decrypt and is never sent to the API. No YAFL API key is required for retrieval — anyone holding the link can download it; only uploading or managing files requires a key. Optionally pass a `password` for password-protected links.
- **list_files** — Lists the caller's OWN YAFL transfers only — metadata only (id, size, status, expiry, and a download path). Never returns file contents, never a decrypted name, and never another account's files. Optionally cap the number of results with `limit`.
- **delete_file** — Permanently deletes ONE of the caller's own YAFL transfers, identified by `id` (a bare transfer id or a full share URL — the fragment/key, if present, is never read). This cannot be undone: the R2 object is purged and the transfer record is removed. Destructive action.
- **email_link** — Emails this YAFL share link to a recipient. The link carries the decryption key in its fragment – anyone with access to that inbox can open the file. Requires a verified account.
- **login** — Starts a device-code login for an MCP agent that has no shell. Returns a verification URL and a short user code for the human to open and approve in a browser; approving is a one-time email-link sign-in that proves the human controls the account. This tool does NOT open a browser itself - relay the returned URL and code to the human. Once approved, the minted API key is stored locally and subsequent tool calls in this session authenticate automatically, with no further action needed.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "yafl-yet-another-file-layer-mcp-server-cli": {
    "command": "npx",
    "args": ["-y","@yafldev/mcp"]
  }
}
```

## Documentation

## What YAFL — Yet Another File Layer (MCP server + CLI) does

YAFL provides an MCP server and command-line client for moving files between environments such as a laptop and a VPS. The server's primary workflow is to encrypt a selected local file or directory, upload the ciphertext, and return a share URL. Directories are archived into one ZIP file before encryption.

Each transfer link remains available for 24 hours and supports files up to 100 MB on the free tier. Links can optionally require a password or be configured for one download. A one-time link is consumed when the first download begins, including cases where that download later fails.

The service is designed for agent-to-agent and agent-to-human handoffs. The `email_link` tool sends a YAFL link to a recipient, while the decryption key remains in the URL fragment rather than being transmitted to the API.

## How it works

`upload_file` reads exactly the path supplied by the caller: an absolute path or a path relative to the server's working directory. It does not scan neighboring files or directories. A fresh AES-256-GCM key encrypts the content locally, and the encrypted data is sent to storage through pre-signed URLs. The application service and storage receive ciphertext only.

`download_file` accepts a YAFL URL, uses the fragment-contained key locally, decrypts the referenced file, and writes it under `destDir`, which defaults to the current working directory. Retrieval does not require an API key; possession of the link is sufficient. A password is also required when the link has an additional password layer.

The API key authenticates upload and account-management operations, but it is separate from the decryption key. Keys can be issued per agent or machine and revoked individually. The `login` tool starts an RFC 8628 device flow: a human opens the returned verification URL, enters the short code, and approves the sign-in. The resulting key is stored locally for later calls in that session.

## Setup and configuration

Run the package with `npx` and Node.js 18 or newer; a global installation is not needed. An MCP client can launch it with the package `@yafldev/mcp`:

```json
{
  "mcpServers": {
    "yafl": {
      "command": "npx",
      "args": ["-y", "@yafldev/mcp"],
      "env": { "YAFL_API_KEY": "<optional key>" }
    }
  }
}
```

`YAFL_API_KEY` may be omitted. If no key is available, use `login` and relay its URL and code to a human; the tool does not open a browser itself. Claude Desktop can also use the published `.mcpb` bundle. The CLI is available through the YAFL installation script.

## Tools and capabilities

- `upload_file` encrypts and uploads one file or directory, with optional password protection and one-time retrieval.
- `download_file` downloads and decrypts one linked transfer into the selected destination directory.
- `get_status` reports whether a link is live, expired, or unavailable, along with size and expiry, without downloading bytes.
- `list_files` shows metadata for the authenticated caller's transfers, including status, size, expiry, and download path.
- `delete_file` permanently removes one of the caller's transfers using its ID or share URL.
- `email_link` sends a share link to a recipient and requires a verified account.
- `login` authorizes a headless MCP agent through a human-approved device flow.
- `list_skills` and `get_skill` expose the server's built-in, read-only agent instructions.

## Limitations and notes

Transfers expire after 24 hours, and the stated free-tier limit is 100 MB per file. `delete_file` is irreversible. `list_files` exposes only the authenticated caller's metadata, not file contents or decrypted names. Anyone who obtains a download link can retrieve its file unless the optional password is also required. The decryption key is not sent to the API, but link access and inbox access should still be treated as sensitive.

The server returns machine-readable errors such as `expired` and `not_found`, which can help agents distinguish unavailable links from other failures.

_Full upstream README: https://allmcps.com/mcp/mcp-175/readme_

