ffl-mcp
MCP server for ffl. Let AI share anything for you.
README
ffl-mcp (local-only)
MCP server for ffl. Let AI share anything for you.
Backed by ffl, which turns any file/folder into an HTTPS link.
This is a minimal MCP server that shells out to ffl / ffl.com locally.
No file contents are sent to the LLM; the model only triggers local ffl.
This demo shows collaborative debugging: Claude on the left shares a local environment (DB + logs) via P2P link, Claude on the right downloads and diagnoses the error. In this scenario, the two Claudes represent different people working on separate machines.
Table of Contents
Installation
⚡ Short URLs for convenience
- Linux/macOS:
curl -fsSL https://fastfilelink.com/mcp/install.sh | bash- Windows (script):
iwr -useb https://fastfilelink.com/mcp/install.ps1 | iex🔒
fastfilelink.com/mcp/*is a redirect to GitHub. Use the direct GitHub URLs below if you prefer.
Windows — GUI Installer
Download and run ffl-mcp-setup.exe from the latest release.
No command line needed — the installer registers ffl-mcp with Claude Desktop and Claude Code automatically.
Linux / macOS — one-liner
curl -fsSL https://raw.githubusercontent.com/nuwainfo/ffl-mcp/refs/heads/main/install.sh | bash
Downloads the platform binary from the latest GitHub release and runs ffl-mcp install to register with Claude. Falls back to uvx automatically if no binary is available for your platform.
Windows — one-liner (PowerShell)
iwr -useb https://raw.githubusercontent.com/nuwainfo/ffl-mcp/refs/heads/main/install.ps1 | iex
Downloads ffl-mcp.exe from the latest GitHub release and registers it with Claude.
uvx (no binary, requires uv)
uvx --from git+https://github.com/nuwainfo/ffl-mcp install
Targets can be controlled with --target (default: all):
uvx --from git+https://github.com/nuwainfo/ffl-mcp install --target claude-desktop,codex-desktop,codex-cli
uvx --from git+https://github.com/nuwainfo/ffl-mcp install --print
If Claude Code CLI is installed, the installer also runs claude mcp add automatically (user scope).
The installer also writes Codex MCP config to ~/.codex/config.toml for Codex Desktop/CLI/IDE.
If Codex CLI is installed, the installer also runs codex mcp add automatically.
For custom config paths, pass the file:
uvx --from git+https://github.com/nuwainfo/ffl-mcp install --config /path/to/claude_desktop_config.json
uvx --from git+https://github.com/nuwainfo/ffl-mcp install --codex-config /path/to/codex/config.toml
Run directly (development)
Prereq: uv installed.
# optional: override embedded ffl.com (APE) or use "ffl" on PATH
export FFL_BIN="$HOME/bin/ffl.com"
chmod +x "$FFL_BIN"
# optional safety: restrict file sharing to a directory
export ALLOWED_BASE_DIR="$HOME/Downloads"
# optional: use stdin for text/base64 instead of temp files
export FFL_USE_STDIN=1
uvx --from git+https://github.com/nuwainfo/ffl-mcp ffl-mcp
MCP Config (manual JSON)
{
"mcpServers": {
"ffl": {
"command": "uvx",
"args": ["--from", "git+https://github.com/nuwainfo/ffl-mcp", "ffl-mcp"],
"env": {
"ALLOWED_BASE_DIR": "/Users/you/Downloads",
"FFL_USE_STDIN": "1"
}
}
}
}
Tools
Sharing
| Tool | Input |
|---|---|
fflShareText(text, name?, ...) |
Plain text |
fflShareBase64(dataB64, name?, ...) |
Binary data (base64-encoded) |
fflShareFile(path, name?, ...) |
Single local file or folder |
fflShareFiles(paths, name?, ...) |
Multiple files (ffl auto-zips them into one download) |
Common options for all share tools:
| Option | Default | Description |
|---|---|---|
e2ee |
False |
End-to-end encryption |
qrInTerminal |
False |
Return ASCII QR art (qrCode in response) |
authUser / authPassword |
— | HTTP Basic Auth to protect the link |
maxDownloads |
1 |
Stop serving after N downloads (P2P only) |
timeoutSeconds |
1800 |
Inactivity timeout in seconds (P2P only) |
recipientAuth |
— | pickup (6-digit code), pubkey (RSA), pubkey+pickup, or email (OTP) |
pickupCode |
auto | Specific pickup code for pickup mode |
recipientPublicKey |
— | Path to .fflpub file for pubkey mode |
recipientEmail |
— | Email(s) for email OTP mode, comma-separated |
alias |
— | Custom link alias e.g. my-release (requires Standard+ account) |
receipt |
— | Email notification when recipient downloads |
receiptConfirm |
— | Require recipient confirmation before download; pass a message or "" |
forceRelay |
False |
Disable WebRTC, route all traffic through tunnel |
port |
— | Local HTTP server port (auto-detect by default). Useful with fixed tunnels. |
invite |
False |
Open the ffl invite page in a local browser with the generated sharing link. |
enableReporting |
False |
Enable ffl diagnostic error reporting. Disabled by default. |
upload |
— | Upload to FFL server instead of P2P — e.g. "1 day", "6 hours" (requires Standard+ account) |
resumeUpload |
False |
Resume an interrupted upload |
proxy |
— | Proxy URL e.g. socks5://127.0.0.1:9050 |
Additional options for fflShareFile / fflShareFiles:
| Option | Default | Description |
|---|---|---|
preview |
False |
Enable preview sidecar routes for folder or multi-file shares. Returned links stay clean; add ?preview=true manually when you want the browser preview view. |
exclude |
— | Glob or regex patterns to exclude, comma-separated — e.g. *.pyc,__pycache__ or re:\.env$ |
pause |
— | Pause server upload at a percentage from 1 to 99. Requires upload. |
vfs |
False |
Expose as VFS server (vfs:// URI) — fflShareFile only |
preferredTunnel |
— | Set preferred tunnel for this and future runs — cloudflare, ngrok, bore, etc. |
Preview sidecar routes (/manifest, /file, /thumb) are only created for
folder shares and multi-file shares. Single-file shares are served as direct file
links, even when preview=True. MCP returns the base FastFileLink URL and does
not append ?preview=true; users may add that query string manually.
Response fields: sessionId, link, pid, qrCode? (ASCII art when qrInTerminal=True), debugLogPath?
Downloading
fflDownload(url, outputPath?, resume?, authUser?, authPassword?,
recipientAuth?, pickupCode?, recipientPrivateKey?, proxy?,
enableReporting?)
-> {ok, returncode, outputPath?, transferMode?, transferInfo?, message?, ...}
Downloads from FastFileLink URLs (WebRTC P2P when possible, HTTP fallback) or any HTTP(S) URL (works like wget).
transferMode |
Meaning |
|---|---|
webrtc_p2p |
Direct peer-to-peer (fastest) |
http_fallback |
HTTP relay when WebRTC fails |
http_direct |
Regular HTTP download (non-FastFileLink URL) |
For authenticated links: pass recipientAuth + pickupCode (pickup mode) or recipientPrivateKey (pubkey mode).
Set enableReporting=True only when you want to opt into ffl diagnostic error reporting for troubleshooting.
Keygen
fflKeygen(name?) -> {ok, returncode, output}
Generates an RSA keypair for passwordless pubkey recipient auth:
<name>.fflpub— share with the sender (pass asrecipientPublicKey)<name>.fflkey— keep private (pass asrecipientPrivateKeywhen downloading)
Session Management
fflListSessions()— list active share sessionsfflStopSession(sessionId)— terminate a sessionfflGetSession(sessionId)— get session detailsfflGetSessionEvents(sessionId, limit=50)— retrieve webhook events
Notes
FFL_USE_STDIN=1avoids writing text/base64 payloads to disk.FFL_RUN_MODE=pythonruns the Core.py CLI (requiresFFL_CORE_PATH).FFL_USE_HOOK=1starts a local webhook server and passes it tofflfor real-time link/progress events.FFL_DEBUG=1saves ffl output to a temp log file; path returned asdebugLogPath. SetFFL_DEBUG=/path/to/log.txtto use a fixed path.ALLOWED_BASE_DIRrestrictsfflShareFile/fflShareFilesto a specific directory.
Testing
# Unit + binary tests (no network needed)
python -m unittest discover -s tests -p "*Test.py" -v
# All tests including share/download round-trips (requires network)
FFL_INTEGRATION_TESTS=1 python -m unittest discover -s tests -p "*Test.py" -v
WSL2 Users
If you encounter TLSError([0x6300]) errors, run this command to disable Windows interop for .com files:
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'
This allows ffl.com (APE binary) to run natively on Linux instead of being executed through Windows.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。