Google AI Network Architecture · Egress VPS / Bastion / Proxy MCP 專案選型指南 Google AI Network Architecture · Egress VPS / Bastion / Proxy MCP Projects Guide
Reference: OpenAccess MCP (keepithuman/openaccess-mcp) · Egress Bastion Zero Local VPN · Per-Tool SOCKS5 / HTTP / SSH ProxyJump Routing 精準出口分流:本機保持直連,僅特定 MCP 請求走海外 / 內網 Egress 節點 Granular Egress Routing: No Host VPN, Only Specific MCP Calls Exit via Remote VPS

免掛本機 VPN!讓 AI Agent 透過 MCP / API 動態呼叫 Egress VPS 與 Proxy Server 繞過限制之開源專案全集 No Local VPN Needed: Open-Source MCP & API Projects for Routing AI Agent Traffic via Egress VPS & Bastion Proxies

在日常開發與自動化任務中,若整台電腦掛上全域 VPN(TUN 模式),容易導致本地開發環境變慢、Docker 網段衝突或國內外服務分流異常。最理想的架構是「本機完全不開 VPN,將連線能力封裝為 MCP Tools」——當 Agent 遇到區域限制(Geo-block)、防火牆或企業內網資源時,才按需調用對應的 Proxy MCP / SSH Bastion MCP / Remote Egress MCP,讓該次 HTTP 請求、無頭瀏覽器或 Shell 指令直接從遠端 Egress VPS 出口發起。

Running a system-wide VPN on your primary workstation often breaks local Docker routing and slows down everyday traffic. The optimal 2026 pattern keeps your host machine completely off VPN and exposes on-demand egress routing as MCP tools—allowing your AI Agent to route specific HTTP fetches, stealth browser sessions, or SSH commands through a remote Egress VPS / Bastion / SOCKS5 Proxy only when needed.

💻 1. 本機 Agent 環境 (無全域 VPN)

💻 1. Local Agent Host (Zero Host VPN)

Claude Code、Cursor、OpenCode 或自建 Agent 跑在本地直連網路,日常 API 與 Git 操作完全不受 VPN 干擾。

Claude Code, Cursor, or your custom agent runs on your clean local network with zero system-wide TUN/VPN overhead.

🔌 2. MCP 代理 / 跳板控制層

🔌 2. MCP Proxy / Bastion Control Layer

Agent 遇到受限目標時,呼叫 proxy-mcp(上游代理鏈)、ssh-mcp(ProxyJump)或透過 Tailscale 連向遠端 MCP。

When hitting geo-blocked or firewalled targets, the agent invokes proxy-mcp, ssh-mcp, or a remote Streamable-HTTP MCP.

🌐 3. 遠端 Egress VPS / Bastion 出口

🌐 3. Remote Egress VPS / Bastion Exit

位於目標區域(如美國/日本/歐洲)或內網邊界的 VPS,透過 SOCKS5、HTTP Proxy 或原生出口 IP 代為完成連線並回傳結果。

An overseas or VPC-peered VPS executes the HTTP request, headless browser, or shell command from its clean egress IP.

🏆 最強上游代理鏈 + 隱身瀏覽器 MCP 🏆 Best Upstream Proxy Chaining + Stealth Browser
yfe404/proxy-mcp
72 個 MCP 工具!支援動態切換 SOCKS5/HTTP Geo Proxy、單一網域分流與 CloakBrowser 抗指紋 72 MCP tools! Dynamic SOCKS5/HTTP upstream chaining, per-host routing & stealth Chromium
🛡️ 最貼近 OpenAccess MCP 跳板機管理 🛡️ Closest to OpenAccess MCP (Bastion + SOCKS5)
ssh-mcp-server
NikolaNddTesla · 原生支援 SSH jump_host 跳板機、per-connection SOCKS5 代理與遠端指令執行 NikolaNddTesla · Native SSH jump_host bastion, per-connection SOCKS5 & remote execution
⛓️ 遠端 Proxychains4 動態代理鏈 MCP ⛓️ Remote Proxychains4 Dynamic Routing MCP
sec-proxychains-mcp
schwarztim · 透過 SSH 操控遠端 Linux VPS 的 proxychains4,支援多節點串接與防 DNS 洩漏 schwarztim · Controls proxychains4 on a remote Linux VPS over SSH with proxy_dns
🚀 遠端 Egress VPS 直接託管 MCP 橋接 🚀 Remote Egress VPS MCP Bridge Pattern
sparfenyuk/mcp-proxy
直接把 mcp-server-fetch 跑在海外 VPS 上並轉為 Streamable HTTP,本機連上即自動走該 VPS 出口 Host mcp-server-fetch directly on your overseas VPS via Streamable HTTP—zero proxy config
01

