MCP Server for FTP Access logo

MCP Server for FTP Access

Community
alxspiker

Model Context Protocol server for FTP access

Publisheralxspiker
Repositorymcp-server-ftp
LanguageTypeScript
Forks
15
Stars
33
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    MCP Server for FTP Access exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    33 stars and 15 forks from the linked repository.

MseeP.ai Security Assessment Badge

MCP Server for FTP, FTPS, and SFTP Access

smithery badge

This Model Context Protocol (MCP) server provides file-management tools for FTP, FTPS, and SFTP servers. It supports directory listing, binary-safe downloads/uploads, text edits, appends, renames/moves, directory creation, and deletion.

Protocol support

  • FTP — traditional FTP, normally on port 21.
  • FTPS — FTP secured with TLS. Use FTP_PROTOCOL=ftp and FTP_SECURE=true.
  • SFTP — SSH File Transfer Protocol, normally on port 22. SFTP is a different protocol from FTPS and is already encrypted by SSH, so FTP_SECURE does not apply to it.

Features

  • List files and directories
  • Download and upload text or binary files
  • Edit exact text in remote files
  • Append to files
  • Rename or move files/directories
  • Create and delete directories
  • FTP, FTPS, and SFTP support
  • SFTP password or SSH private-key authentication
  • Optional 1Password CLI private-key resolution
  • AES-256-GCM encrypted credential values
  • OS-keychain support for the encryption key

Installation

Installing via Smithery

bash
npx -y @smithery/cli install alxspikers-team/mcp-server-ftp --client claude

Prerequisites

  • Node.js 18.14 or newer
  • An MCP-compatible client such as Claude Desktop

Installing via npm

The server is published as mcp-server-ftp:

json
{
  "mcpServers": {
    "ftp-server": {
      "command": "npx",
      "args": ["-y", "mcp-server-ftp"],
      "env": {
        "FTP_HOST": "ftp.example.com"
      }
    }
  }
}

Building from source

bash
git clone https://github.com/alxspiker/mcp-server-ftp.git
cd mcp-server-ftp
npm install
npm run build

Configuration

FTP example

json
{
  "mcpServers": {
    "ftp-server": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server-ftp/build/index.js"],
      "env": {
        "FTP_HOST": "ftp.example.com",
        "FTP_PORT": "21",
        "FTP_PROTOCOL": "ftp",
        "FTP_USER": "your-username",
        "FTP_PASSWORD": "your-password"
      }
    }
  }
}

FTPS example

FTPS uses the normal FTP client with TLS enabled:

json
{
  "mcpServers": {
    "ftp-server": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server-ftp/build/index.js"],
      "env": {
        "FTP_HOST": "ftps.example.com",
        "FTP_PORT": "21",
        "FTP_PROTOCOL": "ftp",
        "FTP_SECURE": "true",
        "FTP_USER": "your-username",
        "FTP_PASSWORD": "your-password"
      }
    }
  }
}

FTP_SECURE is only meaningful when FTP_PROTOCOL=ftp. It is ignored by the SFTP path because SFTP is already encrypted over SSH.

SFTP example

json
{
  "mcpServers": {
    "ftp-server": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server-ftp/build/index.js"],
      "env": {
        "FTP_HOST": "sftp.example.com",
        "FTP_PORT": "22",
        "FTP_PROTOCOL": "sftp",
        "FTP_USER": "your-username",
        "FTP_PRIVATE_KEY_PATH": "~/.ssh/id_ed25519",
        "FTP_PASSPHRASE": "your-key-passphrase"
      }
    }
  }
}

Configuration options

Environment variableApplies toDescriptionDefault
FTP_HOSTallServer hostname or IP addresslocalhost
FTP_PORTallServer port21 for FTP/FTPS, 22 for SFTP
FTP_PROTOCOLallftp or sftpftp
FTP_USERallUsername; supports encrypted enc: valuesanonymous
FTP_PASSWORDallPassword; supports encrypted enc: valuesempty
FTP_SECUREFTP/FTPS onlyEnables TLS/FTPS for the FTP clientfalse
FTP_PRIVATE_KEY_PATHSFTP onlySSH private-key path or op:// 1Password secret referenceauto-detect
FTP_PASSPHRASESFTP onlySSH private-key passphrase; supports encrypted enc: valuesempty
FTP_ENCRYPTION_KEYencrypted credentials64-character hex AES-256 key. Prefer the OS keychain or a global environment variable for local installs.disabled

