此模型上下文协议 (MCP) 服务器为与 FTP 服务器交互提供了工具。它让 Claude.app 能够在 FTP 服务器上列出目录、下载和上传文件、创建目录以及删除文件或目录,为用户操作 FTP 服务器提供了便利。
此模型上下文协议 (MCP) 服务器为与 FTP 服务器交互提供了工具。它允许 Claude.app 列出目录、下载和上传文件、创建目录以及删除文件/目录在 FTP 服务器上。
要通过 Smithery 自动安装 mcp - server - ftp 用于 Claude 桌面版:
npx -y @smithery/cli install @alxspiker/mcp-server-ftp --client claude
# 克隆仓库
git clone https://github.com/alxspiker/mcp-server-ftp.git
cd mcp-server-ftp
# 安装依赖项
npm install
# 构建项目
npm run build
# 克隆仓库
git clone https://github.com/alxspiker/mcp-server-ftp.git
cd mcp-server-ftp
# 运行 Windows 构建帮助脚本
build-windows.bat
build-windows.bat 脚本处理 Windows 系统上的依赖项安装和构建,带有针对 TypeScript 编译器问题的备用选项。
与 Claude 桌面版一起使用此服务器:
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"ftp-server": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-ftp/build/index.js"],
"env": {
"FTP_HOST": "ftp.example.com",
"FTP_PORT": "21",
"FTP_USER": "your-username",
"FTP_PASSWORD": "your-password",
"FTP_SECURE": "false"
}
}
}
}
编辑 %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"ftp-server": {
"command": "node",
"args": ["C:\path\to\mcp-server-ftp\build\index.js"],
"env": {
"FTP_HOST": "ftp.example.com",
"FTP_PORT": "21",
"FTP_USER": "your-username",
"FTP_PASSWORD": "your-password",
"FTP_SECURE": "false"
}
}
}
}
FTP_SECURE=true 使用安全的 FTP(如果您的服务器支持)。FTP_SECURE=true 如果您的服务器支持它。MIT