與 OpenAccess MCP / Egress Bastion 類似之 GitHub 開源專案總表 (Top 8 Projects) Master Comparison: GitHub MCP & Proxy Projects Similar to OpenAccess MCP / Egress Bastion

GitHub 專案名稱 GitHub Repository 架構類型 Architecture Type 支援協定與代理機制 Protocols & Proxy Routing 核心能力與解決痛點 Core Capabilities & Best Use Case
yfe404/proxy-mcp
★ 首推:動態上游代理與抗指紋抓取
Explicit MITM Proxy + Upstream Chaining MCP socks4://, socks5://, http://, https://, pac+http://
專為 AI 設計的代理中樞(72 Tools):Agent 可隨時呼叫 proxy_set_upstream 將出口切換至指定國家的 SOCKS5/HTTP VPS,或用 proxy_set_host_upstream 僅針對特定網域走代理,內建 CloakBrowser 抗指紋瀏覽器與 JA3/JA4 TLS 偽裝。
Purpose-built proxy hub (72 tools): lets agents dynamically call proxy_set_upstream for geo-proxies or proxy_set_host_upstream for domain-specific routing, paired with stealth Chromium and TLS spoofing.
NikolaNddTesla/ssh-mcp-server
★ 首推:SSH Bastion 跳板 + SOCKS5
Multi-Server SSH Bastion & Proxy MCP SSH ProxyJump (Bastion), SOCKS4/5 Proxy, SFTP
完美契合「Bastion 跳板機」需求:支援在 MCP 中註冊多台 VPS 與 SOCKS5 隧道(add_proxy),並透過 jump_host 參數經由跳板機連入受防火牆保護的內網或海外節點執行 curl / 腳本。
Ideal for bastion topologies: register multiple VPS nodes and SOCKS5 tunnels (add_proxy), and chain connections through a jump_host bastion to run commands or fetches inside restricted networks.
schwarztim/sec-proxychains-mcp
遠端 Proxychains4 動態鏈
Remote Linux proxychains4 Orchestrator SSH + proxychains4 (SOCKS4 / SOCKS5 / HTTP / proxy_dns)
透過 SSH 連上裝有 proxychains4 的遠端 Linux VPS,讓 Agent 用 proxychains_add 動態組裝多層代理鏈(支援 Tor 或自建 SOCKS5 節點)並開啟 proxy_dns 防止本機 DNS 洩漏。
Connects over SSH to a remote Linux host running proxychains4, allowing agents to dynamically build multi-hop SOCKS5/HTTP chains with proxy_dns leak protection.
sparfenyuk/mcp-proxy
★ 首推:遠端 VPS 託管 MCP 出口
stdio ⇄ Streamable HTTP / SSE Bridge Streamable HTTP, SSE, stdio
最乾淨的「零本機代理」架構:直接把 mcp-proxy 與 mcp-server-fetch(或 Playwright MCP)部署在海外 Egress VPS 上,本機 Agent 透過 HTTP/Tailscale 呼叫該遠端 MCP,所有網頁請求天然從該 VPS IP 發出。
Cleanest zero-proxy-config pattern: Run mcp-proxy + mcp-server-fetch directly on your overseas Egress VPS; your local agent calls it over Streamable HTTP so every request naturally exits from the VPS IP.
keepithuman/openaccess-mcp
基準參考:零信任策略審計存取
Zero-Trust Policy-Driven Remote Access MCP Policy-Gated Remote Execution & Audit Trails
您提到的參考原型:為 AI Assistant 提供受安全策略(Policy)約束的遠端系統存取能力,並保留完整的稽核軌跡(Audit Trails),避免將無限制的 Shell 權限直接暴露給模型。
Your reference baseline: provides AI assistants with policy-driven remote system access, zero-trust guardrails, and comprehensive audit trails.
YawLabs/ssh-mcp
原生讀取 ~/.ssh/config ProxyJump
SSH Config & Chained Bastion MCP OpenSSH ProxyJump, Chained Proxies, Windows Pipe
完全尊重本機 ~/.ssh/config 中的 ProxyJump bastion 與多層跳板設定,支援指令白名單/黑名單,且在連線或隧道斷開時內建自動診斷修復建議。
Natively honors ProxyJump bastion and chained proxies in ~/.ssh/config, supports command allow/blocklists, and includes built-in connection auto-diagnostics.
rayss868/MCP-Web-Curl
單次 HTTP / 爬蟲指定 Proxy Per-Session Proxy Web/API Fetch
REST API + Puppeteer Web Curl MCP HTTP / HTTPS Proxy (browser_configure)
輕量級 fetch_api 與 Puppeteer 網頁抓取 MCP,支援在工具參數中直接傳入 proxy: "http://proxy.example.com:8080",適合純粹需要跨區抓網頁或打 REST API 的場景。
Lightweight fetch_api and Puppeteer scraping MCP that accepts proxy: "http://..." directly via tool configuration for geo-unblocked web and API requests.
classfang/ssh-mcp-server
HTTP CONNECT 隧道過防火牆
SSH over HTTP/HTTPS CONNECT Proxy MCP HTTP/HTTPS CONNECT Tunnel + Basic Auth
專為受嚴格企業防火牆限制(僅開放 HTTP/HTTPS 出口)的環境設計,透過 CONNECT 方法建立通往遠端 Bastion SSH 主機的加密隧道。
Designed for restrictive corporate firewalls: tunnels SSH sessions to a remote bastion host over standard HTTP/HTTPS CONNECT proxies with Basic authentication.
02

