Skip to main content
Glama
Gemini Remote Desktop Connector

Gemini Remote Desktop Connector

Gemini Remote Desktop Connector

简体中文 · Security model

Gemini Remote Desktop Connector is a self-hosted MCP server that connects Gemini Apps to a Windows PC. It can read hardware information, list processes, and work with a dedicated folder. File changes, PowerShell commands, and screenshots run only after the PC owner approves the specific request on Windows.

Preview status. I verified a live hardware query in Gemini chat, plus file reads and a PowerShell request in Gemini Apps Developer Mode. The MCP smoke test also verifies file writes, command output, and denial of a screenshot request. In the expanded workspace tests, standard Gemini chat discovered the tools but did not dispatch the file read. Start in Developer Mode. Live screenshot rendering in Gemini has yet to be verified.

flowchart LR
    Gemini["Gemini Apps"] -->|"HTTPS · OAuth · MCP"| Proxy["Your reverse proxy"]
    Proxy -->|"127.0.0.1:18772"| Bridge["Windows bridge"]
    Bridge --> Files["Dedicated workspace"]
    Owner["PC owner"] -->|"127.0.0.1:18773 · local approval"| Bridge

Available after OAuth linking

Requires an additional local approval

PC hardware and connection checks

Write, move, and create directories inside the workspace

List directories, inspect metadata, read UTF-8 files, search text

Run a PowerShell command as the Windows user running the bridge

List process names and IDs, retrieve an approved action's result

Capture a still image of the primary display

Remote Desktop Commander (RDC) alternative for Gemini Apps

Remote Desktop Commander is Desktop Commander's hosted MCP service. Its setup covers ChatGPT, Claude, and Gemini CLI. Remote Desktop Commander setup

Gemini Remote Desktop Connector is an independent implementation for the Gemini web app. You host the HTTPS endpoint and approve file changes, shell commands, and screenshots on your Windows PC. Connect Gemini to Windows

Related MCP server: PC Commander

Quick start

Use Windows with Python 3.10 or newer and Windows PowerShell. Start the bridge as your normal Windows user. The Gemini web account also needs access to custom connected apps. Eligibility depends on the account, location, language, and history settings. Google's eligibility and connection instructions

1. Install and verify locally

git clone https://github.com/solongrey9-code/gemini-remote-desktop-connector.git
Set-Location gemini-remote-desktop-connector
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe verify.py

The last command starts a read-only stdio server for the check and prints live hardware information.

2. Start the bridge and configure HTTPS

Substitute the origin of an HTTPS reverse proxy that can reach your Windows PC. The launch script creates workspace\ on first run. To select an existing directory, pass -Workspace 'D:\GeminiShare'.

$origin = 'https://bridge.example.com'
.\start-workspace.ps1 -Origin $origin

Forward these paths to http://127.0.0.1:18772, preserving the request path and public host.

Public path

Purpose

/gemini-pc and its subpaths

MCP, OAuth, and the one-time pairing page

/.well-known/oauth-authorization-server/gemini-pc

OAuth issuer metadata

/.well-known/oauth-protected-resource/gemini-pc/mcp

OAuth resource metadata

If you use an existing Tailscale Funnel, the following commands mount only those routes. Use the HTTPS origin displayed by Funnel for the bridge's -Origin. Tailscale Funnel documentation

$routes = @(
    '/gemini-pc',
    '/.well-known/oauth-authorization-server/gemini-pc',
    '/.well-known/oauth-protected-resource/gemini-pc/mcp'
)
foreach ($route in $routes) {
    tailscale funnel --bg --https=443 "--set-path=$route" "http://127.0.0.1:18772$route"
}

Keep port 18773 on this PC. It serves the local approval page.

3. Pair Gemini and try a read

  1. In a second PowerShell window, run .\pair-workspace.ps1 -Open. New pairing requests are accepted for 15 minutes.

  2. Open Gemini Apps Developer Mode, choose Create new, and enter https://bridge.example.com/gemini-pc/mcp using your own origin.

  3. Continue through Google's consent screen. On the bridge's pairing page, copy the request ID. Run .\pair-workspace.ps1 -Approve '<request-id>' on the PC, then select Finish linking in the browser.

  4. Save Gemini Remote Desktop Connector after Gemini shows the available tools. Run .\pair-workspace.ps1 -Close to close enrollment and keep the existing link.

  5. With Gemini Remote Desktop Connector selected, ask it to run get_windows_hardware. To try a file read, create workspace\hello.txt and ask Gemini to read it with read_file.

For a write, command, or screenshot, Gemini returns an action ID. Review the exact operation in the local approval page. After it runs, view the output there or ask Gemini to retrieve it with get_action_result. Google's Developer Mode guide

Verify the connected server

With a disposable local instance and working directory, run the verification script in a second PowerShell window. This exercises OAuth and the tools without making a request to Google.

.\pair-workspace.ps1 -Open
.\.venv\Scripts\python.exe verify_connected.py --local-workspace workspace
.\pair-workspace.ps1 -Close

The bridge runs while its terminal is open. Restart it with the same origin and Windows user to reuse the encrypted OAuth state. To remove a link, disconnect it in Gemini. For local revocation of every link, stop the bridge and remove its own .bridge\oauth.dpapi file before restarting.

Released under the MIT License. This is an independent project for Gemini Apps.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects Gemini on the web to a user's own Windows PC, letting it read files, run commands, write to disk, and invoke local skills and other MCP plugins. It reaches the machine through a stable self-hosted Tailscale Funnel URL, with tools enabled and approved by the user.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables ChatGPT to run commands and inspect files, system info, and other tasks on a user's own Windows PC through a private self-hosted connector, with local approval required for each action unless configured otherwise.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects compatible AI clients to registered Windows or macOS computers, allowing users to inspect systems, work with files, run supported commands, and automate workflows through authorized remote access.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Desktop to work with a local Windows 10/11 machine through scoped project file editing, read-only PowerShell/CMD diagnostic tasks, desktop observation, and locally approved mouse/keyboard interaction with allowlisted applications.
      MIT