🎁 限时福利:注册立领 1GB 全球动态流量(7天有效)免费获取

Model Context Protocol (MCP) 指南

MCP 服务器 + 住宅代理:为 Claude 与 Agent 开启安全的公网操作边界

开发能够代表大语言模型访问公网接口或抓取网页的 MCP 服务器时,把出站流量统一经由 65M+ residential IPs 住宅池转发,确保 99.9% 稳定响应且不触发屏蔽。

为 Node.js / Python MCP 服务器注入代理路由

在自定义 MCP 工具的 Http Client 内部绑定自动轮换代理实例。

example.py
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import axios from "axios";
import { HttpsProxyAgent } from "https-proxy-agent";

// 为所有 MCP 外部请求创建住宅代理客户端代理
const httpsAgent = new HttpsProxyAgent("http://user-youraccount-rotate:password@proxy.bytesflows.com:31112");

async function handleWebFetchTool(url: string) {
  const response = await axios.get(url, { httpsAgent, timeout: 10000 });
  return {
    content: [{ type: "text", text: JSON.stringify(response.data) }]
  };
}
console.log("MCP 服务器公网请求工具已挂载住宅物理代理出口。");

用企业级海外住宅 IP 守护您的 MCP 工具生态

注册即送 1 GB 流量验证性能,单价阶梯透明公开。