三大實戰架構與快速部署指令:本機免 VPN 實現按需跨區 / 跳板連線 Top 3 Implementation Blueprints: Zero-VPN On-Demand Egress Routing

架構 A(最推薦・零代理設定):在 Egress VPS 直接跑 MCP sparfenyuk/mcp-proxy

運作原理:與其在本機折騰 SOCKS5 或 TUN 虛擬網卡,不如直接在您租的海外 Egress VPS(例如美國、日本或新加坡節點)上運行 mcp-server-fetch(或 Playwright / Brave Search MCP),並用 sparfenyuk/mcp-proxy 將其轉為 Streamable HTTP / SSE 端點(建議透過 Tailscale 內網或反向代理加上 Bearer Token 保護)。

How it works: Instead of configuring local SOCKS5 proxies, run mcp-server-fetch (or Playwright MCP) directly inside your overseas Egress VPS and expose it via sparfenyuk/mcp-proxy over Streamable HTTP (secured via Tailscale or Bearer auth).

  • 優點 1:本機完全不需掛 VPN,也不會發生 DNS 洩漏,所有透過 egress-fetch 工具發出的請求,來源 IP 100% 就是該台 VPS。Advantage 1: Zero local VPN or DNS leak risk; every call to egress-fetch originates directly from the VPS IP.
  • 優點 2:可同時掛載多台不同國家的 VPS(例如 us-fetch、jp-fetch),讓 Agent 根據目標網站自動挑選出口國家!Advantage 2: Mount multiple regional endpoints (e.g., us-fetch, jp-fetch) so your agent picks the right exit country per task.
# [在海外 Egress VPS 上執行] 安裝並啟動遠端 Fetch MCP Server
uv tool install mcp-proxy
mcp-proxy --host 0.0.0.0 --port 8932 \
  --named-server fetch "uvx mcp-server-fetch"

# [在本機 Claude Code / Cursor 設定] 透過 Tailscale IP 直接連線 (免 VPN)
# URL: http://<Egress-VPS-Tailscale-IP>:8932/servers/fetch/mcp
架構 B(動態切換出口 + 抗封鎖):本地顯式代理鏈 MCP yfe404/proxy-mcp

運作原理:若您手邊已經有現成的 SOCKS5 / HTTP 代理池(或 SSH ssh -D 1080 動態轉發),在本地掛載 yfe404/proxy-mcp。它不會影響系統全域網路,而是讓 Agent 在需要時呼叫 proxy_set_upstream 綁定上游代理,並啟動內建的抗指紋 Chromium 瀏覽器或帶代理環境變數的 Subprocess。

