# mcp-sftp-orchestrator [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/fkom13/mcp-sftp-orchestrator  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-sftp-orchestrator

## Description
Serveur MCP pour l'orchestration de tâches distantes (SSH/SFTP) avec une file d'attente persistante.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/fkom13/mcp-sftp-orchestrator), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/fkom13/mcp-sftp-orchestrator.git
```

2. Install:

```sh
cd sftp-mcp   # ou tools/sftp-mcp
```

3. Install:

```sh
npm install
```

4. Configure:

```sh
cp .env.example .env
```

## Documentation

## What mcp-sftp-orchestrator does

The mcp-sftp-orchestrator MCP server gives an MCP-compatible agent an interface for administering remote machines through SSH and SFTP. It can run commands against one alias, several aliases, every configured server, or a named group. Commands may be queued, waited on, inspected, retried, logged, or purged. Interactive commands and ordered command sequences are also available.

Remote file workflows include reading, writing, and targeted editing. The documented safe-edit pattern reads a file, records its hash, and applies an edit with `expectedHash`; dry-run and backup options are available. Transfers support uploads, downloads, server-to-server copies, multiple targets, and globs. The server also exposes remote shells, tmux sessions, SSH tunnels, snapshots, and cross-source or cross-folder comparisons.

Operational data is organized around aliases, groups, projects, and work sessions. Projects map local paths to remote paths and can include ignored paths and runtime metadata. A work session records an intervention and can produce a closing server note. Infrastructure tools cover fleet reachability, resource usage, services, logs, API health, Fail2Ban, PM2, Docker, and server inventory.

## How it works

The process uses MCP over stdio and runs with Node.js. Server connection definitions are stored under the configured data directory in `servers.json`; an alias can use an SSH key or password and may be marked read-only. Jobs, task history, notes, groups, projects, work sessions, policies, tunnels, and infrastructure snapshots are stored in separate JSON files or directories there.

The mcp-sftp-orchestrator MCP server maintains an SSH connection pool per server, with configurable minimum and maximum connections, keepalive behavior, and idle connection closure. Queued work is autosaved, with a maximum queue size and background transition controlled by timeout settings. Secrets are masked in relevant listing and diagnostic responses.

## Setup and configuration

Install Node.js 18 or newer, clone the repository, install dependencies with `npm install`, copy `.env.example` to `.env`, and set the data directory and key paths as needed. All documented environment variables are optional. The default data location is `~/.config/mcp-orchestrator`.

Configure an MCP client to launch `node` with the absolute path to `server.js`. After changing the code, reload or restart the MCP session and use `system_diagnostics` to check the reported version and read-only state.

Important settings include `MCP_READONLY` for global write and mutating-execution protection, `MCP_ALLOWED_ROOTS` for permitted local path roots, command and interactive timeouts, queue limits, connection pool sizes, and `MCP_DEBUG` for detailed stderr logging. A server alias can also have its own `readonly` setting.

## Tools and capabilities

The 82 tools are grouped into several operational areas:

- Execute commands, interactive tasks, sequences, transfers, and queued jobs.
- Add, list, remove, and group SSH server aliases.
- Compare files and folders, create or restore snapshots, and inspect differences.
- Manage projects, resolve local and remote paths, and record work sessions.
- Add SSH public keys with dry-run behavior by default.
- Apply command blocklists to shell and sequence operations.
- Inspect fleet status, resources, services, logs, APIs, and infrastructure details.
- Create SSH tunnels, manage an allowlist, and operate remote tmux sessions.

## Limitations and notes

The server communicates through stdio rather than a network MCP endpoint. It requires reachable SSH/SFTP targets and valid credentials configured in its alias data.

The mcp-sftp-orchestrator MCP server can execute mutating actions, so read-only mode, per-alias restrictions, command policies, dry runs, and expected file hashes should be considered before enabling writes. `ssh_authorize_key` defaults to dry-run, while destructive task execution supports dry-run and force controls. Local path access can be restricted with `MCP_ALLOWED_ROOTS`.

_Full upstream README: https://allmcps.com/mcp/mcp-sftp-orchestrator/readme_

