Skip to content
Claude Desktop

SFTP for Claude Desktop

io.github.adverstm/sftp-mcp

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

client:Claude Desktop transport:stdio runtime:npm

Install SFTP in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

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

{
  "mcpServers": {
    "sftp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sftp-mcp"
      ],
      "env": {
        "SFTP_HOST": "<SFTP_HOST>",
        "SFTP_PORT": "<SFTP_PORT>",
        "SFTP_USER": "<SFTP_USER>",
        "SFTP_PASSWORD": "<SFTP_PASSWORD>",
        "SFTP_PRIVATE_KEY": "<SFTP_PRIVATE_KEY>",
        "SFTP_PASSPHRASE": "<SFTP_PASSPHRASE>",
        "SFTP_SERVERS_FILE": "<SFTP_SERVERS_FILE>",
        "SFTP_READ_ONLY": "<SFTP_READ_ONLY>",
        "SFTP_ALLOW_DESTRUCTIVE": "<SFTP_ALLOW_DESTRUCTIVE>",
        "SFTP_ALLOWED_WRITE_PREFIX": "<SFTP_ALLOWED_WRITE_PREFIX>",
        "SFTP_ALLOWED_READ_PREFIX": "<SFTP_ALLOWED_READ_PREFIX>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

SFTP in other clients