chatgpt-mac-bridge
Provides tools for working with Git repositories: status, diff, log, and running Git commands, with destructive operations gated by confirmation.
Provides system-level integration with macOS: native UI automation (via Accessibility), window management, keyboard/mouse input, clipboard access, notifications, and screen/audio recording.
Enables interaction with Penpot design tool via browser automation (DOM/CDP) to control the web application, or via a separate Penpot MCP connector.
Click on "Install 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-mac-bridgeWhat have I changed in the last commit?"
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-mac-bridge
Give ChatGPT Web hands on your Mac — files, git, terminal, browser, windows — without opening a public port.
ChatGPT talks to an OpenAI-hosted tunnel. A small client on your Mac pulls that work down over outbound HTTPS and forwards it to a local MCP server on loopback. The model can then create and edit. It cannot delete until you say yes.
Phone or laptop browser
│
▼
ChatGPT Web ──► OpenAI Secure MCP Tunnel
▲
│ outbound HTTPS only
│ no inbound ports
tunnel-client
│
▼
http://127.0.0.1:8765/mcp
this repo (MCP server)
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
files/git shell/dev interceptor
(browser + macOS)Why this exists
ChatGPT is useful until the work leaves the chat window. Then you copy a patch, switch apps, run the test, paste the error back, and the quota on a “real” coding agent keeps moving.
A public write-up made the other shape obvious: keep using ChatGPT (the quota you already pay for), and let it drive the machine through MCP plus OpenAI Secure MCP Tunnel. That write-up was Windows — UI Automation, Office COM, Task Scheduler. This repo is the same method on a Mac, with one extra rule the original asked for: full access except delete.
What that fixes:
Pain | What this changes |
ChatGPT can talk, but cannot touch the repo | It reads, searches, patches, runs tests, and starts the dev server on this computer |
ngrok / Cloudflare Tunnel means a public URL | Secure MCP Tunnel is outbound-only. Nothing listens on the internet |
A coding-agent subscription burns while you sit in ChatGPT anyway | The loop stays in ChatGPT. Local Codex is optional, not required |
“Full access” plus | Delete, trash, |
Phone-only evenings | Type in ChatGPT on the phone. The Mac does the work, as long as it is awake and the tunnel is up |
Design in a separate tab from code | Drive Penpot from the same chat, either as a second connector or through the browser tools |
This is not a hosted product. It is a local server plus a documented tunnel. If the Mac sleeps, ChatGPT’s hands disappear.
Related MCP server: MCP ChatGPT Full PC Dev
What you get
44 MCP tools. The names follow the original write-up so a ChatGPT thread can be reused.
You say | Tool | Backend |
open this project |
| folders under Desktop, Documents, Developer, |
read / search / patch |
| filesystem + ripgrep + |
git |
| git |
test / lint / build / dev |
| npm / pnpm / bun |
run something |
| local spawn, logs in |
second implementer |
| local |
click the site |
| interceptor browser |
click the app |
| interceptor macOS (Accessibility, not Windows UIA) |
clipboard / notify / file picker |
| interceptor + osascript |
record / play |
| ffmpeg + afplay |
cron |
| LaunchAgents |
fetch from this network |
| local |
Word / Excel-ish |
|
|
Policy tools, always on:
bridge_instructions— standing rules. Ask ChatGPT to call this first.pending_destructive— unused delete tokensconfirm_destructive— only after you said yes. The model cannot tick this for itself in good faith;userSaidYesmust be true and the token expires in 10 minutes.
Requirements
A Mac
Node 20+
A ChatGPT account that can enable Developer mode and attach a custom MCP app
An OpenAI Platform org that can create a Secure MCP Tunnel and a runtime API key
Optional, only if you want those tools:
Binary | Unlocks |
| the ChatGPT connection (required for the method, not for local smoke) |
|
|
browser + native UI + clipboard + notifications | |
|
|
| screen / mic capture |
Plan caveat. OpenAI documents full write MCP for Business / Enterprise / Edu. Plus / Pro can still attach a connector in Developer mode; some write tools may be confirmation-gated or missing. Custom apps are web-only — the iOS app will not grow these tools. Phone use means chatgpt.com in a browser, or the Mac doing the work while you type on the phone.
Setup
1. Run the local server
git clone https://github.com/mingrath/chatgpt-mac-bridge.git
cd chatgpt-mac-bridge
npm install
npm startYou should see:
chatgpt-mac-bridge listening on http://127.0.0.1:8765/mcpIn another terminal:
npm run doctor
npm run smokeSmoke checks two things that matter: the tool list is present, and rm is refused.
Keep it up across logins:
./scripts/install-launchagent.shThat writes ~/Library/LaunchAgents/com.chatgpt-mac-bridge.plist for this checkout and the node on your PATH. It does not commit a machine-specific plist.
2. Open the outbound tunnel
You need three values from OpenAI, none of which this repo can invent:
Value | Where |
| |
runtime API key | Platform → API keys — not an admin key |
Tunnels Read + Use | org role on that Platform org |
Either walk it:
./scripts/connect-chatgpt.shor do it by hand:
brew install openai/tools/tunnel-client
export CONTROL_PLANE_API_KEY="sk-..."
tunnel-client init \
--sample sample_mcp_remote_no_auth \
--profile mac-bridge \
--tunnel-id tunnel_0123456789abcdef0123456789abcdef \
--mcp-server-url http://127.0.0.1:8765/mcp
tunnel-client doctor --profile mac-bridge --explain
tunnel-client run --profile mac-bridgeLeave that process running. Admin UI defaults to http://127.0.0.1:8080/ui. If it is not ready, ChatGPT will not see the tools.
3. Attach ChatGPT
ChatGPT → Settings → Apps → Advanced Settings → Developer mode
chatgpt.com/plugins → create a developer-mode app
Connection = Tunnel → pick the tunnel or paste the
tunnel_idScan tools. You want
workspace_*,read_file,apply_patch,shell,confirm_destructiveNew chat → enable the app →
Call
bridge_instructions, thenworkspace_list. Open~/Desktop(or your repo) and show me the tree.
First prompt that should feel different: paste a bug and say “fix it in the repo, run the test, do not delete anything.”
4. Point it at your code
The server may already see ~/Desktop, ~/Documents, ~/Downloads, ~/Developer, ~/dev, ~/src, ~/projects, ~/code if those folders exist.
Anything else:
workspace_add_root path: /Users/you/the-repo
workspace_open path: /Users/you/the-repoOr set WORKSPACE_ROOTS / DEFAULT_WORKSPACE in .env (see .env.example). Writes are limited to $HOME and /tmp. ~/.ssh, Keychains, /System, and /usr are refused.
How delete is blocked
A standing regex sits in front of shell, git_run, process_start, and apply_patch. It matches rm, git clean, git reset --hard, trash, Finder empty-trash, and patches that delete files.
Those calls do not run. They return DELETE BLOCKED plus a token. ChatGPT has to show you the preview. If you say yes, it calls confirm_destructive with that token and userSaidYes: true. Tokens die after ten minutes.
Stopping a process is allowed. Quitting an app is treated as destructive. Overwriting a file with new contents is allowed — that is an edit, not a delete.
This is a seatbelt, not a sandbox. A determined prompt can still do damage through write_file or a creative shell line the regex does not know yet. Do not attach this to a machine you do not sit in front of.
Penpot
Penpot is a separate MCP server. Two clean options:
npx -y @penpot/mcp@stable, loadhttp://localhost:4400/manifest.jsoninside Penpot, addhttp://localhost:4401/mcpas a second ChatGPT connector (another tunnel profile).Stay on this bridge and drive https://design.penpot.app with
dom_cdp.
penpot_status only prints those URLs. It does not proxy Penpot tools.
Security, said plainly
The MCP port binds
127.0.0.1. Do not changeHOSTto0.0.0.0unless you know why.Optional
MCP_TOKENin.envrequiresAuthorization: Bearer …on/mcp.tunnel-clientauthenticates to OpenAI. ChatGPT never learns your home IP.Anything ChatGPT can see through these tools is anything the local user can see. Treat the ChatGPT thread like an unlocked laptop.
Official warning from OpenAI still applies: only connect MCP servers you trust. This one can write files.
Limits
The Mac must be awake. Sleep = no tools.
Custom ChatGPT apps do not run inside the iOS app.
officeis a compatibility shim. There is no Microsoft Office COM here.codex_runspends local Codex quota, not ChatGPT’s.interceptor tools need interceptor installed and Accessibility / Screen Recording granted.
License
MIT. Method inspired by a public write-up of the same ChatGPT → Secure MCP Tunnel → local tools loop, rewritten for macOS with a no-delete default.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.MIT
- FlicenseCqualityCmaintenanceEnables 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
- Flicense-qualityCmaintenanceTurns a Mac into an MCP host exposing terminal, filesystem, browser automation, and macOS controls to approved AI clients via OpenAI's Secure MCP Tunnel.
- Alicense-qualityBmaintenanceA secure, local-first MCP coding and computer-use harness for ChatGPT and Codex, enabling guarded file operations, durable terminals, Git review, local skills, and macOS computer control.142MIT
Related MCP Connectors
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mingrath/chatgpt-mac-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server