FTP MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FTP MCP ServerUpload /home/user/image.png to 'mysite' and provide the public URL."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FTP MCP Server (multi-server version)
A local server for uploading/listing/deleting files to multiple FTP servers from a single MCP server.
Each tool call specifies which server to operate on via the server parameter (alias).
Upload targets are specified by local absolute paths, and the file contents themselves are not included in the tool call arguments
(this avoids putting binary data such as images into the LLM context).
Main use case: the first half of a two-step flow in which generated images are uploaded to a public folder on a web server, and
the URL is passed to wp_upload_media_from_url (wp-mcp) to formally register them in the WordPress media library.
1. Setup
cd ftp-mcp
npm installCopy servers.json.example to servers.json and write the information for all servers you manage
(this file contains credentials for all servers, so never publish, share, or commit it to Git.
It is included in .gitignore).
cp servers.json.example servers.json{
"mysite": {
"host": "ftp.example.com",
"user": "user@example.com",
"password": "xxxxxxxx",
"base_path": "/resource",
"public_base_url": "https://example.com/resource"
}
}base_path: the root folder for uploads on this server (absolute path from the FTP root). All tools specify files with relative paths starting from thisbase_path.public_base_url: the public URL base corresponding tobase_path. After upload, a URL combining this with the relative path is returned.port(optional, default 21),secure(optional, default false. Set to true to use FTPS (implicit TLS)).
Related MCP server: mcp-ftp-server
2. Registration with Claude Code
In the root folder of the project using Claude Code, add the MCP server information to .mcp.json.
{
"mcpServers": {
"ftp": {
"command": "node",
"args": ["/MCPの保存パス/ftp-mcp/index.js"],
"env": {
"SERVERS_CONFIG_PATH": "/MCPの保存パス/ftp-mcp/servers.json"
}
}
}
}3. Provided tools
ftp_list_servers— get the list of configured servers (alias, host, base_path, public_base_url)ftp_upload_file— upload a local file (absolute path) and return the public URL. Subfolders included inremote_pathare created automaticallyftp_list_files— get the list of files in the specified folder starting frombase_pathftp_delete_file— delete a file by specifying a relative path starting frombase_path(intended for cleaning up temporary files after importing into the WordPress media library)
Notes
Uses the
basic-ftpdependency library (FTP/FTPS support, Promise-based).Paths containing
..inremote_pathwill result in an error (to prevent writing/deleting outsidebase_path).
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Browse and manage files in your Moxt AI workspace from any MCP client.
Publish HTML, Markdown, and multi-file sites as shareable URLs instantly via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables users to upload local files to S3-compatible storage and retrieve shareable public URLs. Files are automatically organized into unique UUID-based folders to prevent naming conflicts while preserving original filenames.5 npmMIT
- FlicenseAqualityFmaintenanceEnables FTP file operations such as upload, download, list, and delete directly from Claude Desktop or Claude CLI.15-
- AlicenseBqualityDmaintenanceEnables AI agents to perform FTP/FTPS/SFTP file operations including upload, download, sync, and directory management with multi-server support.3617 npm2MIT
- FlicenseAqualityCmaintenanceEnables accessing and managing files from configured folders with filtering and size limits, allowing listing, reading, and searching files via MCP tools and resources.3-