Local Coder MCP
Supports exposing the MCP server over a public HTTPS URL using Cloudflare Quick Tunnel or named tunnels, including automatic Quick Tunnel URL discovery and token-based named tunnel configuration.
Provides tools to inspect git state and perform write operations such as staging, committing, branching, and stashing in local repositories.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Local Coder MCP
Self-hosted MCP coding tools for your local workspaces, available to any compatible AI client.
Works with: ChatGPT, Gemini, Claude, Claude Code, Cursor, VS Code, Codex CLI, Gemini CLI, Le Chat, and other MCP clients.
Any MCP client ─── HTTPS tunnel (optional) ───► MCP :8787
Browser on this machine ──────────────────────► Admin :8788 (loopback only)
│
Docker ──────┴── /data + mounted projectsWhat it can do
Local Coder turns any AI chat into a coding agent that works on your real projects, on your machine. It doesn't hand you code to paste: it reads, edits, runs, tests and verifies the work itself.
🧑💻 Real coding agent in any chat
Works on your actual files. Read, search, edit, move and undo across your projects. Every edit makes a checkpoint you can roll back, and diagnostics run right after each change.
Runs your terminal. Builds, tests, installs and dev servers. Long commands keep running in the background, and the model can type into interactive prompts.
Uses git properly. Status, diffs, history and blame, then commit, branch, stash and push.
Remembers where it was. A task plan and
resumesurvive reconnects and new chats; say "continue" and it picks up from there.
✅ Proves its work instead of claiming it
Runs the right checks itself.
run verify:truefinds and runs the project's checks (typecheck, tests, lint).Tests UIs in a real browser.
browser_checkopens your app in headless Chromium, clicks and types, collects console errors and failed requests, and sends back a screenshot the model can see. With the Playwright plugin it gets a full browser session it can drive step by step.A "done" you can trust. When the model calls
finish, the server checks the evidence: a passing check after the last edit, the git changes and no open requests. Each report is marked Verified or Not verified, with the reasons.
⚡ Built for the limits of web chats
One call does the work of many.
execruns a small JavaScript program that calls the other tools in parallel (up to 32 calls in one approval).runtakes up to 20 commands in one shell, andreadtakes many files and folders at once. This keeps web chats under their tool-calls-per-reply cap.Few or no approval prompts. Read-only tools never ask. In Minimal mode only 4 tools ask, once each, and Trust mode never asks. You can switch modes live.
Survives restarts. Stale sessions recover on their own, so a server restart doesn't break the chat.
🤝 You stay in control
The model can ask you for a step. For sudo, logins, secrets or hardware it posts the exact command as a card on Admin → Requests, with Copy / Mark done / Skip. It never runs those commands itself, and it can check that the files it expected now exist.
A live plan. See the model's current task list update as it works.
Activity log. Every tool call, from every client, appears live in the admin UI, including the calls made inside
exec.
🧩 Extend it in minutes
Skills: drop a folder with a
SKILL.mdin it, import it in the UI, or ask the chat to save one. Built-ins: herdr, herdr-web, UI design, code review, git workflow, Docker dev, skill authoring.Commands: reusable task recipes such as
/review,/fix,/test,/ship,/verifyand/delegate. They show up as slash commands where the client supports them, and ascommand_runeverywhere else.Plugins hub: plug in other MCP servers (Playwright, Fetch, Memory, GitHub or your own) from the Plugins page. Their tools are served on a second address, so your main tool list stays small. Each tool can be switched on or off, and secrets are masked.
Agent teams with herdr: drive real terminal agents (Claude Code, Codex, Gemini CLI and others) on your machine. Hand a task to an agent and get its report back in one call.
🔒 Safe by default, easy to run
Runs in Docker as your user. Projects are mounted at the same paths, and you pick which folders are reachable from Settings → Workspace roots, with a folder browser.
Locked down by default:
A secret access key, with OAuth 2.1 + PKCE login for web apps.
The admin UI is local-only, with a DNS-rebinding guard.
Every path is checked against the allowed folders, including through symlinks.
Any client, one setup: ChatGPT, Gemini, Claude, Claude Code, Cursor, VS Code, Codex CLI, Gemini CLI and Le Chat all use the same server and the same key. The admin Connect page shows the exact steps for each.
Related MCP server: DevSpace
Quick start
Clone the repository:
git clone https://github.com/Yassinecoder06/Local_Coder_MCP.git && cd Local_Coder_MCPRun
./scripts/setup.sh(or./scripts/setup.sh --yesto accept defaults). Docker Compose v2 is required.Open http://localhost:8788 and copy the connection URL and access key shown on the admin Connect page.
Connect any compatible client using the endpoint and access key on the admin Connect page. Remote clients need a public HTTPS URL; see Getting a public HTTPS URL.
Your project directory defaults to ~/Projects. It is mounted at the same absolute path inside the container, so file paths stay identical. Change which folders the server uses any time in Admin → Settings → Workspace roots (see below).
Change project folders
Use Admin → Settings → Workspace roots to add, remove, or choose the default project folder; the change applies to new sessions immediately. Folders must exist inside a mounted area. To make a wider host area available, set MOUNT_DIR in .env and run make up; it defaults to PROJECTS_DIR. The container can read and write everything under MOUNT_DIR, so choose a folder you are comfortable exposing to connected clients. ALLOWED_ROOTS can add extra allowed paths, but those paths must also be mounted into Docker.
Connect your client
Use the MCP URL shown on the admin Connect page, normally <base>/mcp, and the access key shown there. Choose OAuth and sign in with the access key, or configure the client to send Authorization: Bearer <key>. Some clients support the URL form <base>/mcp/<key> instead. Remote clients must be able to reach the server over HTTPS; see Getting a public HTTPS URL. Client menus, plan availability, and configuration formats can change; use the linked client documentation for current details.
Client | Connection steps |
ChatGPT web | Open Settings → Apps & Connectors → Advanced → Developer mode → Create and enter |
Gemini web | Open Settings → Connected apps → Add custom app and enter |
Claude.ai / Claude Desktop | Open Settings → Connectors → Add custom connector, enter |
Claude Code | Run |
Cursor | Add this entry to |
VS Code | Add this entry to |
Gemini CLI | Add to |
Codex CLI | Add |
Le Chat and other MCP clients | For any client that supports remote Streamable HTTP MCP, configure |
Getting a public HTTPS URL
Web clients cannot reach localhost. Start an ephemeral Cloudflare Quick Tunnel:
docker compose --profile tunnel up -dThe server discovers the Quick Tunnel URL automatically from Cloudflare's tunnel metrics endpoint. It appears in the admin UI once the tunnel is up; no manual PUBLIC_URL setting is needed. Quick Tunnel URLs change when the tunnel is recreated. For a stable hostname, create a Cloudflare named tunnel, put its token in CLOUDFLARE_TUNNEL_TOKEN, then start it with docker compose --profile named-tunnel up -d named-tunnel and set PUBLIC_URL to its configured hostname. Tailscale Funnel and ngrok are alternatives; point either at the MCP port 8787 and set PUBLIC_URL to its HTTPS URL.
Already have your own domain or Cloudflare tunnel?
Point your existing tunnel or reverse proxy at the host port set by PORT in .env. For example, PORT=3000 publishes host port 3000 and passes HOST_PORT=3000 to the server. Set PUBLIC_URL=https://your-domain. You do not need the tunnel profile. The server always listens on port 8787 inside the container; PORT only selects the host port that Compose publishes. For a tunnel running in a separate container on this Compose network, target http://mcp:8787 instead.
The admin port remains bound to 127.0.0.1 and is never sent through the tunnel.
Fewer permission prompts
Choose an approval mode in .env or switch it live in Admin → Settings:
Trust never asks for confirmation. It marks every tool as read-only to the client. Use this only if you trust the prompts and content in your workspace: text the AI reads could instruct it to run commands without asking.
Minimal is the default. Read-only tools never ask. Only four tools ask once each:
edit_files,run,git_write, andskill_save. In clients with per-tool approval controls, click Always allow once per tool.Standard uses conservative annotations, so clients may ask for confirmation each time a mutating or command tool runs.
Skills
Add skills in data/skills/, import them in the admin UI, or ask the chat to use skill_save. A skill is a folder containing SKILL.md:
---
name: release-check
description: Check a project before release.
---
Inspect the working tree, run the project's checks, and summarize any release blockers.Built-in skills: herdr, herdr-web, ui-design, code-review, git-workflow, skill-authoring, and docker-dev. Setup mounts host skills when it detects a usable Herdr integration (see Docker setup).
Commands
Built-ins: /review, /test, /fix, /commit, /explain, /plan, /scaffold, /docs, /refactor, /deps, /delegate, /onboard, /ship, /verify, /todo, and /resume. Add user commands in data/commands/ or through the admin UI; each command is a Markdown file with a name, description, optional arguments, and prompt template.
Plugins
Plugins connect external MCP servers and publish their tools through your existing main connector, including Gemini; the separate <base>/mcp/plugins/<token> endpoint is also available. In Admin → Plugins, paste any MCP config/command for a preview, or choose a pinned recipe. The Chrome DevTools recipe provides Lighthouse, performance, console, and network tools. Most of its tools need a pageId from list_pages; for the current page use Lighthouse snapshot mode:
const result = await plugins["chrome-devtools"].lighthouse_audit({ pageId: 2, mode: "snapshot" });
text(result.summary);The Trusted switch permits non-read-only tools through exec; without it, only upstream read-only tools are callable from the main connector. Secrets are masked in the admin API. Publication is capped at 256 tools and 250 KB of schemas, with 60 seconds to start, 120 seconds per call, and 2 MiB per result.
Herdr integration
When setup finds the Herdr CLI and its live socket, it enables the host-tools Compose override automatically and prints herdr integration: enabled. The override mounts the CLI and Herdr config directory, sets the Herdr environment, and makes the herdr skill available. Otherwise it prints herdr integration: disabled; install/start Herdr and run setup again to enable it. Set HERDR_BIN in .env if the CLI is installed outside the detected path.
This lets a connected AI client use the herdr-web skill to inspect and drive real host terminals and CLI agents. Herdr can send commands and input to those terminals, so protect the Local Coder access key and only connect clients you trust.
Verification
After edits, inspect diagnostics and run the project's checks so the model can report evidence that the change works. Use /verify to identify and run relevant checks; for UI changes, open the running page with browser_check and inspect its screenshot. Use /todo to keep a concrete checklist for multi-step work and /resume to continue from unfinished items later.
Fewer tool calls
Web chats cap how many tools the model can call per reply, so Local Coder lets one call do more:
execruns a short JavaScript program that calls other tools:const [a, b] = await Promise.all([tools.read({paths: ["package.json"]}), tools.git({subcommand: "status"})]); text(a.summary);(up to 32 calls, 8 at a time, 60 s; only what you pass totext()/image()comes back).runwithcmdsexecutes up to 20 commands in one Bash session;cdand environment changes carry over, and each command reports its own exit code (stop_on_erroris optional).jobwithstdinandpolldrives interactive background commands.readtakes manypathsat once, expands globs, lists directories, and returns up to 256 KB per file.
If a client still hits its cap, say "continue": the model calls resume and carries on.
Working with the model
If the model needs you to run a command, it posts a request card on Admin → Requests (the sidebar badge shows how many are open). Use Copy to run the exact command in its stated folder, then choose Mark done or Skip; the server never runs it for you. The model can check your response with user_request_status. The same page shows a live Plan panel with its current todo list, and the reports from finish with their evidence. Verified means the server found a passing verify or browser_check and no open requests; otherwise the report includes warnings.
The server reminds the model to record a plan when work starts without one, and carries that plan into a newly opened project folder. When work finishes, it warns if no plan was recorded or steps remain unfinished. You can follow the plan in Admin → Requests.
Tools
Tool | What it does |
| Inspect or switch the active project |
| Read many files at once (globs, directories), browse, and search content or paths |
| Batch write, replace, patch, move, copy, delete and undo, with diagnostics after each edit; list checkpoints |
| Run shell commands or batches ( |
| Run a JavaScript program that calls other tools in parallel: many steps in one call |
| Open a page in headless Chromium, interact, collect console errors and return a screenshot |
| Inspect git state; add, commit, branch, stash, pull, push and merge |
| Hand you one exact step (shown as a card) and check whether it's done |
| Report the task as done; the server checks the evidence and marks it Verified or not |
| Keep a task plan and pick up unfinished work after a reconnect |
| Find, load and create skills |
| Browse and render command recipes |
| Fetch a URL or inspect server status |
Plugin tools (Playwright, Fetch, Memory, GitHub, your own servers) are served on the separate plugins endpoint.
The default TOOL_PROFILE=essential is tuned for web chat. Set TOOL_PROFILE=full in .env to expose additional tools as they are available.
Configuration
Values are set in .env. Compose binds both ports to loopback and mounts /data for persistent state.
Variable | Default | Purpose |
|
| Host directory mounted at the same path; Compose sets |
|
| Host directory mounted at the same path; all descendants are accessible to the container |
| empty | Additional workspace root areas; mount these paths into Docker as well |
| current host IDs | Run the container as the host user for mounted files |
|
| Host ports published for MCP and admin; the MCP server listens on |
| generated by setup | Access key for token auth and OAuth login |
| empty | HTTPS base URL used by OAuth and web clients |
|
| Cloudflare Quick Tunnel URL discovery; Compose supplies this automatically |
|
| Chromium wrapper used by the read-only screenshot check |
|
|
|
|
|
|
|
|
|
|
| Persistent server data, skills, and commands |
| first workspace root | Initial active project |
|
| Shell command limit and foreground wait window |
|
| Maximum tool output size |
|
| Save checkpoints for tool-driven edits |
|
|
|
| app and | Skill sources; extra paths are comma- or semicolon-separated |
| app and | Built-in and user command locations |
| empty | Optional token for a stable Cloudflare named tunnel |
HOST, ADMIN_HOST, and WORKSPACE_ROOTS are also supported by the app. Docker sets the listener hosts to 0.0.0.0 internally and derives workspace roots from PROJECTS_DIR.
Run without Docker
With Node.js 22 or later:
npm ci
npm run build
npm startSet WORKSPACE_ROOTS, MCP_TOKEN, and DATA_DIR in your environment as needed. The admin listener defaults to loopback; keep it local or protect it with your own network controls.
Security
The server can read and change files and run shell commands in mounted workspaces. Connect only to a server you control, use a strong access key, review tool actions, and keep the admin port local. For internet access, expose only the MCP port through a trusted HTTPS tunnel. Avoid AUTH_MODE=none except for isolated local testing.
Troubleshooting
Docker says
PROJECTS_DIRis missing: run./scripts/setup.shor set an absolutePROJECTS_DIRin.env.Admin page does not load: check
docker compose psanddocker compose logs mcp; usehttp://localhost:8788on the Docker host.Client cannot connect: web clients need an HTTPS tunnel; Quick Tunnel URLs appear automatically, while named tunnels and other providers need the matching
PUBLIC_URL.Gemini or ChatGPT reports a
530or1033: the computer running Local Coder is off, asleep, or offline, so the tunnel cannot reach it. The computer must stay awake while serving. On Ubuntu/GNOME, keep it awake from a terminal withsystemd-inhibit --what=sleep:idle --why="Local Coder" sleep infinity, or turn off automatic suspend in Settings → Power. Checksystemctl status cloudflaredanddocker compose pson the host.Laptop lid behavior: optionally set
HandleLidSwitch=ignorein/etc/systemd/logind.confif the laptop should keep serving with its lid closed. Use this cautiously: a closed laptop can overheat, especially in a bag. Restartsystemd-logindor reboot after changing the setting.skill_load herdrdoes not show the playbook: loadherdr-web. A host skill fromEXTRA_SKILLS_DIRScan hide a built-in skill with the same name;skills_listshows which copy wins.An old plan appears in
resume: runtodowithaction: "clear", or open Admin → Requests and choose Clear plan.Tool output was truncated: Local Coder keeps the beginning and end of oversized results and marks the omitted bytes. Use job output or read the relevant ranges to inspect the middle.
Files are owned by the wrong user: confirm
HOST_UIDandHOST_GIDin.envmatchid -uandid -g, then recreate the service.Quick Tunnel URL is missing: wait a few seconds and check
docker compose --profile tunnel logs -f tunnel.Tool-call limit per turn reached: this is a client-side cap. Say “continue” to resume, and batch related commands to use fewer calls.
Headless Chromium crashed: use
browser_checkfor page verification. Rebuild the Docker image to install the Chromium wrapper for raw headless Chromium commands.A folder is missing from the folder picker: it is outside
MOUNT_DIR. SetMOUNT_DIRto a parent folder in.envand runmake up.Gemini says check the URL for
/mcp/plugins: use the main connector instead; plugin schemas are normalized now.Gemini reports
502orDEADLINE_EXCEEDED: keep each tool call under about 8 seconds. If the Cloudflare tunnel is flaky, switch its systemd service to HTTP/2:sudo systemctl edit cloudflaredAdd these lines to the override:
[Service] ExecStart= ExecStart=/usr/local/bin/cloudflared tunnel --protocol http2 runThen run
sudo systemctl restart cloudflared.Workspace jumped back: active workspaces are remembered per MCP client. Switch workspace again in the client whose folder you want to change.
Dev server dies: start it as a named service with
run({ service: "dev", command: "npm run dev", port: 5173 }); inspect and control it withjobservices/logs/stop/restart actions.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that gives your AI access to the source code and docs of all public github repos
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseBqualityDmaintenanceSelf-hosted MCP server that enables ChatGPT to access and operate on local project files after OAuth authorization, without uploading the workspace elsewhere.38105MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that gives ChatGPT a secure connection to your local machine, enabling it to read, edit, search, and run code in your projects.410 npmMIT
- AlicenseNot gradedqualityCmaintenanceA self-hosted MCP server that gives ChatGPT full local machine access for coding tasks, including file editing, shell commands, git operations, and project exploration via 40+ MCP tools.MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that lets ChatGPT securely read, edit, search, and run code in your local projects via an owner-approved connection.MIT