Skip to main content
Glama

MCP Server for FTP/SSH

by vini1994

MCP Server for FTP/SSH

This MCP server allows you to connect and manipulate files on FTP, SFTP and SSH servers directly from Cursor AI, making it easier to manage WordPress hosting and other remote servers.

Features

  • Connecting to FTP, SFTP, and SSH Servers
  • Listing files and directories
  • Uploading and Downloading Files
  • Creating, removing, and renaming files and directories
  • Reading and writing file contents
  • Support for multiple simultaneous connections

Installation

  1. Make sure you have Node.js installed (v14+)
  2. Clone this repository or copy the MCP folder
  3. Install dependencies:
cd MCP npm install

Cursor Usage

Cursor Configuration

The .cursor/mcp.json configuration file is already included and configured. The Cursor should automatically recognize the MCP server.

Starting the server

You can start the MCP server in two ways:

  1. stdio mode (recommended for use with Cursor):
npm start
  1. HTTP mode (for development or use with other tools):
npm run start:http

Example of usage in Cursor

Here is an example of how to use the MCP server in Cursor:

// Conectar a um servidor FTP connect(type="ftp", host="meu-servidor.com", port=21, username="usuario", password="senha") // Conectar a um servidor SFTP/SSH connect(type="sftp", host="meu-servidor.com", port=22, username="usuario", password="senha") // Listar arquivos em um diretório list_directory(connectionId="conn_id_retornado", path="/caminho/remoto") // Fazer upload de um arquivo upload_file(connectionId="conn_id_retornado", localPath="/caminho/local/arquivo.txt", remotePath="/caminho/remoto/arquivo.txt") // Baixar um arquivo download_file(connectionId="conn_id_retornado", remotePath="/caminho/remoto/arquivo.txt", localPath="/caminho/local/arquivo.txt") // Ler o conteúdo de um arquivo read_file(connectionId="conn_id_retornado", path="/caminho/remoto/arquivo.txt") // Escrever conteúdo em um arquivo write_file(connectionId="conn_id_retornado", path="/caminho/remoto/arquivo.txt", content="Novo conteúdo do arquivo") // Desconectar quando terminar disconnect(connectionId="conn_id_retornado")

Available tools

ToolDescription
connectConnects to an FTP, SFTP or SSH server
list_directoryIt lists files and directories in a remote path
download_fileDownload a file from the remote server
upload_fileSend a file to the remote server
delete_fileDelete a file from the remote server
create_directoryCreates a directory on the remote server
remove_directoryRemove a directory from the remote server
renameRename a file or directory on the remote server
read_fileReads the contents of a file from the remote server
write_fileWrites content to a file on the remote server
disconnectCloses a connection to the server

Security

  • Passwords and private keys are used only for authentication and are not stored permanently.
  • All connections are managed during the session and closed when the process ends.
  • For greater security, it is recommended to use key authentication instead of password.

Troubleshooting

If you encounter problems using this MCP server:

  1. Verify that all dependencies are installed
  2. Make sure the ports and access credentials are correct
  3. Verify that the remote server is accessible from your network
  4. For SFTP/SSH connections, consider using the privateKey parameter instead of password

License

MIT

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Allows users to connect to and manipulate files on FTP, SFTP, and SSH servers directly from Cursor AI, facilitating WordPress hosting and remote server management.

  1. Features
    1. Installation
      1. Cursor Usage
        1. Cursor Configuration
        2. Starting the server
        3. Example of usage in Cursor
      2. Available tools
        1. Security
          1. Troubleshooting
            1. License

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                Enables AI assistants to interact with WordPress sites through the WordPress REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.
                Last updated -
                18
                31
                MIT License
              • A
                security
                F
                license
                A
                quality
                Enables Claude to interact with FTP servers through natural language commands, allowing users to list directories, download/upload files, create directories, and delete files/directories on FTP servers.
                Last updated -
                6
                5
                JavaScript
                • Linux
                • Apple
              • A
                security
                F
                license
                A
                quality
                An MCP server that enables integration with GitHub Enterprise API, allowing users to access repository information, manage issues, pull requests, workflows, and other GitHub features through Cursor.
                Last updated -
                16
                33
                14
                TypeScript
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                Enables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.
                Last updated -
                18
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/vini1994/mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server