
Ftp Deploy Mcp
io.github.alebgl77由 GitHub 帳號 alebgl77 發布v0.3.2更新於 Oct 31, 2026
FTP/FTPS/SFTP deployment · Déploiement FTP/FTPS/SFTP. Local confinement / Confinement local.
發布方自己的服務:deploy.social
概覽
本機 stdio MCP 伺服器,讓 AI 程式設計助理在你自己的 FTP、FTPS 或 SFTP 伺服器上列出、讀取、上傳、下載與部署檔案。
- 可以做什麼
- 檢視並測試已設定的伺服器,分頁列出遠端目錄
- 讀取有長度限制的文字檔,並把遠端檔案下載到受限的本機根目錄
- 上傳單一檔案,並依包含/排除規則遞迴部署目錄,支援試跑
- 建立目錄、重新命名或搬移、刪除檔案或目錄
- 設定狀態目錄後,可發布、執行、查詢狀態並回復持久化部署計畫
- 適用情境
- 適合讓助理透過 FTP、FTPS 或 SFTP 把建置好的網站或資源推送到自己的主機,或檢視與整理遠端檔案,而不必把憑證貼進對話。適合希望在代理部署時有試跑、唯讀模式與本機檔案範圍限制的開發者。
- 執行需求
- 以 stdio 在本機執行;需要 Node.js 22、24 或 26(最低 22),也可透過 npx 使用已發布的 npm 套件。需要一份嚴格 JSON 設定檔,列出具名伺服器(協定、主機、連接埠、使用者、憑證、localRoot、遠端根目錄),路徑可由明確參數、FTP_MCP_CONFIG、./ftp-servers.json 或 ~/.ftp-mcp/servers.json 指定。憑證可來自設定、${ENV:NAME} 佔位符或 SSH 金鑰。FTP_MCP_LANG 選擇英文或法文文字。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Ftp Deploy Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ftp-deploy-mcp
The deploy button for AI coding agents.
Give Claude Code, Claude Desktop, Cursor, Windsurf, Trae, Antigravity, or any MCP client a focused way to list, read, upload, download, and deploy files on your own FTP, FTPS, and SFTP servers.
The stdio server implements MCP revision 2026-07-28 through the stable
modular TypeScript SDK v2 and retains the SDK's legacy negotiation path for
older MCP clients.
Version française → README.fr.md
CLI and MCP language: English by default; use --lang fr or FTP_MCP_LANG=fr.
Language scope and precedence.
[CI] [License: MIT] [Node >=22] [MCP compatible]
[ftp-deploy-mcp — Controlled deployment for your AI agents; FTP, FTPS, SFTP over MCP stdio]Purpose-built deployment controls keep credentials out of tool responses,
support read-only servers and dry runs, and limit local file access with
localRoot. The repository is covered by an extensive end-to-end suite that
runs against local FTP and SFTP servers. There is no telemetry.
Availability: version 0.3.2 is published on npm and the Official MCP Registry. Use
npx -y [email protected]for that version. The GitHub release is a separate source distribution;maincan include later changes. Registry visibility establishes availability, not locked dependency resolution or qualification of a different commit. See the release guide.
Deployment modes: the ten base tools provide controlled transfers and dry runs.
Enabling stateDir adds four durable tools with MCP confirmation, explicit resume
and conservative rollback of acknowledged changes. These guarantees belong to
the optional durable workflow; legacy ftp_deploy has no transaction or rollback.
Documentation
Architecture and scenarios
Explore the current and target architecture diagrams and illustrative scenarios
in the bilingual interactive HTML guide.
The guide and its
English / French
build instructions are in the repository, outside the npm package. After
cloning, open site/index.html locally and use its language selector.
Animated verified deployment flow
For reduced motion, view the static completed-state image. See the visual system provenance and generation notes.
The visual direction was explored with ChatGPT Image; the final README assets are rendered deterministically. Their provenance and exact prompts document their illustrative role; they are not a certification.
First source install
- Install a supported Node.js version: 22, 24 or 26 (minimum: 22).
- Run
git clone https://github.com/alebgl77/ftp-deploy-mcp.git, thencd ftp-deploy-mcp. - Run
npm ci --omit=dev --ignore-scripts. - Run
npm run setup, then edit the generated server config: set an absolutelocalRoot, replace credentials, and configure the SFTP host-key pin or the FTP/FTPS safety acknowledgments described below. - Restart the MCP client and try a dry run:
Windows users can run install.cmd and macOS/Linux users can run
./install.sh instead of steps 3–4. Review every generated server entry before
the first connection.
For a tagged version, check out that exact tag before installing. npm ci uses
the sole authoritative package-lock.json, with six exact direct pins and the
reviewed graph. Keep it with the sources. --ignore-scripts disables automatic
dependency lifecycle scripts; setup is a separate, explicit action.
Once published, the v0.3.2 source installation asset is named
ftp-deploy-mcp-0.3.2-source.tar.gz: 90 files, including that lockfile. Verify
its publication and checksums before extracting it in a fresh directory:
This installation archive excludes repository tests and maintainer scripts;
GitHub's automatic source ZIP/tar contains the complete repository. The separate
npm .tgz contains 89 files without a lockfile and follows npm dependency
resolution. It provides no locked-install guarantee. See the
release guide for verification and limits.
Protocol and security matrix
All three protocols also enforce localRoot for ftp_upload, ftp_deploy,
and ftp_download. This limits which local files the MCP server can access.
What you get
- Ten focused MCP tools for server discovery, testing, listing, reading, uploading, recursive deploys, downloading, creating directories, renaming, and deleting.
- Four additional durable-workflow tools when
stateDiris configured; confirmation and rollback follow the documented bounds. - Multiple named servers in one local configuration.
- Gitignore-like deploy exclusions, dry-run, and per-server
readOnlymode. - FileZilla import, an interactive setup wizard, and a read-only
doctorcommand. - Credentials loaded locally from the config, environment variables, or SSH keys and never intentionally returned to the model.
Server configuration
An explicit configuration path is authoritative:
--config <path>FTP_MCP_CONFIG, when--configis absent
An empty, missing, unreadable, or invalid explicit configuration reports an
error without falling back to another file. The MCP tools remain available
to report the configuration problem. --config requires a path argument.
Without either selector, the first configuration found wins:
./ftp-servers.json~/.ftp-mcp/servers.json
The teaching example below is JSON with comments. Real configuration files must be strict JSON; start from ftp-servers.example.json.
Replace the all-A fingerprint; it is deliberately non-functional for a real
host. Use hostKeySha256 as an array during a controlled key rotation:
The illustrative labels above show the shape but are not valid pins. Each real
entry is exactly SHA256: plus 43 characters of unpadded base64.
Field reference
Any string can contain ${ENV:VARIABLE_NAME}. Missing variables produce a
named configuration error.
Verify an SFTP fingerprint out of band
Do not trust a fingerprint obtained only through the connection you are about to verify.
- Obtain the SHA-256 host-key fingerprint from the hosting provider's authenticated control panel or support channel, or from an administrator through a separately authenticated channel.
- If you administer the host, use its trusted console to run a command such as
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub -E sha256. - Compare the complete
SHA256:...value before putting it inhostKeySha256.ssh-keyscanmay collect a candidate key, but by itself it does not authenticate that key.
For rotation, verify the new fingerprint out of band, temporarily configure
both old and new pins, rotate the server key, confirm connections use the
expected key, then remove the old pin. Do not use allowUnknownHostKey as a
rotation shortcut.
Tool reference
All remote path arguments are relative to the configured remote root. The
server parameter is optional when defaultServer is set or only one server
exists.
Durable workflow guarantees
The durable tools require the official MCP input_required confirmation flow;
there is no boolean fallback. Signed request state binds the session, method,
plan digest, operation, idempotency-key hash, resume choice, journal sequence,
and expiry. Declined, invalid, expired, or unsupported interaction has no remote
effect. Association alone is status-only; any nonterminal remote mutation
requires resume:true.
The guarantee level is observable_state_reconciled: per-file replacement is
server-dependent, multi-file atomicity and exactly-once execution are false,
and rollback covers only durably acknowledged files. SFTP supports replacement
plus new files under existing canonical parents; FTP/FTPS supports replacement
of existing regular files only. Durable execution never creates parents, purges
remote extras, automatically rolls back, or rolls back SATISFIED_UNOWNED.
Cooperating processes sharing one canonical stateDir serialize the exact
server alias before adapter construction. This is not a distributed remote lock
and does not coordinate different aliases or state directories. Overlapping
writable aliases, alias renames, mixed-binary upgrades, and a process killed
while holding a persistent lock require operator care: quiesce upgrades and
recover stale locks offline. External writers and ABA changes remain outside
the observable identity guarantee.
Verified staged promotion
Uploads and deploys write to an unpredictable sibling temporary, verify its
actual byte count and SHA256 against the local source, then promote it with one
rename. A verification or rename failure never triggers deletion of the final
target or a direct-overwrite fallback. Downloads verify an exclusive local
temporary, synchronize and close it, then promote the complete file. The
default overwrite:false uses a hard link to avoid clobbering a file that
appeared meanwhile; filesystems without hard-link support fail closed.
Local and SFTP replacements preserve an existing regular target's permission bits (0777); FTP/FTPS cannot portably preserve permissions, so account creation defaults, umask and ACL policy need to suit the destination. Rename behavior depends on the server and filesystem. Legacy upload/deploy does not promise universal atomic replacement, a site transaction, or rollback. Readback adds network traffic. See transfer guarantees, limits and cleanup.
Execution, cancellation, and contention
Within one Node process, upload, deploy, mkdir, rename, and delete run in FIFO order for the same normalized protocol, hostname, port, and username. Server aliases and roots share that lock. Downloads serialize by canonical local destination, including across servers. Read-only remote operations can overlap.
MCP cancellation and deadlines close active transports and stop subsequent
deploy files. Errors identify CANCELLED or TIMEOUT; TARGET_BUSY indicates
waiting for another operation. A timed-out call can return before an underlying
operation settles, but its lock remains owned until settlement and cleanup.
No uncertain mutation is retried automatically. Inspect partial remote/local
state before retrying; legacy mutation calls are not transactional deployment
and provide no rollback.
Internal preparation is single-use and limited to 10 seconds without extending the overall operation deadline. Admission remains held until the actual work and cleanup settle. A prepared context is released once, including when it arrives after cancellation; the handler is not called after preparation is cancelled or expires. Preparation callbacks themselves may act. Durable tools use the same settlement discipline. See the resource limits.
Progress notifications are sent only when the caller supplies a progress token, with increasing counters and no paths or credential text. Locks do not coordinate other Node processes, DNS aliases, other accounts, or external clients on the same host.
Response compatibility, pagination, and annotations
ftp_list returns one page instead of an unbounded directory listing. Its
successful response includes total, count, offset, limit, has_more,
and next_offset pagination fields. For example, a request with
{"server":"prod","path":"/assets","limit":2,"offset":2} may include the
following intentionally non-exhaustive excerpt. It omits the required
top-level server, path, and security_warning fields and the required
per-entry size_bytes and modified_at fields:
The existing human-readable content text is retained for compatibility.
On success, every tool except ftp_read also advertises an MCP
outputSchema and returns matching structuredContent; ftp_read remains a
bounded text-only tool on success. Each of the nine structured schemas accepts
either its strict success shape or a strict {error} envelope. Tool execution
errors return isError: true with localized text and structured code, request UUID,
effect observations and safe-retry guidance. Unknown tools remain protocol errors.
See the error contract.
The process admits at most 64 tool calls, including workers still cleaning up
after cancellation. Excess calls return CAPACITY_LIMIT. Local deployment scans
are asynchronous and separately bounded; see resource limits
for exact counting, SCAN_LIMIT and corrected custom exclusion behavior.
All tools publish MCP annotations describing read-only, destructive,
idempotent, and open-world behavior. These annotations are client hints, not a
security boundary; enforce access with server credentials, readOnly,
localRoot, and the protocol controls described above. ftp_deploy structured
results contain a summary and bounded samples, not exhaustive file lists.
ftp_deploy is not a transaction. If one or more transfers fail, the tool
returns an MCP error with a partial-deployment summary; files already promoted
before the failure are not rolled back.
Default deploy exclusions include node_modules, .git, environment files,
logs, OS metadata, ftp-servers.json, and .ftp-mcp content at any depth.
The reserved .ftp-mcp-*.tmp basename is always excluded, even if an explicit
include pattern matches it, so deploy cannot select a partial download temporary.
Client setup
npm run setup detects supported clients, creates timestamped backups before
changing existing client configuration, and prints a block for UI-only clients.
To wire a client manually, replace the path below with the absolute path to
this checkout:
Common locations include .mcp.json for Claude Code,
~/.cursor/mcp.json for Cursor, and
~/.codeium/windsurf/mcp_config.json for Windsurf. Claude Desktop and other
clients accept the same command/arguments structure through their MCP settings.
The published npm package can instead be launched with
npx -y [email protected]. Verify the exact version before updating;
pinning it does not also freeze npm's transitive dependency resolution.
FileZilla import and diagnostics
Imported passwords may be decoded into plaintext. Keep the output outside
version control, restrict its permissions, add localRoot, and review every
insecure-transport or FTP/FTPS remote-root warning before connecting.
doctor is read-only and reports configuration and client wiring without
printing passwords.
Migrating from v0.1 to v0.2
The availability links above identify published version 0.3.2. The migration steps below describe the security changes introduced after v0.1; they do not require republishing or moving an existing release tag.
- Add an absolute
localRootto every server used by upload, deploy, or download. - For every SFTP server, add an out-of-band-verified
hostKeySha256. UseallowUnknownHostKey: trueonly as a temporary, explicit risk acceptance; do not configure both fields. - For FTP/FTPS, prefer a dedicated server-side chroot whose visible root is
/and setrootto/. A non-root client path now requiresallowUnsafeRemoteRoot: trueand remains unsafe against server-side symlinks. - Treat a failed
ftp_deployas a partial deployment: inspect its summary and reconcile the remote tree before retrying. - Re-run
npm run setupor update the MCP client command to this checkout, then runnpm run doctorand a dry run.
Atomic replacement for newly written sensitive configuration is checked by the release tests; a version number alone does not establish that guarantee. See docs/RELEASE.md for the qualification and publication steps.
Security and limitations
- The strongest FTP/FTPS boundary is the server's own account isolation or
chroot. Client-side normalization rejects obvious traversal, but FTP lacks
portable
REALPATH/LSTATprimitives and cannot prove that a server-side symlink stays inside a configured sub-root. - SFTP verifies the host pin and rejects symlink components using
realpath/lstat. A server controlled by an attacker can still change filesystem state between checks and operations. readOnlyreduces accidental writes through this MCP server; it is not a substitute for read-only credentials enforced by the remote server.- FTP,
insecureTLS,allowUnknownHostKey, andallowUnsafeRemoteRootare explicit risk acceptances, not security features.
Read the full security model and private disclosure policy.
Development
The test suite uses local FTP and SFTP servers and does not require an external network. Contributions are welcome; see CONTRIBUTING.md. Maintainers should use the release guide. A reproducible, externally hosted read-only agent evaluation is documented in evaluations/README.md.
From a source checkout, npm run eval:scripted runs 43 cases in both languages
through the real SDK client and handlers, with an in-memory remote adapter:
86 scripted server-conformance results. See the
scripted conformance guide for reports and limits;
this command does not evaluate a model or replace the separate real-transport tests.
License
MIT — see LICENSE.
Author
Built and maintained by Alexandre Beguel, Agentic AI Architect and external CAIO based in Paris. He works on production GenAI, LLMOps, LLM FinOps and evidence-first AI governance. beguel.com · LinkedIn · Profile in English, French and Spanish
來源:README.md,提交 67a28ea
工具
0版本歷史
2- v0.3.2最新Oct 17, 2026
- v0.3.1Oct 17, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Deploy 整合
deploy.social
social.deploy官方發布者
遠端 MCP 伺服器,讓助理把一支短影音一次發佈到 YouTube Shorts、Instagram/Facebook Reels、TikTok、Threads、X 和 Bluesky。
Plesk Deploy
由 GitHub 帳號 usama-saeed831 發布
為專案產生、驗證並檢視需人工核准的 Plesk 部署套件,還能透過你自己的 SSH 讀取部署狀態與日誌或回復版本。

DeployAngel
com.deployangel
以唯讀方式存取 DeployAngel 的正式環境部署驗證:等待結論、檢視發現項目、例外與演練計畫。

kapaweb deploy
由 GitHub 帳號 kapaweb 發布
在 Claude 對話中把網站、PHP 應用程式和 WordPress 部署到 kapaweb 主機(DirectAdmin,Plesk 為預覽),支援備份與回復。

Agent Lab Deploy
由 GitHub 帳號 jinhsueh 發布
讓助理直接從 Claude Code 或 Codex 部署網站、應用程式、代理與 MCP 伺服器。