# Replit SSH

Inspect and modify Replit project files over SSH and SFTP straight from AI coding assistants.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 13
- Author: mindstone
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/replit-ssh
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/replit-ssh

## What it does

This MCP server exposes project files on Replit via SSH and SFTP. It lets agents list directories, read source code, inspect metadata, delete, and overwrite project assets. File writes happen atomically, followed by a SHA-256 hash verification to guarantee data integrity.

Connections strictly target `*.replit.dev` hosts to block outbound drifts. When parsing local `~/.ssh/config` files, the server relies on an AST evaluator instead of spawning shell subshells for `Match exec` directives. Authentication relies on a local key on disk rather than environment secrets.

Operating this connector requires Node.js 20 or newer alongside an active Replit Core plan. You can invoke `replit_setup_ssh` to generate your key pair, then register the public key in your Replit account profile. The connection fails if your project environment is paused or offline.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `REPLIT_SSH_REQUEST_TIMEOUT_MS`, `MCP_REPLIT_SSH_STRICT_HOST_KEY`, `MCP_REPLIT_SSH_KNOWN_HOSTS_PATH` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env REPLIT_SSH_REQUEST_TIMEOUT_MS=<REPLIT_SSH_REQUEST_TIMEOUT_MS> --env MCP_REPLIT_SSH_STRICT_HOST_KEY=<MCP_REPLIT_SSH_STRICT_HOST_KEY> --env MCP_REPLIT_SSH_KNOWN_HOSTS_PATH=<MCP_REPLIT_SSH_KNOWN_HOSTS_PATH> --transport stdio replit-ssh -- npx -y @mindstone/mcp-server-replit-ssh
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add replit-ssh --env REPLIT_SSH_REQUEST_TIMEOUT_MS=<REPLIT_SSH_REQUEST_TIMEOUT_MS> --env MCP_REPLIT_SSH_STRICT_HOST_KEY=<MCP_REPLIT_SSH_STRICT_HOST_KEY> --env MCP_REPLIT_SSH_KNOWN_HOSTS_PATH=<MCP_REPLIT_SSH_KNOWN_HOSTS_PATH> -- npx -y @mindstone/mcp-server-replit-ssh
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "replit-ssh": {
            "command": "npx",
            "args": [
                "-y",
                "@mindstone/mcp-server-replit-ssh"
            ],
            "env": {
                "REPLIT_SSH_REQUEST_TIMEOUT_MS": "<REPLIT_SSH_REQUEST_TIMEOUT_MS>",
                "MCP_REPLIT_SSH_STRICT_HOST_KEY": "<MCP_REPLIT_SSH_STRICT_HOST_KEY>",
                "MCP_REPLIT_SSH_KNOWN_HOSTS_PATH": "<MCP_REPLIT_SSH_KNOWN_HOSTS_PATH>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "replit-ssh": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mindstone/mcp-server-replit-ssh"
            ],
            "env": {
                "REPLIT_SSH_REQUEST_TIMEOUT_MS": "<REPLIT_SSH_REQUEST_TIMEOUT_MS>",
                "MCP_REPLIT_SSH_STRICT_HOST_KEY": "<MCP_REPLIT_SSH_STRICT_HOST_KEY>",
                "MCP_REPLIT_SSH_KNOWN_HOSTS_PATH": "<MCP_REPLIT_SSH_KNOWN_HOSTS_PATH>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e REPLIT_SSH_REQUEST_TIMEOUT_MS=<REPLIT_SSH_REQUEST_TIMEOUT_MS> -e MCP_REPLIT_SSH_STRICT_HOST_KEY=<MCP_REPLIT_SSH_STRICT_HOST_KEY> -e MCP_REPLIT_SSH_KNOWN_HOSTS_PATH=<MCP_REPLIT_SSH_KNOWN_HOSTS_PATH> replit-ssh npx -y @mindstone/mcp-server-replit-ssh
```
Replace <…> with your own values

## When to use it
- read and modify Replit project files remotely over SFTP
- verify written files using SHA-256 hash checks
- generate local SSH key pairs and configuration blocks
- browse directory listings and search codebase files

## Example prompts
- Run `replit_check_connection` and list all files in the project root
- Generate a fresh key using `replit_setup_ssh`
- Inspect `package.json` inside the Replit container

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [Oh My Posh Validator](https://affpapa.org/en/nevibecode/mcp/oh-my-posh-validator.md) — MCP server · ★ 23654
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18779
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17191
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12110

From the same set: [mindstone/mcp-servers](https://affpapa.org/en/nevibecode/by/mindstone/mcp-servers.md) — 40 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
