VPN管理协议服务器

StealthSurf MCP Server是一个模型上下文协议服务器,通过自然语言管理VPN配置、云服务器和付费选项,适用于AI代理集成。

  • by StealthSurf-VPN
  • TypeScript
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 StealthSurf-VPN/mcp

使用说明

StealthSurf MCP服务器

MCP(模型上下文协议)服务器 StealthSurf VPN API 允许AI代理(Claude Desktop、Cursor等)管理VPN配置, 通过自然语言提供云服务器、付费选项等。

建筑

瘦无状态代理:MCP工具调用→ 对StealthSurf API的HTTP请求。

MCP Client (Claude Desktop / Cursor)
  │  POST / (Authorization: Bearer stlth_...)
  ▼
StealthSurf MCP Server (this service)
  │  HTTP (Authorization: Bearer stlth_...)
  ▼
StealthSurf API

设置

# Install dependencies
yarn install

# Development
yarn dev

# Production
yarn build && yarn start

环境变量

变量 默认值 描述
STEALTHSURF_API_URL https://api.stealthsurf.space API基本URL
PORT 4500 HTTP服务器端口

MCP客户端配置

克劳德桌面版

添加 ~/.claude/settings.json:

{
  "mcpServers": {
    "stealthsurf": {
      "url": "https://mcp.stealthsurf.space",
      "headers": {
        "Authorization": "Bearer stlth_your_api_key_here"
      }
    }
  }
}

获取API密钥

  1. 转到StealthSurf仪表板→ 个人资料→ API密钥
  2. 创建一个新密钥(随便命名)
  3. 复制 stlth_* 按键(仅显示一次)

资源(4)

引用数据无需API调用即可访问。

URI 描述
stealthsurf://guide 完整的StealthSurf文档
stealthsurf://updates 最新更新和更改日志
stealthsurf://errors API错误代码参考
stealthsurf://protocols VPN协议比较和兼容性矩阵

提示(11)

指导AI代理完成多步骤场景的工作流模板。

提示 描述
setup-vpn 交互式VPN配置创建向导
troubleshoot 逐步诊断连接问题
optimize-for-region 按区域分列的议定书建议
account-overview 完整帐户状态报告
bulk-renew 批量续订过期配置
setup-family 自定义共享订阅
setup-cloud-server 完整的VPS设置向导
switch-protocol 批量协议迁移
setup-bridge 双跳网桥创建
device-audit 设备安全审计
xray-config 自定义XRay配置指南

可用工具(92)

VPN配置(15)

  • configs_list --列出VPN配置
  • configs_create --创建新的VPN配置
  • configs_renew --续订配置订阅
  • configs_get_tariffs --获取可用关税
  • configs_get_available_servers --获取可用服务器
  • configs_get_server_stats --获取服务器统计信息
  • configs_update_settings --更新配置设置
  • configs_update_xray_config --更新自定义XRay配置
  • configs_change_title --更改配置标题
  • configs_toggle_auto_renewal --切换自动续订
  • configs_make_bridge --创建双跳网桥
  • configs_get_subconfig --获取子配置(代理)
  • configs_create_subconfig --创建子配置
  • configs_update_subconfig --更新子配置
  • configs_delete_subconfig --删除子配置

云服务器(17)

  • cloud_servers_list --列出云服务器
  • cloud_servers_create_order --创建服务器订单
  • cloud_servers_renew --续订服务器
  • cloud_servers_reboot --重新启动服务器
  • cloud_servers_get_stats --获取服务器统计信息
  • cloud_servers_toggle_auto_renewal --切换自动续订
  • cloud_configs_list --列出服务器上的配置
  • cloud_configs_create --在服务器上创建配置
  • cloud_configs_change_protocol --更改配置协议
  • cloud_configs_update_xray --更新XRay配置
  • cloud_configs_change_title --更改配置标题
  • cloud_configs_delete --删除配置
  • cloud_proxies_list --列出代理
  • cloud_proxies_create --创建代理
  • cloud_proxies_change_protocol --更改代理协议
  • cloud_proxies_change_title --更改代理标题
  • cloud_proxies_delete --删除代理

付费期权(22)

  • paid_options_list --列出付费选项
  • paid_options_create_order --创建/续订付费选项
  • paid_options_get_tariffs --获取关税
  • paid_options_get_devices --获取设备
  • paid_options_delete_device --删除设备
  • paid_options_delete_all_devices --删除所有设备
  • paid_options_get_subscription --获取订阅信息
  • paid_options_update_limits --更新限制
  • paid_options_update_title --更新标题
  • paid_options_delete_title --重置标题
  • paid_options_get_stats --获取统计数据
  • paid_options_toggle_auto_renewal --切换自动续订
  • paid_option_configs_get_available_servers --获取服务器
  • paid_option_configs_create --创建配置
  • paid_option_configs_get_subconfig --获取子配置
  • paid_option_configs_create_subconfig --创建子配置
  • paid_option_configs_update_subconfig --更新子配置
  • paid_option_configs_delete_subconfig --删除子配置
  • paid_option_configs_update_settings --更新设置
  • paid_option_configs_update_xray --更新XRay
  • paid_option_configs_change_title --更改标题
  • paid_option_configs_get_stats --获取统计数据

个人资料(30)

  • profile_get --获取个人资料信息
  • profile_get_notification_settings --获取通知设置
  • profile_update_notification_settings --更新设置
  • profile_regenerate_subscription_link --重新生成URL
  • profile_get_notifications --获取通知
  • profile_connect_telegram --创建电报代码
  • profile_check_telegram --检查电报连接
  • profile_disconnect_telegram --断开电报
  • devices_list --列出设备
  • devices_get_settings --获取设备设置
  • devices_update_settings --更新设备设置
  • devices_set_blocked --阻止/解锁设备
  • devices_delete --删除设备
  • devices_delete_all --删除所有设备
  • balance_calculate --计算充值价格
  • balance_topup --充值余额
  • referral_get_data --获取推荐数据
  • referral_get_sbp_banks --获取SBP银行列表
  • referral_withdraw_sbp --通过SBP提款
  • referral_withdraw_card --通过卡提款
  • payments_history_list --付款历史记录
  • promocodes_list --购买促销码
  • custom_subscriptions_list --列出订阅
  • custom_subscriptions_get_available_items --获取项目
  • custom_subscriptions_create --创建订阅
  • custom_subscriptions_get --获取订阅
  • custom_subscriptions_update_title --更新标题
  • custom_subscriptions_update_items --更换物品
  • custom_subscriptions_reset_key --重新生成密钥
  • custom_subscriptions_delete --删除订阅

公用事业(2)

  • locations_list --列出服务器位置
  • xray_generate_keys --生成XRay密钥对

码头工人

docker build -t stealthsurf-mcp .
docker run -p 3000:3000 \
  -e STEALTHSURF_API_URL=https://api.stealthsurf.space \
  stealthsurf-mcp