PC Commander
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., "@PC CommanderIs Python installed on my PC?"
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.
Ask ChatGPT to do something on your computer, and it actually does it β after you tap Approve.
π What is this, in plain words?
You know how ChatGPT can tell you how to do things on your computer, but can't actually do them? This fixes that.
PC Commander is like a remote control for your PC that ChatGPT can use β except you're always holding the "Approve" button.
Ask ChatGPT "is Python installed on my computer?" and instead of guessing, it checks your PC and tells you the real answer. Ask it to "clean up my Downloads folder" and it does β right after a little box pops up on your screen and you click Approve.
Nothing ever happens on your computer unless you allow it.
Related MCP server: Unlimited Agent
π‘ Things you can ask it
Once it's set up, just chat normally. For example:
"Is Python (or Node, or Git) installed on my PC?"
"What's taking up all the space on my hard drive?"
"Clean up my Downloads folder β delete anything older than a month."
"What's my computer's IP address and Windows version?"
"Make a folder on my Desktop called Taxes and move all my PDFs into it."
"Is my laptop running hot? What's using the most memory right now?"
It can do basically anything you could type into your PC yourself β you just approve it first.
β What you'll need
π₯οΈ A Windows PC | The computer you want to control. (You can talk to it from your phone or a Mac β but the computer being controlled has to be Windows.) |
β±οΈ About 10 minutes | One-time setup. After that it runs by itself. |
π¬ A ChatGPT account | One that lets you add "connectors" (a connector is just a plug-in that lets ChatGPT talk to your PC). |
π A website address you own (optional) | If you have one (like |
Never set anything like this up before? That's fine. Every step below is copyβpaste. You don't need to understand the commands β just follow along.
π Setting it up
How to open "PowerShell" (you'll need it below): press the Start button, type PowerShell, and press Enter. A blue window opens. That's where you paste the commands.
Step 1 β Get the files onto your PC
In PowerShell, paste this and press Enter:
git clone https://github.com/Lucifer-xD/pc-commander.git
cd pc-commanderπ‘ If it says "git is not recognized", install Git first (click Next through the installer), then try again. You'll also need Node.js β download the big green "LTS" button and install it.
Step 2 β Run the installer
Paste this:
powershell -ExecutionPolicy Bypass -File scripts\install.ps1This sets everything up and makes it start automatically every time you turn your PC on. When it finishes, it prints a link ending in a long code β that long code is your private key. Keep that window open for the next step.
Step 3 β Get your link
ChatGPT needs a web address to reach your PC. Pick one:
π °οΈ Just trying it out?
npm run quickGives you a temporary link right away. Good for a first test. (The link changes each time, so it's not for everyday use.)
π ±οΈ Want it permanent? (recommended)
powershell -ExecutionPolicy Bypass -File scripts\setup-domain.ps1 -Hostname pc.yourdomain.comUses a website address you own to make a permanent link that never changes. A browser opens once to sign in β just follow the prompts.
Either way, you'll get a link that looks like this β copy it, you'll paste it into ChatGPT next:
https://pc.yourdomain.com/mcp?key=your-long-private-codeStep 4 β Connect it to ChatGPT
Go to chatgpt.com β click your name β Settings β Connectors.
Click Add custom connector (you may first need to turn on Advanced β Developer mode).
Fill in the boxes:
Box
What to put
Name
PC CommanderDescription
Securely run things on my own Windows PC. I approve each action.URL
the link you copied in Step 3
Authentication
choose No authentication (your key is already in the link)
Icon
pick the file
assets/icon-connector.pngfrom this folderTick "I trust this application" and click Create.
Start a new chat, click the β near the message box, and make sure PC Commander is switched on.
π Try it: type "using PC Commander, what's my Windows version?" β a box pops up on your PC, you click Approve, and the answer appears in the chat.
Step 5 β Make ChatGPT use it automatically
So you don't have to say "use PC Commander" every time, give ChatGPT a standing instruction.
Go to Settings β Personalization β Custom Instructions, and in the box that says "How would you like ChatGPT to respond?", paste this:
I have a connector called PC Commander that runs things on my own Windows PC.
Whenever I ask about my PC / computer / laptop β checking if something is
installed, running something, finding or tidying files, system info, and so on
β use PC Commander directly and tell me the result, right here in the chat.
Don't tell me to do it myself, and don't switch me to "Work" or "Agent" mode β
stay in the normal chat. Every action already asks me to approve it on my PC.π± Using the ChatGPT desktop app too? Do the same thing there under Settings β Personalization β Custom instructions. The app and the website remember these separately, so paste it in both.
That's it β you're done. From now on, just ask ChatGPT about your computer and it'll handle it.
ποΈ How careful should it be?
You decide how much it asks before doing things. Open the settings page (the installer put a shortcut on your Desktop, or use the http://127.0.0.1:8787/... link from Step 2):
Ask each time (safest, recommended) β a box pops up for every single action and waits for your Approve. Nothing runs until you click.
Always allow (hands-off) β things run instantly with no pop-up. Faster, but it will do whatever ChatGPT asks. Only use this when you're watching.
You can switch between them anytime, and it takes effect on the very next request.
There are two separate "are you sure?" checks, and that's on purpose:
Your PC's pop-up (the one above) β the main safety net. Always protects you.
ChatGPT's own prompt β the first time, ChatGPT may ask "allow PC Commander to run this?". Choose Always allow there to stop being asked. (On the desktop app this lives under Settings β Personalization β Permissions β Custom rules.)
Want zero interruptions? Set both to allow. Want maximum safety? Leave both on ask.
π Is this safe?
Yes β and here's why, in plain terms:
You approve everything. Even if someone somehow got your link, nothing would run on your PC until you clicked Approve on your own screen.
Only you have the link. It contains a long secret code. Don't share it or post it anywhere, and you're the only one who can get in.
It's your computer, your rules. It only listens to your private link β it's not open to the internet, and there are no doors left unlocked.
Everything is written down. Every request and your decision is saved in a log file on your PC, so you can always see what happened.
Think of "Always allow" like handing someone your keyboard β only turn it on when you're paying attention. The rest of the time, keep "Ask each time" on.
β It's not working β help
What you're seeing | What to do |
ChatGPT says "handoff was declined" | You didn't click Approve in time (it waits about a minute). Try again and click it, or switch to Always allow. |
It keeps saying "Continue in Work" | Make sure PC Commander is switched on in the β menu, add the Step 5 instruction, and click "Stay in Chat". Tip: starting your message with @PC Commander forces it. |
"git is not recognized" / "node is not recognized" | |
Nothing works after I restarted my PC | It should start on its own. If not, press Start, type |
I want a new secret code | Delete the file |
Still stuck? Open an issue and describe what happened.
PC Commander is a small Model Context Protocol server exposing one tool, run_command, over streamable HTTP. The server binds to 127.0.0.1 only; a Cloudflare named tunnel provides the public HTTPS hostname. Requests carry a token (?key= or Bearer); each command passes an approval gate (a topmost WinForms dialog) unless mode is always.
src/
server.mjs MCP server; run_command tool; /health, settings + mode API
exec.mjs runs a command in PowerShell, captures stdout/stderr/exit code
approve.mjs spawns the approval dialog; returns approved/denied/timeout
approve.ps1 the topmost Approve/Deny dialog with a countdown
config.mjs defaults + generates data/token.txt
log.mjs JSONL logging
run.mjs quick-start launcher (server + temporary tunnel)
settings.html the Ask / Always-allow page
scripts/
install.ps1 deps + key + auto-start the server at logon
setup-domain.ps1 named Cloudflare tunnel + permanent URL + auto-start the tunnel
autostart/*.vbs windowless launchers used by the Startup shortcuts
cloudflared/
pc-commands.example.yml template (your real one is generated & gitignored)Run npm start to launch just the server, npm run quick for server + temporary tunnel. PRs welcome.
This server cannot be deployed
Maintenance
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Connect AI assistants to explicitly paired computers, servers, and VMs for permitted remote actions.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to securely control a Windows PC via a local agent, supporting file operations, Chrome automation, and allowlisted apps with audit logging and approval workflows.MIT
- AlicenseAqualityCmaintenanceEnables a private ChatGPT app to remotely control a Windows PC through file operations, PowerShell, screenshots, mouse and keyboard input, clipboard, and Chrome browser automation.212MIT
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT to access approved local Windows folders, run commands, control the desktop, and manage session history through a permission-bounded MCP server.4,997MIT
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT to securely access local files, shell commands, processes, Skills, and external MCP servers through a controlled local bridge with lock/unlock permissions and a Windows desktop control center.10 npmMIT