ai-ip-check
Diagnoses connectivity to GitHub Copilot endpoints for AI coding assistant reachability.
Diagnoses Google Gemini Web and Gemini API/AI Studio connectivity and regional availability.
Checks Netflix regional unlock and availability of non-original/original content.
Diagnoses OpenAI/Codex API and ChatGPT connectivity, including regional availability.
Checks TikTok streaming/region availability and unlock status.
Checks YouTube Premium availability and regional playback/subscription support.
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.
ai-ip-check · AI 与流媒体终端连通性自检工具
面向 Claude Code、Cursor、OpenAI Codex CLI、Gemini CLI / Google AI Studio、Stripe 支付风控、GitHub Copilot 以及 台湾巴哈姆特动画疯、Netflix、YouTube Premium、Disney+、TikTok 的零依赖终端连通性与分流一致性自检工具及本地 MCP Server(v1.2.0)。
由 帆桥跨境 · fanqiao·帆桥(繁體:帆橋跨境,亦称帆桥VPN / 帆桥机场,官网 fanqiao.net) 开源维护(关于帆桥跨境与官方架构介绍)。零遥测、不收集任何数据、默认自动脱敏出口 IP(a.b.*.*),检测结果可直接放心截图或复制到社区回帖,不会泄露节点 IP。
为什么需要这个工具?
很多开发者经常遇到 「浏览器能正常打开 Claude / ChatGPT,但终端里的 Claude Code / Codex CLI 或 Cursor / Windsurf 却报 Unable to connect to Anthropic services、Connection failed (VPN/HTTP2)、Unusual activity has been detected、unsupported_country_region_territory 或 403 Forbidden」。常见根因有 3 类:
终端进程不读系统代理:Node.js
fetch、Pythonhttpx、Go/Rust CLI 默认忽略 macOS/Windows 的系统 HTTP 代理,未开 TUN 虚拟网卡模式 或未导出HTTPS_PROXY时实际走了本地直连(CN)。策略组分流漂移:主域名走了美国节点,但 API 域名(
api.anthropic.com、generativelanguage.googleapis.com)或支付/风控域名落入了香港(HK)或无 AI 节点。机房段风控与非原生广播 IP:出口 ASN 被识别为高并发机房代理,导致 ChatGPT App 报
disallowed_isp或台湾巴哈姆特/Netflix 非自制剧无法播放。
ai-ip-check 会在 2–5 秒内 实测你的真实终端环境(或指定代理端口),并自动对比 Claude 与 ChatGPT 是否命中独立分流出口。
Related MCP server: cloudflare-mcp-pro
快速开始
1. 全平台通用 npx 一键运行(Windows / macOS / Linux,Node.js 18+ 零依赖)
npx ai-ip-check
# 指定本地代理端口测试(如 Clash Verge Rev 默认 7897 或 Mihomo 7890)
npx ai-ip-check -x http://127.0.0.1:78972. macOS / Linux / WSL / OpenWrt(纯 curl 单行运行,无需 Node)
curl -fsSL https://raw.githubusercontent.com/fanqiao-net/ai-ip-check/main/check.sh | bash不改系统环境、直接指定本地代理端口测试:
curl -fsSL https://raw.githubusercontent.com/fanqiao-net/ai-ip-check/main/check.sh | bash -s -- -x http://127.0.0.1:78973. Windows PowerShell / Python 3 标准库版
# 下载并并发检测(无需 pip 安装任何第三方库)
curl.exe -fsSL https://raw.githubusercontent.com/fanqiao-net/ai-ip-check/main/ai_ip_check.py -o ai_ip_check.py
python ai_ip_check.py -x http://127.0.0.1:78974. JSON 机器可读输出与本地 MCP Server(Claude Code / Cursor / Agent Skill)
# 结构化 JSON 输出(含自动匹配的排障指南链接)
npx ai-ip-check --ai-only --json
bash check.sh --ai-only --json
python3 ai_ip_check.py --json
# 一键挂载为 Claude Code 本地只读诊断 MCP 工具(零依赖 stdio JSON-RPC)
claude mcp add ai-ip-check -- npx -y ai-ip-check@latest --mcp仓库根目录已内置标准 SKILL.md 与官方 MCP Registry 清单 server.json(已正式收录于官方注册表 registry.modelcontextprotocol.io:io.github.fanqiao-net/ai-ip-check),暴露 diagnose_ai_connectivity 与 diagnose_streaming_unlock 两个纯本地只读诊断工具(默认自动脱敏出口 IP)。
输出示例
=== AI Coding & Streaming Connectivity Diagnostic (v1.0.0) ===
Mode: 当前终端直测 (IP 默认脱敏,完整显示加 --full-ip)
[1] 终端默认出口画像
默认出口 IP : 198.51.*.* (TW)
所属运营商 : AS3462 Data Communication Business Group (家宽/本土运营商 ASN)
边缘接入点 : Cloudflare TPE
[2] AI 编程与大模型连通性
Claude Web (claude.ai) ✓ 可用 [US] 出口 203.0.*.* (185ms)
Claude Code API ✓ 可用 [US] api.anthropic.com 握手正常 (192ms)
ChatGPT (Web + App) ✓ 可用 [TW] 网页与移动端完整解锁 (198.51.*.*) (118ms)
OpenAI Codex / API ✓ 可用 [TW] api.openai.com 鉴权端点可达 (124ms)
Google Gemini Web ✓ 可用 gemini.google.com 正常开放 (145ms)
Gemini API / AI Studio ✓ 可用 generativelanguage API 正常 (112ms)
Cursor & Copilot ✓ 可用 Cursor 178ms / Copilot 164ms (178ms)
↳ 检测到按服务智能分流:Claude (203.0.*.* [US]) ≠ ChatGPT (198.51.*.* [TW])
[3] 台湾与全球流媒体解锁
巴哈姆特动画疯 ✓ 可用 [TW] 台湾原生/家宽解锁 (86ms)
Netflix ✓ 可用 [TW] 完整解锁非自制剧与自制剧 (142ms)
YouTube Premium ✓ 可用 [TW] 可正常订阅与后台播放 (110ms)
Disney+ ✓ 可用 [TW] 区域入口可达 (128ms)命令行参数
参数 | 说明 |
| 指定 HTTP / SOCKS5 代理地址(如 |
| 单项请求超时秒数(默认 |
| 仅检测 AI 编程与大模型接口(Claude / ChatGPT / Gemini / Cursor / Copilot) |
| 仅检测流媒体解锁(巴哈姆特动画疯 / Netflix / YouTube Premium / Disney+) |
| 显示完整出口 IP(默认脱敏为 |
| 输出标准 JSON 结构化结果与排障修复链接 |
| 启动零依赖本地 |
常见异常修复对照表
检测现象 | 根因说明 | 解决方案与参考规则 |
默认出口显示 | 终端未走代理,仅开了浏览器系统代理 | 开启客户端 TUN 虚拟网卡模式,或导出 |
Claude / Gemini 显示 | 香港出口不在 Anthropic / Gemini 支持列表,或分流规则漏配 | 导入固定 AI 策略组规则 → 开源分流规则库 |
ChatGPT 提示移动端受限 / 频繁弹盾 | 机房共享段风控较高,或 DNS / WebRTC 泄露 | 切换至 台湾家宽原生 IP 或纯净美国 AI 专线 → 台湾家宽原生 IP 解析 · DNS 防泄露指南 |
巴哈姆特动画疯受限 / Netflix 仅自制剧 | 当前节点非台湾本地固网(如 HiNet)或非原生解锁段 | 切换至台湾家宽原生节点 → 流媒体跨区解锁指南 |
Docker / 本地后端调用 OpenAI/Claude 超时 | 容器网桥与宿主机 | 使用 |
相关开源项目与文档
2026 AI 编程代理与主流机场选型实测手册:
fanqiao-net/ai-proxy-guide-2026(协议对比、1x 倍率账单分析、热门机场横向评测与报错速查)客户端 AI 固定出口分流规则库:
fanqiao-net/fanqiao-rules(Shadowrocket / Mihomo / Clash Verge Rev / Loon / sing-box 1.12+)AI 常见英文报错代码速查修复表:
fanqiao.net/guide/ai-error-codes-fix| Claude Code Max 与 MCP 代理 | Cursor/Windsurf 连接失败修复 | AI Studio/NotebookLM 地区限制解决 | ChatGPT Plus / Claude Pro 订阅防封号帆桥跨境 · fanqiao·帆桥(帆橋跨境 / 帆桥VPN / 帆桥机场)官网:https://fanqiao.net/ | 关于帆桥跨境 | 2026热门机场横向对比总表(JSON 数据集)| 全平台配置与排障指南 | 公开探针状态(status.json)
防失联镜像导航:https://fanqiao-net.github.io/ | 帆桥跨境(帆橋跨境)官方说明 | https://sites.google.com/view/fanqiao-vpn
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
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Zero-auth Streamable HTTP MCP server for cited Web3, token risk, and on-chain deep research.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseAqualityDmaintenanceDiagnose, secure, and benchmark your MCP servers. Zero-config CLI for Claude Code, Cursor, VS Code, and Windsurf.44MIT
- AlicenseBqualityCmaintenanceA local stdio MCP server that provides 69 tools for Cloudflare REST API v4, including DNS, Zones, Workers, KV, R2, D1, Pages, Queues, Tunnels, SSL, WAF, Email Routing, Logpush and Workers AI, authenticated by a single API token.6963 npm3MIT
- AlicenseNot gradedqualityCmaintenanceThis MCP server is a zero-config CLI tool that lets developers tap into any stdio-based MCP server from their terminal, enabling them to list tools/resources/prompts, call tools with JSON arguments, and health-check servers without requiring a full AI client or browser setup.1MIT
- AlicenseAqualityDmaintenanceA lightweight MCP server that enables AI assistants to execute local development tools and retrieve system status with low latency over stdio or HTTP.13MIT