Claude Local Bridge
Access your local repos from Claude on your phone. Secure MCP bridge server with approval gating.
What it does
Runs a local MCP server (over SSE) that gives Claude access to your files — but only after you explicitly approve each request from a real-time dashboard.
Tools
- - browsefiles — List workspace file tree (no approval needed)
- requestfileaccess — Request approval to read/write files (blocks until you decide)
- readfile — Read an approved file's contents
- writefile — Write to an approved file
- listapprovals — See all current approvals
- revokeapproval — Revoke access
- viewaudit_log — View access history
Quick Start
CODEBLOCK0
Then connect Claude to INLINECODE0
Security
- - Sandboxed to whitelisted directories only
- Extension blocklist (.env, .pem, .key, etc.)
- Path traversal prevention
- Bearer token auth
- Every file access requires human approval
- Full audit trail
Remote Access
Use Tailscale (free), Cloudflare Tunnel (free), or NetBird (FOSS) to access from your phone. See tunnel.md.
Claude 本地桥接
从手机上的Claude访问本地仓库。带有审批机制的MCP桥接服务器。
功能说明
运行一个本地MCP服务器(基于SSE),让Claude能够访问你的文件——但每次请求都需要通过实时仪表盘明确批准后才能执行。
工具
- - browsefiles — 浏览工作区文件树(无需审批)
- requestfileaccess — 请求读取/写入文件的审批(阻塞直至你做出决定)
- readfile — 读取已获批文件的内容
- writefile — 写入已获批文件
- listapprovals — 查看所有当前审批
- revokeapproval — 撤销访问权限
- viewaudit_log — 查看访问历史记录
快速开始
bash
git clone https://github.com/suhteevah/claude-local-bridge.git
cd claude-local-bridge
pip install -r requirements.txt
python -m app.main --roots ~/projects
然后将Claude连接到 http://localhost:9120/mcp/sse
安全性
- - 仅限白名单目录的沙盒环境
- 扩展名黑名单(.env、.pem、.key等)
- 路径遍历防护
- Bearer令牌认证
- 每次文件访问均需人工审批
- 完整的审计追踪
远程访问
使用Tailscale(免费)、Cloudflare Tunnel(免费)或NetBird(开源)从手机访问。详见 tunnel.md。