ChatGPT2LocalBridge
Provides tools for interacting with Git repositories, including status, diff, checkpoint, and revert.
Allows ChatGPT to access local files and execute commands on the local machine after OAuth authorization.
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., "@ChatGPT2LocalBridgelist the files in my project root"
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.

ChatGPT2LocalBridge is a self-hosted MCP server that lets ChatGPT access approved local workspaces after OAuth authorization. It is designed for people who want ChatGPT to inspect or operate on local project files without uploading the whole workspace elsewhere.
It is not a legacy ChatGPT plugin. It is best described as:
MCP Server
ChatGPT Custom Connector
OAuth Local Workspace Bridge
Unofficial project. Not affiliated with OpenAI.
Route
ChatGPT
-> OAuth MCP Connector
-> HTTPS tunnel
-> http://127.0.0.1:3838/mcp
-> ChatGPT2LocalBridge
-> approved local workspace rootsChatGPT does not directly mount your disk. It calls MCP tools, and every file operation is checked against bridge.policy.json.
Related MCP server: LocalNest MCP
30-Second Install
npx github:harzva/chatgpt2localbridge init --root ~/Projects
set -a; source .env.local; set +a
npx github:harzva/chatgpt2localbridge --http 3838Local clone flow:
git clone https://github.com/harzva/chatgpt2localbridge.git
cd chatgpt2localbridge
npm install
npm run build
node dist/index.js init --root ~/Projects
set -a; source .env.local; set +a
node dist/index.js --http 3838Health check:
curl -sS http://127.0.0.1:3838/healthLocal operator console:
http://127.0.0.1:3838/appChatGPT Connector Setup
Expose the local server through HTTPS:
ngrok http 3838 --url=your-fixed-domain.ngrok-free.devThen create a ChatGPT Custom Connector:
Field | Value |
Name |
|
URL |
|
Auth | OAuth |
When the authorization page opens, enter the unlock code from .env.local. Do not paste unlock codes or tokens into public chats, issues, screenshots, or commits.
Screenshot Walkthrough
Step | Preview |
Initialize local policy |
|
Run local MCP server |
|
Check |
|
Create connector |
|
Authorize |
|
Test file listing |
|
Full guides:
Main MCP Tools
Area | Examples |
Project |
|
Code |
|
Files |
|
Shell/tests |
|
Git |
|
Runtime |
|
Cloud sync |
|
Bridge |
|
File Sync And Activity
Local files can be read by ChatGPT through approved MCP tools.
ChatGPT/App-provided cloud file download URLs can be written back to local disk with
cloud.download.Tool calls are persisted to
tool-calls.jsonl.File writes, downloads, tasks, processes, and service restarts are persisted to
audit.jsonl.The local console at
/appshows status, tool calls, and audit events.
See file sync flows.
Security Defaults
Do not run unauthenticated on a public URL.
Keep
allowedProjectRootsnarrow.Never commit
.env.local,bridge.policy.json, OAuth stores, tokens, cookies, or unlock codes.Prefer OAuth over URL tokens.
Set
LOCALBRIDGE_DASHBOARD_TOKENbefore using/app.Review shell deny rules before enabling shell access for broad workspaces.
See security model.
Alternatives
OAuth + fixed HTTPS tunnel is the default because it fits ChatGPT Custom Connectors well. Other options exist:
OpenAI Secure MCP Tunnel, when available to your workspace
Cloudflare Tunnel
VPS reverse proxy
Static bearer token for private clients
Loopback-only no-auth testing
See alternatives.
GitHub Pages
The static product site lives in docs/. The repository includes a GitHub Actions workflow that deploys it to GitHub Pages after pushing to main.
Development
npm install
npm run typecheck
npm test
npm pack --dry-runRender README and docs assets:
npm run docs:assets
npm run docs:previewPublic Release Checklist
Enable GitHub Pages with the included workflow.
Confirm
npm testpasses in GitHub Actions.Keep
.env.localandbridge.policy.jsonuntracked.Verify the ChatGPT connector uses OAuth and the correct
/mcpURL.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/Harzva/chatgpt2localbridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server





