ChatGPT Remote Commander
Allows ChatGPT to access and control a Windows machine through the OpenAI Secure MCP Tunnel, including filesystem listing/reading/writing with backups, allowlisted PowerShell command execution, system status, and audit logging.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ChatGPT Remote Commanderlist the files in my project folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ChatGPT Remote Commander
Windows-first MCP server for controlled project access from ChatGPT through OpenAI Secure MCP Tunnel.
Setup guides in 10 languages: English · فارسی · العربية · Türkçe · Español · Français · Deutsch · Русский · 简体中文 · 日本語
Features
Loopback-only MCP server by default (
127.0.0.1:47831)Configurable allowed filesystem roots
Directory listing and UTF-8 text reads
Text writes with automatic backup and optional SHA-256 precondition
Allowlisted project command execution through
pwsh.exeJSONL audit log
OpenAI Secure MCP Tunnel workflow
Tested end-to-end from ChatGPT UI
Related MCP server: MCP ChatGPT Full PC Dev
Requirements
Windows 10/11
PowerShell 7 (
pwsh.exe)Node.js 22+
Git for the Git command examples
OpenAI Secure MCP Tunnel client and a configured ChatGPT custom plugin/app
Quick start
Clone the repository.
Review
config.json;%USERPROFILE%is expanded at runtime.Run
npm run check.Run
npm test; expected result:SMOKE_PASS.Start the MCP server with
npm start.Verify
http://127.0.0.1:47831/health.
The MCP endpoint is http://127.0.0.1:47831/mcp.
Connect ChatGPT
Create an OpenAI Secure MCP Tunnel and Runtime API key, then keep the local MCP server running and launch:
pwsh.exe -NoProfile -File .\connect-chatgpt.ps1The script validates local health, configures a sample_mcp_remote_no_auth tunnel profile, runs tunnel-client doctor, and starts the foreground tunnel. The Runtime API key is entered as a hidden SecureString and is not written into the repository.
In ChatGPT, create a custom plugin/app with Connection = Tunnel, select the tunnel, use no authentication for this server, review permissions, and create the plugin.
Tools
Legacy-safe tools: system_status, list_directory, read_text, write_text, run_project_command. Power Mode adds power_status, file_info, read_file, write_file, create_directory, copy_path, move_path, delete_path, search_files, run_shell, system_info, list_processes, kill_process, and persistent terminal tools (start_terminal, read_terminal, send_terminal, stop_terminal).
Security
Filesystem containment is enforced, but command execution is not an OS sandbox. An allowlisted executable or project script may itself access resources beyond the configured roots. Treat command execution as privileged. See SECURITY.md and the point-in-time SECURITY_AUDIT.md.
Validation
v0.2.0 passed syntax checks, legacy smoke tests, Power Mode smoke tests, live MCP discovery with 22 tools, full-filesystem write/read testing, direct shell testing, recoverable-delete testing, and Secure MCP Tunnel readiness. Run pwsh.exe -NoProfile -File .\\test\\security-audit.ps1 before public releases.
License
MIT — see LICENSE.
Power Mode (v0.2)
v0.2 adds an explicit Full-Control mode for trusted machines. The runtime automatically prefers config.local.json when present; this file is gitignored. The public config.json remains safe-by-default with Power Mode disabled.
On this machine, Power Mode can enable full filesystem access, direct PowerShell execution, process control, binary file I/O, recursive search, recoverable delete, and persistent terminal sessions. Existing files are backed up before Power Mode overwrite/move/delete operations. Permanent delete is separately gated and disabled in the provided local policy.
The local policy blocks automatic shutdown, restart and logoff command patterns. Power Mode is intentionally privileged and is not an OS sandbox. Use ChatGPT action permissions and only expose a tunnel to trusted accounts.
FORBIDDEN: This conversation does not support developer MCPs is a ChatGPT conversation-surface gate that occurs before requests reach this server; server code cannot bypass it. Use a fresh MCP-capable chat when that platform gate appears.
Local private configuration
Copy the public configuration to config.local.json, enable only the Power Mode capabilities you want, and keep that file private. config.local.json, audit logs, backups, Runtime API keys, and tunnel credentials must never be committed.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Authenticated MCP Agent (Openai)
Egnyte's remote MCP server for secure AI access, search, upload and file management in your account.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables ChatGPT/Codex to read, search, and edit files in a single allowed folder on Windows through OpenAI Secure MCP Tunnel.ISC
- FlicenseCqualityDmaintenanceEnables ChatGPT to control a Windows PC remotely via OpenAI Secure MCP Tunnel, executing file operations, PowerShell commands, and system actions through a local MCP server.15-
- AlicenseNot gradedqualityCmaintenanceEnables ChatGPT web to safely read and modify only explicitly allowed local project files through OpenAI Secure MCP Tunnel, including git operations, file edits, and running project scripts, while enforcing strict security boundaries.15MIT
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT to access approved local Windows folders, run commands, control the desktop, and manage session history through a permission-bounded MCP server.2,965MIT