LocalMCP
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.
LocalMCP · 本地智控
安全可控的本地无状态 MCP(Model Context Protocol)服务端与跨平台桌面客户端,让 ChatGPT、Gemini、Claude、Codex、Antigravity 等 AI 客户端通过细粒度权限可控访问本机文件、终端、桌面与本地多智能体。
· MIT License · 下载安装包 · 快速使用 · CI 与发版
下载
安装包由 GitHub Actions 自动构建并附带统一 SHA256SUMS.txt,内置 Electron Node 运行时与隧道组件(cloudflared / frpc / ssh),无需额外配置运行环境。
前往 GitHub Releases 下载对应安装包:
平台 | 类型 | 产物命名 |
Windows x64 | 安装版(MSI) |
|
Windows x64 | 绿色便携版(ZIP) |
|
macOS Apple Silicon (M1–M4) | 安装镜像(DMG) |
|
数据目录与旧配置无感迁移
纯英文无空格数据目录:
Windows 安装版:
%APPDATA%\local-mcp(便携版保存于同级data/)macOS:
~/Library/Application Support/local-mcp
自动无感迁移:首次启动若检测到新目录尚无配置、而旧目录(如
%APPDATA%\MCP 本地控制或 macOS 旧目录)存在配置,将自动把.env、FRP 配置、目录白名单与GUIDE.md只复制不删除地迁移到新目录,老目录完整保留。macOS 首次启动:打开 DMG 拖入「应用程序」;如遇未签名提示,在「系统设置 → 隐私与安全性」中点击「仍要打开」。
Related MCP server: ManuMCP
快速使用
启动 本地智控(LocalMCP),点击中心圆环一键建立连接。默认「智能路由」自动择优建隧道并在断线时切备重连。
点击 复制完整地址,粘贴到 ChatGPT、Gemini 或其他支持 Streamable HTTP 的 MCP 客户端(认证选
No authentication,密钥已附带在连接地址中)。关闭主窗口默认进入轻量模式:释放前端内存,后台保持 MCP 服务、公网隧道与托盘/菜单栏常驻在线。
核心能力
模块化无状态 MCP 2026-07-28 架构:服务端拆分为
src/core/(配置热载、鉴权与审计、无状态协议封装)、src/tools/(20 个固定顺序工具注册中心)与src/agents/,原生以无状态 JSON POST 响应并对孤立GET /mcp立即返回405。智能 5 渠道路由:支持 Cloudflare 授权固定域名、自定义 FRP(
frpc,免手写 TOML 且支持一键导入本机Frpc-Desktop配置)、Tunnl.gg、localhost.run 与 Cloudflare Quick,自动择优并指数退避重连。跨智能体协同中枢(5 个
agent_*工具):内置agent_list、agent_register、agent_dispatch、agent_result、agent_notify,支持 Antigravity(优先agyCLI,自动回退桌面agentapi)、Codex CLI、Claude Code 与 Gemini CLI,支持多实例互调、五态任务句柄(working/input_required/completed/failed/cancelled)与 push/inbox 双模通知。细粒度热控与代码诊断:文件读写、终端命令、
code_diagnostics(tsc/ESLint/ruff)、截屏、打开应用、Windows 键鼠自动化、macOS AppleScript 与智能体调度开关实时热生效,高权限调用全量写入本地审计日志。设备名定制与本地引导:支持自定义客户端展示设备名(默认
LocalMCP (<主机名>))与本地GUIDE.md实时引导(参考 GUIDE.example.md)。
从源码运行
命令行服务需要 Node.js 20+;桌面端开发与打包(Electron 45)需要 Node.js 22.12+。
npm ci
npx install-electron
npm run desktop:ui
npm run desktop语法与自动化测试:
npm run check && npm test仅运行无状态命令行服务端:
npm start(配置项见 .env.example)本地构建安装包:Windows 执行
npm run desktop:release,macOS 执行npm run desktop:release-mac(缺electron/cloudflared/frpc时自动按固定版本拉取)
CI 与自动发版
全程严格使用公开仓库免费的标准托管 Runner(ubuntu-latest、windows-latest、macos-15):
主干 CI(.github/workflows/ci.yml):
push/PR到main时运行npm ci、npm run check、npm test与npm run desktop:ui。双端打包与发版(.github/workflows/release.yml):
windows-latest构建LocalMCP-<ver>-win-x64.msi与便携 ZIP;macos-15(Apple Siliconarm64)构建LocalMCP-<ver>-mac-arm64.dmg;自动拉取固定版本cloudflared(2026.11.2)与frpc(v0.72.0)并执行原生可执行校验与隐私文件拦截(禁止打包本地GUIDE.md/.env)。推送
v*标签自动创建/更新 GitHub Release 并附带统一SHA256SUMS.txt;手动执行 Release -> Run workflow 默认dry_run=true,仅上传 Actions Artifact 供演练验收。
安全与许可
带 secret-key 的地址等同本机控制权限,仅限本人可信客户端使用。本项目采用 MIT License 开源(Copyright © 2026 Tong Li / ssesweb)。
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
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect AI assistants to explicitly paired computers, servers, and VMs for permitted remote actions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to manage files and documents, search code, run shell commands, and control processes locally across Windows, Linux, and macOS.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables compatible AI clients to operate a local computer by accessing files, applications, processes, shells, and, on Windows/macOS, graphical desktop controls such as windows, screens, mouse, and keyboard. It runs locally with user permissions and confirmation previews for operations that change the machine.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables local, permissioned development workflows from compatible AI clients, including filesystem editing, interactive terminals, durable jobs, Git operations, and semantic browser testing.42 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to search, update, and manage files, run and control terminal commands and processes, execute code in memory, and work with Excel, PDF, and DOCX documents on local desktops.MIT