FTP/SSH Bridge for WordPress MCP server

Provides a bridge to FTP/SSH services for WordPress hosting environments, enabling file operations and server management without manual client configuration.
Back to servers
Provider
vini1994
Release date
Apr 24, 2025
Language
TypeScript
Stats
2 stars

The MCP server for FTP/SSH allows you to connect to and manipulate files on FTP, SFTP, and SSH servers directly from Cursor AI. This tool simplifies the management of WordPress hosting and other remote servers by providing a seamless interface for file operations.

Installation Requirements

To set up the MCP server, you need:

  1. Node.js (version 14 or higher)
  2. A copy of the MCP repository or folder

Installation Steps

cd MCP
npm install

Starting the Server

You can start the MCP server in two different modes:

Stdio Mode (Recommended for Cursor)

npm start

HTTP Mode (For Development or Other Tools)

npm run start:http

Using with Cursor AI

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

Connection Examples

Connecting to FTP Server

connect(type="ftp", host="my-server.com", port=21, username="user", password="password")

Connecting to SFTP/SSH Server

connect(type="sftp", host="my-server.com", port=22, username="user", password="password")

File Operations

Listing Directory Contents

list_directory(connectionId="returned_conn_id", path="/remote/path")

Uploading Files

upload_file(connectionId="returned_conn_id", localPath="/local/path/file.txt", remotePath="/remote/path/file.txt")

Downloading Files

download_file(connectionId="returned_conn_id", remotePath="/remote/path/file.txt", localPath="/local/path/file.txt")

Reading and Writing Files

read_file(connectionId="returned_conn_id", path="/remote/path/file.txt")

write_file(connectionId="returned_conn_id", path="/remote/path/file.txt", content="New file content")

Closing Connection

disconnect(connectionId="returned_conn_id")

Available Tools

The MCP server provides the following tools for remote file management:

  • connect: Establishes connection to FTP, SFTP, or SSH servers
  • list_directory: Lists files and directories in a remote path
  • download_file: Downloads a file from the remote server
  • upload_file: Sends a file to the remote server
  • delete_file: Removes a file from the remote server
  • create_directory: Creates a directory on the remote server
  • remove_directory: Removes a directory from the remote server
  • rename: Renames a file or directory on the remote server
  • read_file: Reads content from a file on the remote server
  • write_file: Writes content to a file on the remote server
  • disconnect: Closes a server connection

Troubleshooting

If you encounter issues when using this MCP server:

  • Verify all dependencies are installed
  • Ensure port numbers and access credentials are correct
  • Check that the remote server is accessible from your network
  • For SFTP/SSH connections, consider using the privateKey parameter instead of password

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later