SIN Mac Gateway
Enables remote MCP clients to securely access a trusted macOS machine's local file system and command execution tools (mcp-combiner) via OAuth-authenticated HTTPS through Cloudflare Tunnel, without opening router ports.
README
SIN Mac Gateway
Provider-neutral, authenticated Remote MCP gateway for a trusted macOS machine.
SIN Mac Gateway exposes the existing local mcp-combiner tool contract over the official MCP Python SDK's Streamable HTTP transport. The local backend remains the source of fs__* and cmd__*; this repository owns remote transport, OAuth, service lifecycle, audit/redaction safeguards, and deployment documentation.
Architecture
Claude.ai / remote MCP client
|
| HTTPS + OAuth 2.1 / PKCE
v
Cloudflare Tunnel (outbound from Mac)
|
v
127.0.0.1:8765 SIN Mac Gateway
|
| stdio MCP
v
mcp-combiner
| |
fs__* cmd__*
No router port is opened. The gateway itself binds to loopback; Cloudflare Tunnel is the public edge.
Current capabilities
- Official
mcp==2.0.0Streamable HTTP transport, including current protocol negotiation. - OAuth Authorization Code flow with S256 PKCE.
- Persistent access/refresh tokens and revocation through a private SQLite store.
- Claude callback allowlist for
claude.aiandclaude.com. - 401 Protected Resource Metadata discovery for unauthenticated MCP requests.
- Existing
mcp-combinercompatibility:fs__*andcmd__*stay unchanged. - Loopback
/healthzand/readyzendpoints. - launchd
RunAtLoad+KeepAliveservice. - Privacy-safe audit log (tool/outcome/duration; arguments and outputs are not logged).
- High-confidence command-output secret redaction and a small defense-in-depth sensitive-path/Keychain guard.
cmd__run_process is still intentionally powerful user-level shell access. The guard is defense in depth, not an OS sandbox.
Install on macOS
Prerequisite: the existing wow-my-zsh mcp-combiner runtime must be installed.
bash scripts/install-macos.sh \
--public-base-url https://sin-mac-gateway.example.com \
--fs-root "$HOME"
This creates private runtime/config state under ~/.config/sin-mac-gateway and ~/.local/state/sin-mac-gateway, installs a dedicated virtualenv under ~/.local/share/sin-mac-gateway, and loads com.sin.mac-gateway.
Local verification:
curl -fsS http://127.0.0.1:8765/healthz
curl -fsS http://127.0.0.1:8765/readyz
Claude.ai connector
Claude custom connectors connect from Anthropic infrastructure, so the MCP URL must be public HTTPS. Configure Claude with:
- Name:
SIN Mac Gateway - URL:
https://<hostname>/mcp - OAuth Client ID: shown by
sin-mac-gateway-credentials - OAuth Client Secret: run
sin-mac-gateway-credentials --copy-secretand paste from the macOS clipboard
The secret command never prints the secret to stdout.
Development
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest -q
Security
Runtime credentials, Cloudflare tunnel credentials, OAuth tokens, audit logs, and machine-specific config are never committed. See docs/SECURITY.md and docs/OPERATIONS.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。