AM

alxspiker/mcp-server-ftp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

36 stars 17 forks 质量 83 趋势 32MIT

用于FTP访问的模型上下文协议服务器

概览

该模型上下文协议(MCP)服务器为FTP、FTPS和SFTP服务器提供文件管理工具。它支持目录列表、二进制安全的下载/上传、文本编辑、附加、重命名/移动、目录创建和删除。 - — 传统FTP,通常在21号端口。- — 用TLS保护的FTP。使用FTP_PROTOCOL=ftp,且FTP_SECURE=true。- — SSH文件传输协议,通常在22号端口。SFTP是与FTPS不同的协议,且已通过SSH加密,因此FTP_SECURE不适用于FTPS。 - 列表文件和目录 - 下载和上传文本或二进制文件 - 编辑远程文件中的精确文本 - 附加文件 - 重命名或移动文件/目录 - 创建和删除目录 - 支持 FTP、FTPS 和 SFTP - 支持 SFTP 密码或 SSH 私钥认证 - 可选的 1Password CLI 私钥解析 - AES-256-GCM 加密凭证值 - 对加密密钥的操作系统密钥链支持 - Node.js 18。

概述(AI 翻译)

该模型上下文协议(MCP)服务器为FTP、FTPS和SFTP服务器提供文件管理工具。它支持目录列表、二进制安全的下载/上传、文本编辑、附加、重命名/移动、目录创建和删除。

协议支持

  • FTP — 传统FTP,通常位于21端口。
  • FTPS — 采用TLS保护的FTP。使用FTP_PROTOCOL=ftp和FTP_SECURE=true。
  • SFTP — SSH 文件传输协议,通常位于 22 端口。SFTP 是与 FTPS 不同的协议,且已通过 SSH 加密,因此 FTP_SECURE 不适用于 FTPS。

特色

  • 列表文件和目录
  • 下载和上传文本或二进制文件
  • 按路径上传和下载本地文件,流式传输,因此大小不受请求(自愿加入)限制
  • 编辑远程文件中的精确文本
  • 附加到文件
  • 重命名或移动文件/目录
  • 创建和删除目录
  • 支持FTP、FTPS和SFTP
  • SFTP密码或SSH私钥认证
  • 可选的1Password CLI私钥解析
  • AES-256-GCM 加密凭证值
  • 操作系统密钥链对加密密钥的支持

在哪里买

  • GitHub 发布
  • npm(mcp-server-ftp)
  • 史密瑟里
  • 阿根西
  • 格拉玛
  • MseeP.ai

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Use the hosted FTP MCP server on Apify for remote access, or install the free local version below. See APIFY.md for hosted setup and pricing details.

MCP Server for FTP, FTPS, and SFTP Access

This Model Context Protocol (MCP) server provides file-management tools for FTP, FTPS, and SFTP servers. It supports directory listing, binary-safe downloads/uploads, text edits, appends, renames/moves, directory creation, and deletion.

Protocol support

  • FTP — traditional FTP, normally on port 21.
  • FTPS — FTP secured with TLS. Use FTP_PROTOCOL=ftp and FTP_SECURE=true.
  • SFTP — SSH File Transfer Protocol, normally on port 22. SFTP is a different protocol from FTPS and is already encrypted by SSH, so FTP_SECURE does not apply to it.

Features

  • List files and directories
  • Download and upload text or binary files
  • Upload and download local files by path, streamed, so size is not limited by the request (opt-in)
  • Edit exact text in remote files
  • Append to files
  • Rename or move files/directories
  • Create and delete directories
  • FTP, FTPS, and SFTP support
  • SFTP password or SSH private-key authentication
  • Optional 1Password CLI private-key resolution
  • AES-256-GCM encrypted credential values
  • OS-keychain support for the encryption key

Where to get it

A Cursor plugin directory listing is pending review.

Installation

Prerequisites

  • Node.js 18.14 or newer
  • An MCP-compatible client such as Claude Desktop

Installing via npm

The server is published as mcp-server-ftp:

{
  "mcpServers": {
    "ftp-server": {
      "command": "npx",
      "args": ["-y", "mcp-server-ftp"],
      "env": {
        "FTP_HOST": "ftp.example.com"
      }
    }
  }
}

Installing via Smithery (deprecated)

Smithery is shutting down its MCP proxy and connection management on October 31, 2026, and the Smithery CLI is deprecated. This install path will stop working then — install via npm instead.

npx -y @smithery/cli install alxspikers-team/mcp-server-ftp --client claude
在 GitHub 查看完整 README

安装

npx -y mcp-server-ftp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ftp-server": { "command": "npx", "args": ["-y", "mcp-server-ftp"], "env": { "FTP_HOST": "ftp.example.com" } } } }