Skip to main content
Glama

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+

node -v

22 or newer (uses the built-in fs.glob)

cloudflared

cloudflared --version

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 install

2. Install cloudflared

winget install --id Cloudflare.cloudflared -e

Then close and reopen PowerShell so cloudflared lands on your PATH. Check it:

cloudflared --version

That 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.ps1

This 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 Security

Connecting it to ChatGPT

  1. ChatGPT → SettingsConnectorsAdvanced → turn on Developer mode.

  2. ConnectorsCreate / Add MCP server.

  3. URL: the full URL printed above, including the /mcp/<token> part.

  4. Authentication: No authentication.

  5. Save. The connector should list the ten tools below.

  6. 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

bash

Runs a PowerShell command (working dir, timeout, exit code)

read_file

Reads a file with line numbers (offset / limit)

write_file

Creates or overwrites a file

edit_file

Exact string replacement, with replace_all

list_dir

Lists a directory

glob

Finds files by pattern (**/*.js)

grep

Searches a regex across file contents

todo_write / todo_read

Session task list

system_info

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

MCP_TOKEN

Access token, required, 16 characters minimum

MCP_PORT

8787

Local port

MCP_ROOT

cwd

The only folder that can be accessed

MCP_ALLOW_OUTSIDE_ROOT

0

1 allows the whole disk

MCP_SHELL

powershell

powershell, cmd or bash

MCP_MAX_OUTPUT

60000

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.

  • .env holds your token and is gitignored. Keep it that way. To rotate the token, delete .env and restart — a new one is generated.

  • The random URL is a feature. Each restart invalidates the previous one.

  • Keep MCP_ROOT narrow. Point it at a projects folder. -AllowOutsideRoot exposes documents, credentials, .ssh — everything your user can read.

  • bash has 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).

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    B
    maintenance
    Exposes an interactive terminal over MCP, enabling remote shell command execution, file operations, and directory management via ChatGPT or Claude Desktop.
    1
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Enables 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.
    487
    1
    MIT

View all related MCP servers

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.

View all MCP Connectors

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/JuanseGZZ/localmcpcoder'

If you have feedback or need assistance with the MCP directory API, please join our Discord server