Skip to content
Claude Code

SFTP for Claude Code

io.github.adverstm/sftp-mcp

SFTP-only file access for AI: browse, edit, transfer and sync files, no shell access needed.

client:Claude Code transport:stdio runtime:npm

Install SFTP in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add sftp-mcp -e SFTP_HOST=<SFTP_HOST> -e SFTP_PORT=<SFTP_PORT> -e SFTP_USER=<SFTP_USER> -e SFTP_PASSWORD=<SFTP_PASSWORD> -e SFTP_PRIVATE_KEY=<SFTP_PRIVATE_KEY> -e SFTP_PASSPHRASE=<SFTP_PASSPHRASE> -e SFTP_SERVERS_FILE=<SFTP_SERVERS_FILE> -e SFTP_READ_ONLY=<SFTP_READ_ONLY> -e SFTP_ALLOW_DESTRUCTIVE=<SFTP_ALLOW_DESTRUCTIVE> -e SFTP_ALLOWED_WRITE_PREFIX=<SFTP_ALLOWED_WRITE_PREFIX> -e SFTP_ALLOWED_READ_PREFIX=<SFTP_ALLOWED_READ_PREFIX> -- npx -y sftp-mcp

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

SFTP in other clients