Skip to content
Grok

SFTP for Grok

io.github.adverstm/sftp-mcp

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

client:Grok transport:stdio runtime:npm

Install SFTP in Grok

.mcp.json (in your project root)

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

{
  "mcpServers": {
    "sftp-mcp": {
      "type": "stdio",
      "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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

SFTP in other clients