Get the FREE Ultimate OpenClaw Setup Guide →

mcp -ftp

Model Context Protocol server for FTP access

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio alxspiker-mcp-server-ftp node /absolute/path/to/mcp-server-ftp/build/index.js \
  --env FTP_HOST="ftp.example.com" \
  --env FTP_PORT="21" \
  --env FTP_USER="your-username" \
  --env FTP_SECURE="false" \
  --env FTP_PASSWORD="your-password"

How to use

This MCP server exposes FTP capabilities to Claude-style clients. It provides tools to list directories, download files, upload files, create directories, and delete files or directories on a configured FTP server. After starting the server, configure Claude Desktop (or another MCP client) to load the ftp-server MCP entry with the required environment variables. Once configured, you can issue natural language requests such as listing a directory, downloading a file, uploading content as a file, creating a directory, or deleting items on the FTP server.

How to install

Prerequisites:

  • Node.js 16 or higher installed on your machine
  • Access to a Claude Desktop (or compatible MCP client) to test the MCP server

Installation steps (via Smithery):

  1. Install the MCP server package for Claude Desktop automatically:
npx -y @smithery/cli install @alxspiker/mcp-server-ftp --client claude
  1. Ensure Node.js and npm are installed and accessible in your environment.
  2. If building from source, clone the repository and build:
# Linux/macOS
git clone https://github.com/alxspiker/mcp-server-ftp.git
cd mcp-server-ftp
npm install
npm run build
# Windows
git clone https://github.com/alxspiker/mcp-server-ftp.git
cd mcp-server-ftp
# Run Windows build helper
build-windows.bat
  1. Run or integrate the MCP server in your environment. Use the mcp_config example to point to the built index.js around build/index.js.

Additional notes

Notes:

  • Environment variables control the FTP connection. Set them in the Claude configuration as shown in the README (FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD, FTP_SECURE).
  • For security, restrict access to the Claude Desktop configuration file and consider using FTPS by setting FTP_SECURE=true if your FTP server supports it.
  • The server writes temporary files during uploads/downloads to the system temp directory; ensure adequate permissions and space.
  • If you encounter build issues on Windows, use the provided build-windows.bat script or fallback to pre-compiled files in the build directory by running the built index.js directly.
  • The MCP toolset exposes the following available tools: list-directory, download-file, upload-file, create-directory, delete-file, delete-directory.

Related MCP Servers

Sponsor this space

Reach thousands of developers