Remote PC MCP Gateway
Provides read-only Git tools confined to approved workspace roots for inspecting repositories.
Provides a shared Chrome MCP gateway for controlling explicitly targeted Chrome tabs through chrome-devtools-mcp with strict pageId isolation.
Allows Google Gemini Web to connect to the same MCP gateway via OAuth 2.1 and use local MCP tools, with Gemini-specific image/media bridge protections and optional multimodal image verification.
Allows OpenAI ChatGPT Web to connect to the local MCP gateway via OAuth 2.1/PKCE and use the gateway's local filesystem, Git, Chrome, and command-execution tools.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Remote PC MCP Gateway (ChatGPT & Google Gemini)
English | 简体中文文档 (README.zh-CN.md)
Turn your Windows 10/11 PC into a secure, OAuth 2.1 authenticated Model Context Protocol (MCP) workstation that both OpenAI ChatGPT Web (https://chatgpt.com/) and Google Gemini Web (https://gemini.google.com/) can connect to simultaneously — with zero extra local admin ports, a native Windows Bilingual Control Panel + System Tray, and flexible public HTTPS ingress (30-second Serverless Cloudflare Quick/Named Tunnel or 1-Click Non-Destructive Linux VPS with zero-domain sslip.io Auto-HTTPS).

Key Highlights
Dual-Client Concurrent Access (
ChatGPT+Google Gemini): Connect both ChatGPT Web and Google Gemini Web to the exact same HTTPS MCP URL at the same time. Full OAuth 2.1 + PKCE (S256) + Dynamic Client Registration (/oauth/register) + MCP tool safety annotations (readOnlyHint/destructiveHint) work out of the box with zero manual Client IDs or Client Secrets.Three Flexible Public HTTPS Ingress Options (Switchable Anytime):
Mode A1 — Serverless Cloudflare Quick Tunnel (Zero Account / Ready in 30s): Spawns
cloudflaredlocally, captures your dynamichttps://*.trycloudflare.comorigin, alignsOAUTH_ISSUER, and auto-detects198.18.0.0/15Clash/Mihomo/Sing-box TUN Fake-IP environments to switch to QUIC + Cloudflare Anycast Edge IPs seamlessly (eliminatingError 1033).Mode A2 — Serverless Cloudflare Named Tunnel (Zero VPS / Permanent Domain): Paste your Cloudflare hostname and Tunnel Token in Step 1 of the GUI for a permanent HTTPS URL without renting a VPS.
Mode B — 1-Click Non-Destructive Linux VPS (
Ubuntu/Debian): Automated provisioning (deploy/deploy-to-vps.ps1+deploy/install-vps.sh) using a dedicated/etc/caddy/conf.d/remote-pc-mcp-gateway.caddydrop-in + automaticCaddyfilebackup (never overwrites pre-existing websites on your server), supporting custom domains or zero-domain freemcp.<ip>.sslip.ioLet's Encrypt TLS.
Zero-Port Native Windows Client + System Tray: Double-click
Start-GUI.batfor a clean bilingual (EN / 中文) Setup Wizard, live 5-service health strip, auto-generated persistent credentials (masked by default for screen sharing), folder list management, arrow-key wraparound navigation, and a right-click System Tray (NotifyIcon) menu.5-Layer Defense-in-Depth Windows Sandbox:
Strict
allowedRootsPath Sandbox: Everyfs_*(with cross-platform..traversal normalization and fastrg --filespruning) and read-onlygit_*call is strictly confined to your approved workspace folders.Per-Tab Shared Chrome Isolation (
pageId): Reuses your existing--remote-debugging-port=9222Chrome while patchingchrome-devtools-mcp@1.5.0so cloud sessions must target explicitpageIdtabs without touching your personal tabs.Native Job Object Process-Tree Supervision (
WorkbenchJob.exe) & Auto-Review: PowerShell 7 commands (run_command) execute inside a Win32 Job Object (KILL_ON_JOB_CLOSE) with zero orphan child processes on timeout, and cleanly exiting commands auto-review (review_required: false).Mandatory Two-Step Delete Guard Hook (Default ON): Built-in
windows/ai-workbench/delete-guard.ps1pauses destructive commands (rm -rf,Remove-Item -Recurse,git reset --hard, etc.) on the first attempt for verification, allowing a single exact resend within 10 minutes.Gemini Web Image Bridge Protection & Pluggable
inspect_image: Protects Google Gemini Web from stripped{}media blocks by requiringfilePathon screenshots and offering an opt-ininspect_imagemultimodal verifier (gemini-api,openai-api, orcli-auto).
Related MCP server: local-assistant-mcp
Which Public HTTPS Ingress Mode Should You Pick?
Feature | Mode A1: Cloudflare Quick Tunnel (Default) | Mode A2: Cloudflare Named Tunnel | Mode B: Self-Hosted Linux VPS |
VPS or Domain Needed? | None (100% free, no account) | No VPS (uses free Cloudflare Tunnel + domain) | Ubuntu/Debian VPS (No domain needed — auto |
Setup Time | ~30 seconds | ~2 minutes | 1-Click automated (~1–2 min) |
Permanent URL Across Restarts? | Rotates random | Permanent (bind once, use forever) | Permanent (bind once, use forever) |
TUN / Fake-IP Proxy Support | Auto-detects | Auto-detects | Auto-reconnecting SSH |
Best For | Instant zero-cost testing & demos | Permanent URL without a Linux server | 24/7 daily production across ChatGPT & Gemini |
Architecture Overview
OpenAI ChatGPT Web ──┐
├──► HTTPS + OAuth 2.1 (PKCE S256 + Dynamic Client Registration)
Google Gemini Web ──┘ │
┌───────────────────────────┴───────────────────────────┐
▼ Mode A: Serverless Cloudflare Tunnel ▼ Mode B: 1-Click Linux VPS
[Quick *.trycloudflare.com / Named Fixed Domain] [Ubuntu/Debian VPS: Non-Destructive Caddy conf.d]
│ Encrypted QUIC Tunnel (TUN Fake-IP Safe) │ Gateway (:8787) + SSH -R Tunnel
▼ ▼
┌─────────────────────────────────────────────────────────────────────────────────────┐
│ Your Windows 10 / 11 Workstation │
│ Start-GUI.bat (Native WinForms Wizard + Dashboard + System Tray · 0 Admin Ports) │
│ ├── Filesystem MCP Supervisor + Bearer Proxy (fs_* / git_* · allowedRoots) │
│ ├── Shared Chrome MCP Gateway (1.5.0 Patched) (chrome_* · strict pageId routing) │
│ └── AI Workbench + Native WorkbenchJob.exe (run_command · Win32 Job Object) │
└─────────────────────────────────────────────────────────────────────────────────────┘Prerequisites (Windows 10 / 11)
Component | Requirement | Notes |
Node.js |
| Runs Gateway, FS MCP, Chrome MCP & AI Workbench |
PowerShell 7 |
| Executes |
.NET SDK |
| Compiles |
OpenSSH Client | Built-in | Used only in Mode B (VPS SSH Reverse Tunnel) |
Cloudflared | Optional (Mode A) | Install via |
Google Chrome | Optional ( | Launch Chrome with |
Foolproof 3-Step Quick Start (Windows PC)
Step 1 — Clone & Build Locally
git clone https://github.com/dqIndieGames/remote-pc-mcp-gateway.git
cd remote-pc-mcp-gateway
npm run setupTip: Even if you skip
npm run setupand double-clickStart-GUI.batdirectly, clicking Start or ⚙ Install & Build in the GUI automatically runs the setup build in the background!
Step 2 — Double-Click Start-GUI.bat
Double-click Start-GUI.bat in Explorer. On first launch, the Setup Wizard opens automatically:

1. Ingress & Server:
30-Second Serverless Start: Leave Serverless Cloudflare Tunnel selected (optionally fill Named Tunnel Hostname & Token below for a permanent URL); or
1-Click Self-Hosted VPS: Select Self-Hosted Linux VPS Mode, fill your VPS IPv4 & SSH user, click Browse to pick your SSH key (or leave blank to auto-detect/generate
~/.ssh/id_ed25519), and leave Domain blank to auto-provision freemcp.<ip>.sslip.ioHTTPS!
2. Folders, Guard & Alerts: Click
+ Add Folderto approve workspace folders (e.g.,D:\Workspace\MyWebApp). The 2-Step Delete Guard Hook is enabled by default; System Tray Alerts andinspect_imageVision Backend are opt-in.3. Check & One-Click Start:
Click ⚡ One-Click Initialize & Start for Cloudflare mode, or
Click 🚀 One-Click Deploy to VPS & Start to provision your Linux VPS, issue TLS certificates, sync generated secrets back to
config/config.local.json, and bring all 5 local services online!
Step 3 — Copy Your Masked Credentials from the Dashboard
Once the status pill turns green (● Running · Public HTTPS Ready) and all 5 service cards are green, click Copy MCP URL and Copy Approval Key.
Visual Guide 1: Connecting Google Gemini Web (gemini.google.com)

Open Connected Apps: Visit
https://gemini.google.com/on desktop → click Settings (bottom-left) → Connected Apps (or openhttps://gemini.google.com/devmodedirectly).Click
+ Custom: Under Custom apps, click the blue+ Custom(Add a custom app) button.Paste MCP Server URL (Leave Client ID Blank): Paste your full MCP Server URL (
https://<your-tunnel-or-domain>/<secret>/mcp) and click Next. Leave manual OAuth Client ID and Client Secret blank — Gemini automatically uses OAuth 2.1 Dynamic Client Registration!Approve with Owner Approval Key: On your gateway's OAuth 2.1 consent card, paste your Owner Approval Key and click Approve & Connect Google Gemini:

Critical Step 5 — Switch Composer Mode from
ChattoTask: Back in the Gemini chat box, switch the bottom-right mode selector fromChattoTask!Why this matters: Gemini Web's default
Chatmode does not load custom MCP tools. Once switched toTask, type@(or ask directly) to read/edit local files, run PowerShell 7 tests, or automate Chrome!
Visual Guide 2: Connecting OpenAI ChatGPT Web (chatgpt.com)

Enable Developer Mode: Open
https://chatgpt.com/(Plus, Pro, Team, Enterprise, or Edu) → Settings → Connectors → Advanced → toggle Developer Mode ON.Click
+ CreateConnector: Return to Connectors and click the blueCreate(Add custom MCP server) button.Fill MCP URL & Select
OAuth:Name:
My Windows PCMCP Server URL: Paste the full
https://.../<secret>/mcpURL from your Windows Control PanelAuthentication: Select
OAuth
Approve with Owner Approval Key: Click Create, then paste your Owner Approval Key on the gateway consent page.
Enable in Any Chat: In a new conversation, click
+(bottom-left of the composer) to enableMy Windows PC— works concurrently alongside Google Gemini!
Mode B: CLI One-Click Linux VPS Deployment & Management
Prefer deploying onto a fresh or existing Ubuntu/Debian VPS directly from PowerShell?
pwsh -File .\deploy\deploy-to-vps.ps1 `
-VpsHost 203.0.113.10 `
-VpsUser root `
-AllowedRoot "D:\Workspace\MyWebApp"Smart SSH Key Auto-Detection & Provisioning: Automatically uses
-SshKeyPathor~/.ssh/id_ed25519(or generates an ED25519 keypair with hardened WindowsicaclsACLs if none exists) and connects seamlessly via standard OpenSSH (StrictHostKeyChecking=accept-new).100% Non-Destructive Caddy Integration: Backs up any existing
/etc/caddy/Caddyfileand mounts a dedicated drop-in/etc/caddy/conf.d/remote-pc-mcp-gateway.caddyso pre-existing websites on your VPS remain completely untouched.Built-In Remote Server Helpers (run on your VPS via SSH):
Check gateway & TLS health:
sudo mcp-gateway-statusCleanly uninstall gateway while keeping existing Caddy sites intact:
sudo mcp-gateway-uninstall
Shared Chrome Tab Mover Extension (Optional)
To allow chrome_move_pages_to_new_window to move AI-created test tabs into an unfocused background Chrome window without stealing focus:
Open
chrome://extensionsin your--remote-debugging-port=9222Chrome.Enable Developer mode → click Load unpacked → select
windows/chrome-mcp/chrome-tab-mover-extension.
Troubleshooting & FAQ
Symptom / Question | Root Cause | 1-Step Fix |
Gemini shows Connected, why won't it call my PC tools? | Gemini defaults to | Switch the bottom-right mode selector in the Gemini composer from |
Clash / Mihomo / Sing-box TUN mode causes Cloudflare | TUN Fake-IP ( | Launch via |
Quick Tunnel URL stopped working after restarting my PC? | Free Quick Tunnels assign a new random | Copy the new MCP URL from the Dashboard, or switch to Cloudflare Named Tunnel / 1-Click Linux VPS ( |
Why did | The built-in 2-Step Delete Guard ( | Verify the command is safe, then resend the exact same command within 10 minutes to approve once |
How can Gemini Web inspect local screenshots ( | Google's cloud bridge strips raw MCP image blocks to | Set Gemini Vision in Wizard Step 2 to |
Automated Tests & Secret Scanning
# Run OAuth 2.1 dual-platform, tool annotations, Fake-IP tunnel, Workbench & VPS dry-run unit tests
npm test
# Scan the entire repository for leaked IPs, private keys, emails, tokens, or personal paths (0 hits)
npm run scan:secretsLicense
Released under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Control your authorized Windows computers via OAuth: files, shell, apps, and task status.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to safely interact with Windows workspaces through a loopback-only MCP server, with OAuth, bounded PowerShell tools, persistent jobs, and optional Cloudflare Tunnel exposure.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to perform local development tasks on Windows by reading and editing files, running commands, and controlling browser and desktop tools, all within isolated workspaces. Supports secure remote access via an optional tunnel for ChatGPT clients.MIT
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT web conversations to directly operate a Windows machine through OpenAI Tunnel, including file read/write, precise editing, command execution, and Git review, with a live dashboard for replaying each tool call.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables web-based AI chats to securely access and control a Windows PC's local workspace, files, terminal, desktop, browser, and Blender through a secret-path Cloudflare tunnel.MIT