How it works: If you already have SOCKS5/HTTP proxies or an SSH dynamic tunnel (ssh -D 1080), mount yfe404/proxy-mcp locally. Your OS network stays untouched while the agent routes specific domains or stealth browser sessions through upstream proxies.

  • 精準分流:支援 proxy_set_host_upstream,可指定只有訪問 *.target-site.com 時才走海外代理,其餘網站維持本地直連。Per-host routing: Use proxy_set_host_upstream to route only specific target domains through the proxy while keeping everything else direct.
  • 突破 Cloudflare / WAF:內建 CloakBrowser 與 JA3/JA4 TLS 指紋偽裝,解決一般 VPS IP 容易被目標網站擋爬蟲的問題。Anti-bot resilience: Ships with CloakBrowser and JA3/JA4 TLS fingerprint spoofing to bypass strict WAF blocks.
# 安裝 proxy-mcp 至 Claude Code
claude mcp add proxy-mcp -- npx -y "github:yfe404/proxy-mcp#semver:^3"

# Agent 執行時動態呼叫工具切換出口:
# 1. proxy_start
# 2. proxy_set_upstream --proxy_url "socks5://user:[email protected]:1080"
# 3. interceptor_browser_launch --url "https://geo-restricted-site.com"
03

互動式選型決策器:根據您的網路封鎖與跳板需求挑選最佳方案 Interactive Decision Helper: Match Your Exact Egress & Bastion Scenario

點擊下方符合您使用場景的標籤,檢視推薦專案與安全設定建議: Click a scenario filter below to view the recommended project and security setup:

場景 1:只要特定網頁抓取或 API 請求走海外 IP(免開全域 VPN) Scenario 1: Route Only Specific Web Fetches or API Calls via Overseas IP

最佳組合:sparfenyuk/mcp-proxy(部署於海外 VPS)或 yfe404/proxy-mcp(搭配 SOCKS5 代理)
若您需要簡單穩定的純 API / 網頁讀取,直接在海外 VPS 跑 mcp-proxy 橋接官方 mcp-server-fetch 是最輕量、零本機依賴的解法;若目標網站有嚴格的反爬蟲或 TLS 指紋檢測,則改用本機的 yfe404/proxy-mcp 串接您的海外 SOCKS5 節點並啟動 CloakBrowser。

Best Stack: sparfenyuk/mcp-proxy (hosted on overseas VPS) or yfe404/proxy-mcp
For clean HTTP/API requests, hosting mcp-proxy + mcp-server-fetch on an overseas VPS requires zero local proxy configuration. If target sites enforce strict bot/TLS fingerprinting, use yfe404/proxy-mcp chained to an upstream SOCKS5 proxy.

場景 2:需要透過 Bastion 跳板機連入受防火牆保護的內網伺服器執行指令 Scenario 2: Reach Firewalled Internal Servers via an SSH Bastion Jump Host

最佳組合:NikolaNddTesla/ssh-mcp-server 或 YawLabs/ssh-mcp
這兩者都原生支援 SSH ProxyJump(多層跳板機)與 SOCKS5 代理隧道。您可以將跳板機配置寫入 ~/.ssh/config(例如 Host internal-db / ProxyJump bastion),Agent 呼叫工具時就會自動經由 Bastion 穿透防火牆,無需在本機開啟企業 VPN。

Best Stack: NikolaNddTesla/ssh-mcp-server or YawLabs/ssh-mcp
Both natively support SSH ProxyJump bastion chaining and SOCKS5 tunnels. Define your bastion route in ~/.ssh/config and your agent can execute commands inside firewalled subnets without a host-wide VPN client.

場景 3:防止 Agent 亂下指令或洩漏金鑰——零信任權限隔離(OpenAccess MCP 模式) Scenario 3: Prevent Rogue Commands & Credential Leaks (Zero-Trust Policy Isolation)

最佳組合:keepithuman/openaccess-mcp 或 haos666/hostharbor(搭配 Tailscale ACL)
當給予 Agent 遠端 Egress VPS 或 Bastion 存取權時,切忌直接把 root 私鑰交給 LLM。建議採用具備憑證隔離(Credential Vaulting)、指令白名單(Command Allowlist)與人工審批(Approval Gate)的工具(如 HostHarbor 的 scoped token 機制),並搭配 Tailscale ACL 限制該 Egress VPS 僅能存取特定目標網段。

Best Stack: keepithuman/openaccess-mcp or haos666/hostharbor + Tailscale ACLs
Never hand raw root SSH keys directly to an LLM. Use tools with scoped bearer tokens, command allowlists, and human-in-the-loop approval gates, and lock down outbound firewall rules on the Egress VPS.