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)
Connect ChatGPT Web and Google Gemini Web to files and commands on your Windows 10/11 PC through an OAuth 2.1 authenticated Model Context Protocol (MCP) gateway. A native bilingual wizard guides setup. Choose Cloudflare Tunnel for a first try, or a Linux VPS for a stable public endpoint. This project's execution host is Windows; a Mac is not required.
Start here: Check Gemini account requirements, then follow the Windows quick start. Choose one ingress mode and run one gateway instance. Keep the target Windows PC awake with the gateway running; it does not automatically open, sign in to, or connect Gemini.

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 — Cloudflare Quick Tunnel (No VPS or Account): Starts
cloudflared, captures a temporaryhttps://*.trycloudflare.comorigin, and alignsOAUTH_ISSUER. Detects198.18.0.0/15Clash/Mihomo/Sing-box TUN Fake-IP to select QUIC + Cloudflare Anycast Edge IPs. Other network failures can still causeError 1033.Mode A2 — Cloudflare Named Tunnel (No VPS): Enter an existing Cloudflare tunnel's hostname and token in Step 1. The URL stays the same while that hostname and tunnel configuration are retained.
Mode B — Linux VPS (
Ubuntu/Debian): Automates provisioning throughdeploy/deploy-to-vps.ps1anddeploy/install-vps.sh. Standard installation changes shared server configuration; an existing production VPS needs the isolated setup described below. Supports your own domain ormcp.<ip>.sslip.ioHTTPS, subject to DNS reachability and certificate issuance.
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.Access Controls and Process Supervision:
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).
Permission boundary: allowedRoots restricts filesystem tools and command working directories. PowerShell commands still run with the Windows account's permissions and can access paths outside that list. Job Objects supervise processes; they are not a filesystem sandbox. Review command requests and keep MCP URLs and Approval Keys private.
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 Work | First run downloads and builds dependencies; duration depends on network | Also create a Cloudflare tunnel and configure its hostname | Also prepare SSH access, ports and HTTPS; certificate issuance takes time |
Same URL Across Restarts? | New random | Yes, while hostname and tunnel settings are retained | Yes, while hostname/IP, port and gateway configuration are retained |
TUN / Fake-IP Proxy Support | Auto-detects | Auto-detects | Auto-reconnecting SSH |
Best For | First test and temporary demos | Stable URL without a Linux server | Ongoing use with a server you administer |
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: Caddy HTTPS ingress]
│ 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 |
| Install from nodejs.org; include npm and add to PATH |
PowerShell 7 |
| Install using Microsoft's Windows instructions; enable PATH integration. Windows PowerShell 5.1 alone is insufficient |
.NET SDK |
| Setup reuses an installed 8.x SDK or installs it in project-local |
OpenSSH Client |
| Mode B only; install the Windows Optional Feature if absent, and prepare a key already authorized on the VPS |
Cloudflared | Downloaded during setup |
|
Google Chrome | Optional ( | Launch Chrome with |
Windows Quick Start
Step 1 — Download and Extract
Install Node.js and PowerShell 7 from the links above. On the GitHub repository, click Code → Download ZIP, then Extract All in Explorer. Open the extracted folder containing Start-GUI.bat; do not launch from inside the ZIP. Git is not required for this route.
If you already use Git, this is an alternative:
git clone https://github.com/dqIndieGames/remote-pc-mcp-gateway.git
cd remote-pc-mcp-gateway
npm run setupAutomatic setup: Clicking Start or ⚙ Install & Build runs setup when dependencies are missing. Setup downloads packages, a project-local .NET 8 SDK if needed, and Cloudflared, then builds the command helper. Wait for completion in the log. First installation has no fixed completion time.
Step 2 — Double-Click Start-GUI.bat
Double-click Start-GUI.bat in Explorer. On first launch, the Setup Wizard opens automatically:

The wizard and dashboard images use an isolated example configuration in the real Windows app. They illustrate the controls, not a live connection. Enter your own values and verify the file read below.
1. Ingress & Server:
Recommended first test — Cloudflare Quick: Keep Serverless Cloudflare Tunnel selected and leave Named Tunnel Hostname and Token empty. No VPS is required.
VPS alternative: Use Self-Hosted Linux VPS Mode only after preparing SSH key access. Enter host, SSH port and user, then select the authorized private key. A blank domain uses
mcp.<ip>.sslip.io. Read the Mode B section before deploying to a server with existing services.
2. Folders, Guard & Alerts: Create a new empty
MCP-Demofolder in your Windows Documents folder. Add its full path with+ Add Folder, removing sample paths you do not use. Keep the Delete Guard enabled. Leave Chrome automation, notifications and vision disabled for the first file/command test; these are optional features.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 start the enabled local services.
Step 3 — Copy Your Masked Credentials from the Dashboard
Once the status pill turns green (● Running · Public HTTPS Ready) and all enabled service cards are green (the Chrome card stays gray when disabled), use Copy MCP URL and Copy Approval Key when the web setup asks for each value. The key persists in local configuration; a Quick Tunnel's hostname changes when the tunnel restarts.
Continue with the Gemini guide below. The control panel is the gateway, not the Gemini browser. Open Gemini yourself on the computer where you want to chat; tools run on the Windows PC hosting this gateway. For a complete test on that same PC, open its browser there and leave the tested conversation available for review. Keep Windows and the gateway running. Closing the panel sends it to the tray; use Stop to stop services.
Visual Guide 1: Connecting Google Gemini Web (gemini.google.com)
Scope and prerequisites (checked on November 14, 2026)
The local execution stack targets Windows 10/11. Linux VPS mode hosts the public gateway. In the LINUX DO discussion, “Mac-only” replies to the preceding claim that the Gemini desktop app can operate local files and includes Antigravity. Google documents native Mac file tasks and Antigravity integrated into the Mac app separately from Gemini for Windows. This project's Windows tools connect through Gemini Web → custom app → HTTPS MCP. They do not provide the native Mac interface or replace all Antigravity features.
Before installing, check whether your Gemini account shows Settings → Connected Apps → Custom apps. Google's published requirements include being in the US, age 18+, a personal account, Keep Activity enabled and English availability. Tasks require Pro or Ultra; the current model table lists Carbon under Ultra. Missing entries can reflect account or feature eligibility, and installing the gateway does not unlock them. Check the official custom app requirements, Task requirements, and model table.
This gateway does not increase subscription limits. Gemini remains subject to usage limits, including applicable five-hour and weekly allowances. Optional inspect_image uses the configured API or local CLI and returns a textual inspection; it does not deliver the original image directly to the web model. Check that backend's separate usage limits and charges.
Button labels can vary by account and interface version; use the steps below with your live page.

Actual form captured on November 14, 2026. Only the form is shown; account details and connection secrets are excluded. Additional settings is expanded to show the Client ID/Secret fields that this gateway can leave empty. The disabled Next button reflects an empty form, not a successful connection.
Open Connected Apps: In Gemini Web, open Settings → Connected Apps, or Personal Intelligence → Connected Apps if shown. Use Connected Apps for normal setup.
https://gemini.google.com/devmodeis a separate developer workspace for inspecting requests and schemas.Add a custom app: Under Custom apps, use the add-link field or Add a custom app / Create custom app button. Some layouts label it
+ Custom; follow the form shown in your account.Paste MCP Server URL (This Project Supports DCR): Paste your full MCP Server URL (
https://<your-tunnel-or-domain>/<secret>/mcp), leave manual OAuth Client ID and Client Secret blank, and click Next to use Dynamic Client Registration. Google also supports manual registration; DCR is not the platform's only registration option.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:

Select the app and verify a tool call: After connecting, type
@and select your custom app. Prefer Task for multi-step execution; Google also supports custom apps in Chat. Start by reading a test file inside an allowed folder and confirm the returned content matches the tool log. If the app is connected but unused, check account eligibility, app selection, OAuth, and tool logs.
Verify That It Operates the Intended Windows PC
In the allowed
MCP-Demofolder, use Notepad to saveinput.txtcontaining a unique line of your choice. Enable View → Show → File name extensions in Explorer to check the exact filename. Do not paste that line into Gemini.Select your custom app with
@, replace<TEST_FOLDER>below with its full Windows path, and send this in Chat:
Use the selected custom app to read <TEST_FOLDER>\input.txt from the Windows PC. Return its exact contents and the tool result. Do not write or delete anything. If the tool is unavailable, report that instead of guessing.For the command/write test, switch to Task if available, select the same app, and send this after replacing
<TEST_FOLDER>:
Use only the selected custom app. Read <TEST_FOLDER>\input.txt. Run hostname and $PSVersionTable.PSVersion.ToString() on the connected Windows PC, with <TEST_FOLDER> as cwd. Create result.txt in that folder containing the input text, hostname and PowerShell version, then read it back. If result.txt already exists, stop without overwriting it. Do not change other files, settings or services. Report the actual tool results and any failed step.On the target Windows PC, open
result.txtand compare it with the tool output. Check the hostname against Settings → System → About → Device name, and confirm PowerShell reports major version 7. A green panel or an “I completed it” message alone is insufficient. Keep the conversation and test files for review, then delete only those test files when finished.
Verification scope: Deployment/API checks, Gemini Web tool calls, and a Gemini browser session on the target PC are separate checks. Testing from another computer proves remote access; it does not prove the target PC's browser flow was tested.
Guide 2: Connecting OpenAI ChatGPT Web (chatgpt.com)
The current official connection guide uses Plugins → Add custom MCP server, replacing the old Connectors/Developer Mode instructions. Account and workspace policies still apply. The entry and form were opened in the real website on November 14, 2026; this form screenshot does not establish end-to-end ChatGPT tool execution.

Actual empty form, with OAuth selected. Account details and connection secrets are excluded. Follow the numbered steps below to enter your own values and complete authorization.
Open Plugins: Sign in at ChatGPT Plugins, select the plus button, then Add custom MCP server.
Fill in the connection:
Name:
My Windows PCConnection / Server URL: Paste the full HTTPS MCP URL from the Windows panel, including the secret path and
/mcp.Authentication: Select OAuth. This project provides Dynamic Client Registration (DCR); leave manual Client ID/Secret empty and choose DCR if the form asks for a registration method.
Create and authorize: Review the displayed warning, select I understand and want to continue, then Create as a plugin. When the gateway consent page appears, enter its Approval Key and authorize. Check the discovered tools.
Install and select: Install the resulting plugin. In a new conversation, type
@and select My Windows PC.Verify a file read: Use the read-only
input.txtprompt above and compare the actual tool output with the file on Windows. Missing creation/install controls can reflect workspace restrictions; gateway installation does not override them.
Mode B: CLI One-Click Linux VPS Deployment & Management
For a fresh or dedicated Ubuntu/Debian VPS, the standard deployment command is:
pwsh -File .\deploy\deploy-to-vps.ps1 `
-VpsHost 203.0.113.10 `
-VpsUser root `
-AllowedRoot "D:\Workspace\MyWebApp"SSH access must already work: Select a private key authorized for the VPS user. With no configured key, the script checks
~/.ssh/id_ed25519and~/.ssh/id_rsa; if neither exists, it generates a key under~/.ssh/remote-pc-mcp/and stops with instructions to install its public key in the VPS user'sauthorized_keys. A missing explicitly configured key is an error. Deployment uses noninteractive SSH (BatchMode=yes); key generation alone does not grant server access.Shared versus isolated installation: Standard deployment changes shared Caddy configuration and may adjust SSH, systemd and ufw. For a VPS with existing services, first set distinct
destRoot,gatewayPort,httpPort,httpsPort,remoteFsPort,remoteChromeMcpPortandremoteWorkbenchPortvalues undervpsinconfig/config.local.json, then use the wizard deployment button. Isolated mode requires existing Node.js, npm and Caddy, and uses its own configuration, state and processes without modifying shared services. SettlsCertPathandtlsKeyPathto reuse an existing certificate read-only. Isolated helpers live under<destRoot>/usr/local/sbin/; its uninstall helper stops only this instance and retains files.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 is connected but does not call my tools? | Check account eligibility, app selection, authorization, and tool discovery; mode alone does not identify the cause | Select the app with |
Clash / Mihomo / Sing-box TUN mode causes Cloudflare | TUN Fake-IP ( | Launch via |
Quick Tunnel URL stopped working after restarting my PC? | A new tunnel run gets a new random | Copy the new full MCP URL and reconnect the custom app (remove/recreate it if URL editing is unavailable). Named Tunnel or VPS can retain a stable address |
Why is Gemini not open, or why are there two gateway panels? | The panel does not launch Gemini; separate gateway copies can each have a panel | Open Gemini in your intended browser. A normal setup needs one ingress mode and one instance; two instances are not required to use ChatGPT and Gemini together |
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 does | The configured multimodal backend reads the image and returns a textual analysis | Select |
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:secretsCommunity & Acknowledgments
Thanks to the LINUX DO community for feedback and open-source support.
License
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.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Remote desktop control, files, and terminal tools for AI assistants on paired Windows PCs.
Control your authorized Windows computers via OAuth: files, shell, apps, and task status.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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 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
- AlicenseNot gradedqualityCmaintenanceEnables an authorized ChatGPT client to perform Windows-local file operations, coding, Git inspection, desktop interaction, and autonomous tasks with OAuth owner authorization and audit.3MIT