npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vielhuber/ftpmcp

v1.0.4

Published

A focused MCP server for safe FTP and FTPS file operations.

Downloads

61

Readme

build status GitHub Tag License Last Commit node version npm Version npm Downloads

🗃️ftpmcp🗃️

A focused Model Context Protocol server for FTP and FTPS file operations. It deliberately does not implement SFTP: SSH-based transfers belong in an SSH MCP instead of duplicating credentials and transport logic here.

Features

  • Plain FTP, explicit FTPS and implicit FTPS
  • Any number of named FTP hosts in one MCP process
  • Remote operations restricted to each host's root
  • Local uploads and downloads restricted to each host's local_root, including symlink checks
  • Read-only mode and separately guarded deletion
  • Structured MCP results and errors
  • No credential values in tool responses

Installation

npm install -g @vielhuber/ftpmcp

Configuration

{
    "hosts": [
        {
            "host": "website",
            "hostname": "ftp.example.com",
            "protocol": "ftps",
            "port": 21,
            "username": "user",
            "password": "your_password",
            "root": "/public_html",
            "local_root": "/host/data",
            "read_only": false,
            "allow_delete": false,
            "tls_reject_unauthorized": true,
            "timeout": 30000
        }
    ]
}

Pass the file to the server:

export FTP_CONFIG_FILE=/path/to/ftp-hosts.json

protocol accepts ftp, ftps and ftps-implicit. Prefer FTPS whenever the server supports it. Plain FTP sends credentials and content without transport encryption.

root is the visible remote root for every tool path on that host. Configure the FTP account itself with an equivalent server-side chroot: FTP cannot reliably prevent a server-provided symbolic link from pointing outside a merely client-side path boundary.

local_root restricts local uploads and downloads. Both relative paths and absolute paths below that directory are accepted.

read_only: true blocks uploads, directory creation, renames and deletion. Deletion additionally requires allow_delete: true.

Every operation except list_hosts requires the selected host alias.

MCP client

{
    "mcpServers": {
        "ftp": {
            "command": "ftpmcp",
            "env": {
                "FTP_CONFIG_FILE": "/path/to/ftp-hosts.json"
            }
        }
    }
}

Tools

| Tool | Purpose | | ------------------ | -------------------------------------------------------------------------- | | list_hosts | List every configured host without credentials | | test_connection | Verify the configured connection and login | | list_directory | List one remote directory | | download_file | Download a remote file below the selected host's local_root | | upload_file | Upload a local file without overwriting by default | | create_directory | Create a remote directory | | rename_path | Rename or move a remote file or directory | | delete_file | Delete one file when deletion is enabled | | delete_directory | Delete an empty or explicitly recursive directory when deletion is enabled |

Development

npm install
npm test
npm run format:check

License

MIT