Chatgpt Local Agent Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Chatgpt Local Agent Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Give ChatGPT controlled hands on your Windows PC.
ChatGPT is good at thinking through work, writing code, explaining fixes, and spotting problems. But sooner or later it hits the same wall: the real project is on your computer.
The files are there. The repo is there. The logs are there. The browser session is there. The broken build is there.
chatgpt-local-agent-mcp is a local MCP server that lets ChatGPT work against that real local context, under your control.
The simple version:
ChatGPT stays the brain. This gives it supervised hands on your computer.
It can inspect folders, read files, apply patches, run commands, check Git status, open browser sessions, look at screenshots, inspect windows, and help operate the desktop when needed.
This is powerful, and it should be treated that way. A full remote setup is intentionally explicit: you are connecting a local Windows environment to a remote ChatGPT connector. Do not expose local capabilities casually.
There are two different things people often mix together:
Do them in that order.
Use this first.
This mode is for proving the app starts locally and that the dashboard/health checks work.
It does not connect ChatGPT yet.
Windows PC
-> http://127.0.0.1:8789
-> local MCP server
-> local dashboard / health checksFor this first test:
No Cloudflare.
No public URL.
No GitHub OAuth App.
No ChatGPT connector OAuth.
No remote connector yet.Start with the installer and run the local dashboard first:
.\install-chatgpt-local-agent-mcp.batThen follow INSTALL.md, Path A.
Use this only after Path A works.
This is the real remote connector setup:
ChatGPT
-> your HTTPS hostname
-> Cloudflare Tunnel or another HTTPS tunnel
-> http://127.0.0.1:8789
-> local MCP server
-> your Windows PCThis path needs OAuth, an allowlist, a public HTTPS MCP URL, and deliberate security choices.
That extra friction is intentional. This project can expose local machine capabilities through a remote connector, so the remote path should stay explicit, supervised, and a bit boring on purpose.
Most AI coding workflows still have a gap.
ChatGPT can tell you what command to run. This lets ChatGPT help run the command.
ChatGPT can suggest a patch. This lets ChatGPT apply the patch.
ChatGPT can ask for a log. This lets ChatGPT inspect the log.
ChatGPT can guess from snippets. This lets ChatGPT read the actual files.
That changes the workflow.
Instead of copying errors, files, diffs, screenshots, and terminal output back and forth, you can let ChatGPT work through local MCP tools and keep the loop close to the real machine.
You still supervise it. You still choose the workspace. You still control the endpoint. But ChatGPT is no longer blind to the place where the work actually lives.
With the server running, ChatGPT can help with things like:
The goal is not to make ChatGPT “autonomous”.
The goal is to let ChatGPT work with the same local reality you are working with.
From the extracted source folder, run:
.\install-chatgpt-local-agent-mcp.batThe extracted source folder is only the source package. The installer copies the app into the runtime install folder and builds there.
Default runtime install folder:
%LOCALAPPDATA%\chatgpt-local-agent-mcpYour private .env, logs, data, dependencies, build output, browser artifacts, journals, backups, and screenshots belong in the install folder, not in the extracted source folder.
For the exact first-run steps, use INSTALL.md.
The project includes local control surfaces so you can see what is happening before connecting anything remotely.
Useful local URLs and tools:
http://127.0.0.1:8789/dashboard http://127.0.0.1:8789/healthzUse these before trusting the remote connector.
The dashboard exists for a reason: when an AI has tools near your machine, visibility matters.
This project is intentionally capable.
The default workspace profile is full-machine: on Windows, the server creates profiles for detected drive roots such as C:\ and D:\ when no custom workspace profile is configured.
If you want the first serious test limited to one folder or repo, configure a custom workspace profile before connecting ChatGPT.
Recommended progression:
127.0.0.1 while testing.Treat access like you would treat a human assistant sitting at your keyboard.
The ChatGPT connector URL is the MCP endpoint:
https://your-public-host.example/mcpFor ChatGPT to reach your local server, the endpoint must be available over HTTPS.
A typical setup uses Cloudflare Tunnel to forward your public hostname to:
http://127.0.0.1:8789There are two OAuth relationships. Keep them separate.
GitHub is used as the identity provider.
The GitHub OAuth App callback should be:
https://your-public-host.example/callbackAfter GitHub login, the server checks the allowlist before issuing local MCP authorization.
ChatGPT uses the local MCP OAuth configuration from .env:
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
OAUTH_REDIRECT_URIS=These are not GitHub credentials.
If the ChatGPT connector is deleted and recreated, ChatGPT may give you a new redirect URI. Update OAUTH_REDIRECT_URIS if that happens.
For ChatGPT to connect from outside your PC, the public hostname must reach your local server.
The recommended Cloudflare setup is a Tunnel, not a Worker.
In Cloudflare DNS, create a tunnel-backed record for your MCP hostname:
mcp.your-domain.example -> Cloudflare TunnelIn the tunnel routes, publish that hostname to the local server:
https://mcp.your-domain.example -> http://127.0.0.1:8789The server .env should then use the same public base URL:
PUBLIC_BASE_URL=https://mcp.your-domain.example
CLOUDFLARE_TUNNEL_ENABLED=true
CLOUDFLARED_CONFIG=C:\Users\you\.cloudflared\config.ymlIf the tunnel is configured but cloudflared is not running, Cloudflare may show the tunnel as down and the public hostname may return an error such as 530. Start the local server and the tunnel connector before connecting ChatGPT.
This server can expose local tools to ChatGPT, but ChatGPT still has its own safety layer between your request and any connected tool.
Some actions may ask for confirmation or be blocked entirely: changing or deleting things, sending or posting content, using logged-in websites, exposing sensitive data, following suspicious page instructions, or anything that looks like policy evasion or unsafe automation.
Those blocks happen on the ChatGPT/OpenAI side. Making the MCP server more powerful does not bypass them.
This project was developed with AI assistance.
The project, code, documentation, and repository materials were shaped through human-directed work supported by AI tools during drafting, implementation, review, testing, and refinement.
AI assistance does not make the project automatically correct, complete, secure, or suitable for every use case. Read it, test it, and adapt it to your own context before exposing local files, shell access, browser sessions, or desktop automation.
<details> <summary>Maintainer and technical details 🧑🔧</summary>
This is a personal, full-power local MCP system for Windows.
It is usable, but it is DIY. It is not an OS sandbox and it is not a hosted service.
The server runs with the permissions of the Windows account that starts it. If that account can read a file, launch a command, see a browser session, or interact with the desktop, the exposed tools may be able to reach the same surface.
Keep that model in mind while configuring workspaces, browser profiles, scopes, and tunnels.
Core pieces:
Runtime defaults:
Server: http://127.0.0.1:8789
MCP: http://127.0.0.1:8789/mcp
Dashboard: http://127.0.0.1:8789/dashboardNormal install root:
%LOCALAPPDATA%\chatgpt-local-agent-mcpThe server registers tools across these categories:
Tool access is controlled by MCP scopes:
mcp:read
mcp:write
mcp:shell
mcp:git
mcp:patch
mcp:delete
mcp:process
mcp:screen
mcp:desktop
mcp:browserUse narrow scopes when possible. Add power only when you need it.
Create a private .env from .env.example.
Full-power local defaults from .env.example:
GPT_FS_MCP_HOST=127.0.0.1
GPT_FS_MCP_PORT=8789
GPT_FS_MCP_MAX_POLICY_MODE=destructive
GPT_FS_MCP_ENFORCE_WORKSPACE_PROFILES=true
GPT_FS_MCP_SHELL_POLICY=full
GPT_FS_MCP_PROCESS_POLICY=full
AUTH_REQUIRED=true
NODE_ENV=developmentFor local-only smoke testing before OAuth is configured, AUTH_REQUIRED=false is allowed only while the server is bound to localhost and no tunnel is enabled.
Safe local-only smoke test values:
PUBLIC_BASE_URL=http://127.0.0.1:8789
CLOUDFLARE_TUNNEL_ENABLED=false
AUTH_REQUIRED=falseNever use AUTH_REQUIRED=false with a public URL, public hostname, or tunnel. The installer/server guard against unsafe combinations, but configuration still matters.
For a safer first workspace, define GPT_FS_MCP_WORKSPACE_PROFILES_JSON for one test folder, keep auth enabled for remote use, and guard command execution:
GPT_FS_MCP_SHELL_POLICY=workspace_guarded
GPT_FS_MCP_PROCESS_POLICY=workspace_guardedUse full command policies only when you deliberately want shell and process tools to reach outside declared workspace paths.
For a public or tunneled connector:
AUTH_REQUIRED=true
CLOUDFLARE_TUNNEL_ENABLED=true
PUBLIC_BASE_URL=https://your-public-host.example
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
ALLOWED_GITHUB_LOGINS=your-github-login
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
OAUTH_REDIRECT_URIS=Treat .env as security-critical.
There are two OAuth layers.
You sign in with GitHub.
The server redirects to GitHub, receives the callback, checks the allowed GitHub login, and then issues a local MCP authorization code.
GitHub callback:
https://your-public-host.example/callbackRelevant config:
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
ALLOWED_GITHUB_LOGINS=ChatGPT is the OAuth client talking to this MCP server.
Relevant config:
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
OAUTH_REDIRECT_URIS=The server exposes OAuth metadata at:
/.well-known/oauth-protected-resource
/.well-known/oauth-authorization-serverThe server does not expose dynamic client registration.
The intended remote exposure model is:
ChatGPT
-> https://mcp.your-domain.example/mcp
-> Cloudflare Tunnel
-> http://127.0.0.1:8789
-> local MCP serverNo Cloudflare Worker is required for the normal setup.
For a locally managed Cloudflare Tunnel, the dashboard route is read from the local cloudflared configuration file. A minimal route looks like:
ingress:
- hostname: mcp.your-domain.example
service: http://127.0.0.1:8789
- service: http_status:404The matching .env values are:
PUBLIC_BASE_URL=https://mcp.your-domain.example
CLOUDFLARE_TUNNEL_ENABLED=true
CLOUDFLARED_CONFIG=C:\Users\you\.cloudflared\config.ymlIf Cloudflare shows the DNS record as a Tunnel but the tunnel status is Down with 0 active replicas, the dashboard configuration can still be correct. It means the local cloudflared connector is not currently connected.
This system is designed to be capable, not sandboxed.
Boundaries it does provide:
Boundaries it does not provide:
For stricter command behavior:
GPT_FS_MCP_SHELL_POLICY=workspace_guarded
GPT_FS_MCP_PROCESS_POLICY=workspace_guardedworkspace_guarded checks the command working directory plus explicit path references and expected touched paths.
It is still not a sandbox.
By default, when GPT_FS_MCP_WORKSPACE_PROFILES_JSON is empty, the server creates one workspace profile per detected filesystem root.
On Windows, that means available drive roots such as:
C:\
D:\That is intentional full-machine access.
GPT_FS_MCP_DEFAULT_CWD only controls the starting directory for relative paths and commands. If it is empty, it falls back to the user Documents\GitHub folder. It does not limit filesystem access by itself.
Custom workspace profiles can be provided with:
GPT_FS_MCP_WORKSPACE_PROFILES_JSON=Profiles define:
Use profiles to keep the assistant inside the intended workspace instead of exposing more of the machine than necessary.
Browser automation uses Playwright.
If browser binaries are missing after dependency install, run:
npx playwright installBrowser and desktop tools are high-risk because they can interact with visible UI and active sessions.
Use a dedicated browser profile when possible.
Do not attach the server to accounts, profiles, or desktop sessions you are not willing to expose to the connected assistant.
Install dependencies:
npm ciType-check:
npm run type-checkBuild:
npm run buildRun tests:
npm testRun the built server:
npm startRun in watch mode:
npm run devBefore sharing the source folder:
npm run audit:publish-safeThe source repo should not include:
.envdata/node_modules/dist/*.logThe included .gitignore excludes the main repo-root runtime directories and logs. Run the publish-safe audit before publishing; it is the final check, not the ignore file alone.
.env asks for OAuth values during first local testIf AUTH_REQUIRED=true, OAuth values are required.
For localhost-only smoke checks before OAuth is configured, use:
PUBLIC_BASE_URL=http://127.0.0.1:8789
CLOUDFLARE_TUNNEL_ENABLED=false
AUTH_REQUIRED=falseDo not use this configuration with a public URL or tunnel.
/mcp returns 401That is normal without a token.
A protected MCP endpoint should reject unauthenticated requests.
/authorize returns invalid_requestUsually one of these does not match the ChatGPT connector request:
OAUTH_CLIENT_IDOAUTH_REDIRECT_URISPUBLIC_BASE_URLresource/callback works but /token returns 401The ChatGPT connector secret does not match:
OAUTH_CLIENT_SECRET=or ChatGPT is not sending the expected client credentials.
Keep the two OAuth layers separate:
GitHub callback:
https://your-public-host.example/callbackChatGPT connector URL:
https://your-public-host.example/mcpChatGPT redirect URI:
OAUTH_REDIRECT_URIS=Do not put the ChatGPT redirect URI into the GitHub OAuth App.
Check whether Playwright browsers are installed:
npx playwright installAlso check whether the server is running under the Windows account that owns the browser/profile you expect to use.
The Cloudflare DNS and tunnel route may be correct, but the local tunnel connector is not connected.
Check that:
http://127.0.0.1:8789cloudflared is runninghttp://127.0.0.1:8789The local MCP server may be working correctly.
ChatGPT/OpenAI safety layers can still block some write, submit, send, post, authenticated browser, or desktop actions.
Treat this as a platform boundary first, then inspect server logs.
</details>
MIT. See LICENSE.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.