SFTP authentication

SFTP supports private-key and password authentication.

The server looks for a private key in this order:

  1. FTP_PRIVATE_KEY_PATH, if set
  2. ~/.ssh/id_ed25519
  3. ~/.ssh/id_rsa
  4. ~/.ssh/id_ecdsa

If no key is found, FTP_PASSWORD is used.

Reading an SFTP key from 1Password

FTP_PRIVATE_KEY_PATH may contain a 1Password secret reference instead of a filesystem path:

json
"FTP_PRIVATE_KEY_PATH": "op://Private/my-server/private key"

Requirements:

  • The 1Password CLI (op) must be installed and available on PATH.
  • The CLI must already be able to authenticate, either through the desktop-app integration or OP_SERVICE_ACCOUNT_TOKEN.

The key is resolved lazily, cached in memory for the process, and is not written to disk.

If the SSH server rejects 1Password's default exported key format, request OpenSSH format:

json
"FTP_PRIVATE_KEY_PATH": "op://Private/my-server/private key?ssh-format=openssh"

Credential encryption

FTP_USER, FTP_PASSWORD, and FTP_PASSPHRASE may be stored as AES-256-GCM encrypted values using the enc: format.

Generate an encryption key

bash
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

Store the key in the OS keychain (recommended for local installs)

bash
npm run build
npm run store-key -- <your-64-char-hex-key>

The server loads the key from macOS Keychain, Windows Credential Manager, or Linux Secret Service when available.

Alternatively, set the key globally in the process environment:

bash
export FTP_ENCRYPTION_KEY=<your-64-char-hex-key>

Do not place FTP_ENCRYPTION_KEY beside the encrypted credentials in the same local MCP config unless your deployment environment gives you no separate secret-storage mechanism.

Encrypt a value

bash
npm run build
FTP_ENCRYPTION_KEY=<your-64-char-hex-key> npm run encrypt-env -- <plaintext-value>

If the key is already available from the OS keychain or shell environment:

bash
npm run encrypt-env -- <plaintext-value>

Available tools

ToolDescription
list-directoryList contents of a remote directory
download-fileDownload a file; binary content is returned as base64
upload-fileUpload text or base64-encoded binary content
create-directoryCreate a directory
delete-fileDelete a file
delete-directoryDelete a directory
rename-fileRename or move a file or directory
edit-fileReplace exact text in a remote text file
append-fileAppend content to a file, creating it if needed

Tool calls return machine-readable structuredContent, and all nine tools advertise output schemas. Version 1.2.2 includes a compatibility shim that ensures advertised schemas use the JSON Schema 2020-12 dialect required by current MCP clients.

Security notes

  • Prefer SFTP when available; it uses SSH encryption and key authentication without FTPS certificate configuration.
  • Use FTP_SECURE=true only for FTPS servers using the FTP protocol path.
  • Use credential encryption when a client configuration would otherwise contain plaintext credentials.
  • FTP and SFTP transfers may use short-lived local temporary files for upload/download/append operations; those files are removed during cleanup after each operation.

Troubleshooting Windows builds

  1. Confirm Node.js 18.14 or newer and npm are installed.
  2. Run npm install.
  3. Run npm run build or npx tsc.
  4. Start the compiled server with node build/index.js.

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "alxspiker-mcp-server-ftp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-ftp"
      ]
    }
  }
}

Use MCP Server for FTP Access MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP Server for FTP Access is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MCP Server for FTP Access as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MCP Server for FTP Access MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "alxspiker-mcp-server-ftp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-ftp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP Server for FTP Access MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MCP Server for FTP Access MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP Server for FTP Access to help me with this task?
MCP Server for FTP Access
Sure. I read it.
Here is what I found using MCP Server for FTP Access.

Frequently asked questions

What is the MCP Server for FTP Access MCP server used for?

MCP Server for FTP Access is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP Server for FTP Access MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP Server for FTP Access with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP Server for FTP Access MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP Server for FTP Access connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP Server for FTP Access MCP to TypingMind?

MCP Server for FTP Access runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MCP Server for FTP Access MCP provide in TypingMind?

MCP Server for FTP Access exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP Server for FTP Access MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP Server for FTP Access requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