localmcpcoder
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., "@localmcpcoderlist the files in the folder"
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.
localmcpcoder
A remote MCP server that gives ChatGPT — or any MCP client — Claude Code style tools on your own machine: run shell commands, read, write and edit files, search the filesystem, and keep a task list.
It runs locally and is published to the internet through a free Cloudflare tunnel, so a web chat can actually work on your computer instead of just talking about it.
Read the Security section before exposing this. This is remote code execution on your machine, by design.
Requirements
Windows 10/11 | PowerShell is used as the default shell | |
Node.js 22+ |
| 22 or newer (uses the built-in |
| Installed in step 2 below | |
ChatGPT Plus or Pro | Needed for Developer mode, which allows write tools |
Related MCP server: mcp2term
Installation
Run these in order, in PowerShell.
1. Get the code and install the dependencies
git clone https://github.com/JuanseGZZ/localmcpcoder.git
cd localmcpcoder
npm install2. Install cloudflared
winget install --id Cloudflare.cloudflared -eThen close and reopen PowerShell so cloudflared lands on your PATH. Check it:
cloudflared --versionThat is the whole installation. The access token is generated automatically on first
run and saved to .env, which is gitignored — you never create it by hand.
Running it
cd localmcpcoder
.\start.ps1This starts the server on 127.0.0.1:8787, opens the tunnel, and prints a public URL
that it also copies to your clipboard:
=============================================================
READY. Paste this URL into ChatGPT (Settings > Connectors):
https://random-words-here.trycloudflare.com/mcp/0a14bdd6...
Authentication: 'No authentication' (the token is in the URL)
Exposed folder: C:\Users\me\localmcpcoder
=============================================================Leave that window open. Closing it, or pressing Ctrl+C, shuts down both the server
and the tunnel.
Common options:
.\start.ps1 -Root "C:\Users\me\projects" # expose a different folder
.\start.ps1 -Port 8788 # use a different port
.\start.ps1 -AllowOutsideRoot # whole disk — see SecurityConnecting it to ChatGPT
ChatGPT → Settings → Connectors → Advanced → turn on Developer mode.
Connectors → Create / Add MCP server.
URL: the full URL printed above, including the
/mcp/<token>part.Authentication: No authentication.
Save. The connector should list the ten tools below.
Open a chat, enable the connector from the tools menu, and try "list the files in the folder".
Without Developer mode, ChatGPT only accepts search-style connectors and will reject the write tools.
Connecting it to Claude Code
claude mcp add --transport http localmcpcoder https://random-words-here.trycloudflare.com/mcp/<token>Restarting later
The free tunnel gives you a new URL every time you start it. The token at the end
stays the same — it lives in .env — but the hostname changes, so re-paste the URL
into the connector after each restart.
Tools
Tool | What it does |
| Runs a PowerShell command (working dir, timeout, exit code) |
| Reads a file with line numbers ( |
| Creates or overwrites a file |
| Exact string replacement, with |
| Lists a directory |
| Finds files by pattern ( |
| Searches a regex across file contents |
| Session task list |
| OS, user, allowed root, shell |
Configuration
start.ps1 sets these for you; set them by hand only if you run node server.js directly.
Variable | Default | Purpose |
| — | Access token, required, 16 characters minimum |
|
| Local port |
| cwd | The only folder that can be accessed |
|
|
|
|
|
|
|
| Max characters per tool response |
Using your own domain instead
If you own a domain on Cloudflare, you can swap the random URL for a fixed one. Create a
named tunnel in the Cloudflare Zero Trust dashboard, install it as a service, and point a
public hostname at http://localhost:8787. Then run start-server.ps1
instead of start.ps1 — it starts only the server and leaves the tunnel to the service.
A named tunnel requires a domain in your Cloudflare account; without one, use the quick
tunnel above.
Security
This publishes remote code execution on your machine to the internet. Anyone holding the URL can do anything you can do on that computer.
The URL is the password. Do not paste it into a repo, an issue, a screenshot, or a chat you do not control.
.envholds your token and is gitignored. Keep it that way. To rotate the token, delete.envand restart — a new one is generated.The random URL is a feature. Each restart invalidates the previous one.
Keep
MCP_ROOTnarrow. Point it at a projects folder.-AllowOutsideRootexposes documents, credentials,.ssh— everything your user can read.bashhas no allowlist. It can delete files, install software, or reach the network. The root restriction applies to the working directory, not to what a command does once it runs.Shut it down when you are not using it (
Ctrl+C).
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
- 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
- Alicense-qualityBmaintenanceExposes an interactive terminal over MCP, enabling remote shell command execution, file operations, and directory management via ChatGPT or Claude Desktop.1MIT
- Alicense-qualityBmaintenanceEnables remote MCP clients to access local filesystem and shell commands by deploying a Cloudflare Worker relay and a local daemon, providing tools like read/write files, exec commands, git status, etc.4871MIT
- Flicense-qualityCmaintenanceSecure self-hosted remote MCP server with file and shell tools, protected by Cloudflare Tunnel and bearer-token auth.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
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/JuanseGZZ/localmcpcoder'
If you have feedback or need assistance with the MCP directory API, please join our Discord server