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 reach that machine and work on the real workspace, under your control.
You run it on your Windows PC. You expose it through your own authenticated HTTPS endpoint. ChatGPT connects to it as a remote MCP server.
From there, ChatGPT 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.
The simple version:
ChatGPT stays the brain. This gives it hands on your computer.
For remote use, the intended setup is your own Cloudflare Tunnel and domain. That gives ChatGPT a stable HTTPS path to your local MCP server without relying on random temporary relay URLs.
This is powerful, and it should be treated that way. If the server can see a folder, browser profile, terminal, or desktop session, the connected assistant may be able to use it. Start with a dedicated workspace, keep authentication enabled, and expand access only when you understand what you are exposing.
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 the local MCP tools and keep the loop inside 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.
A normal remote setup looks like this:
ChatGPT
-> your HTTPS hostname
-> Cloudflare Tunnel
-> http://127.0.0.1:8789
-> local MCP server
-> your Windows PCThe MCP endpoint is:
https://your-public-host.example/mcpThe local server listens on:
http://127.0.0.1:8789The local dashboard is:
http://127.0.0.1:8789/dashboardYou can run it locally first, then expose it through a tunnel only when the local health checks are clean.
If AUTH_REQUIRED=true, the server still needs the GitHub and ChatGPT OAuth values in .env, even for local testing. For localhost-only smoke checks before OAuth is configured, AUTH_REQUIRED=false is allowed only while the server is bound to localhost and no public tunnel is enabled.
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.
The default workspace profile is full-machine: on Windows, the server creates profiles for the detected drive roots such as C:\ and D:\.
If you want the first run limited to one test folder or repo, set a custom workspace profile before connecting ChatGPT.
Recommended first run:
127.0.0.1.AUTH_REQUIRED=true once OAuth is configured.This project is intentionally capable. Treat access like you would treat a human assistant sitting at your keyboard.
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.
From the extracted source folder, run:
.\install-chatgpt-local-agent-mcp.batThe installer will guide you through the local setup.
Recommended flow:
.env.The extracted source folder is not the runtime folder.
Your private .env, logs, data, dependencies, build output, browser artifacts, journals, backups, and screenshots belong in the install folder.
The project includes local control surfaces so you can see what is happening.
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 on your machine, visibility matters.
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.
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 a safer first workspace, define GPT_FS_MCP_WORKSPACE_PROFILES_JSON for one test folder, keep auth enabled, 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=Never expose the server with:
AUTH_REQUIRED=falseThe code rejects unsafe combinations such as public HTTPS with AUTH_REQUIRED=false, but configuration still matters. 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.
/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.