untun-mcp语言识别工具
识别结果:语言类型不明,无法翻译。请提供更明确的词语或句子以进行准确翻译。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"untun": {
"args": [
"-y",
"@minte-app/untun-mcp@latest"
],
"command": "npx"
}
}
}
可用工具 (3 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
start_tunnel
Creates a secure tunnel from a public internet address to your local server. This tool will: - Start an untun tunnel process connecting to your specified local URL - Return a public URL that can be used to access your local server - Allow you to name your tunnel for easier management After starting a tunnel, wait a few seconds and use list_tunnels to check its status and get the public URL.
该工具无需必填参数,直接调用即可
stop_tunnel
Stops a running tunnel or all local tunnels. This tool will: - Stop a specific tunnel identified by name (if provided) - Stop all local tunnels (if no name is provided) - Only affects tunnels running on the current machine - Will not affect tunnels running on other machines After stopping tunnels, you can use list_tunnels to confirm theyve been terminated.
该工具无需必填参数,直接调用即可
list_tunnels
Lists all active tunnels including their status and details. This tool will: - Show all tunnels in the registry - Auto-detect any running tunnels not in the registry - Display tunnel status, name, URLs, and runtime information - Indicate whether tunnels are local or running on remote machines Use this tool to check the status of your tunnels and get their public URLs.
该工具无需必填参数,直接调用即可
服务介绍
Untun MCP - 本地服务器的安全隧道

❌ 没有 Untun MCP
当你需要将本地服务器暴露到互联网时,本地开发可能会变得非常令人沮丧:
- ❌ 复杂的隧道设置和命令行参数
- ❌ 难以跟踪在不同终端会话中运行的隧道
- ❌ 没有简单的方法通过单一界面管理多个隧道
✅ 使用 Untun MCP
Untun MCP 可以直接从你的 AI 助手创建和管理安全隧道:
- 1️⃣ 只需告诉你的 AI 助手创建一个隧道
- 2️⃣ 几秒钟内获得一个公共 URL
- 3️⃣ 通过简单的自然语言命令管理所有隧道
无需记住复杂的 CLI 命令。不再丢失隧道。轻松管理多个隧道。
⚠️ 免责声明
此项目使用了 npm 中的 untun 包,但并非官方与 Cloudflare 或 UnJS 有关联、被其认可或与其连接。这是一个独立的、由社区开发的围绕 untun CLI 工具的 MCP 封装。
🛠️ 开始使用
要求
- Node.js >= v18.0.0
- 支持 MCP 的客户端(Cursor, Claude Desktop, VS Code 等)
untunCLI 工具(按需自动安装)
在 Cursor 中安装
前往:设置 -> Cursor 设置 -> MCP -> 添加新的全局 MCP 服务器
将以下配置粘贴到你的 Cursor ~/.cursor/mcp.json 文件中:
json
{
"mcpServers": {
"untun": {
"command": "npx",
"args": ["-y", "@minte-app/untun-mcp@latest"]
}
}
}
在 VS Code 中安装
将以下内容添加到你的 VS Code MCP 配置文件中:
json
{
"servers": {
"Untun": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@minte-app/untun-mcp@latest"]
}
}
}
在 Claude Desktop 中安装
将以下内容添加到你的 Claude Desktop claude_desktop_config.json 文件中:
json
{
"mcpServers": {
"Untun": {
"command": "npx",
"args": ["-y", "@minte-app/untun-mcp@latest"]
}
}
}
🔨 如何使用
用自然语言让你的 AI 助手创建一个隧道:
为我的 localhost:3000 服务器创建一个隧道
查看正在运行的隧道:
显示我所有的活动隧道
停止特定的隧道:
停止到 localhost:3000 的隧道
可用工具
-
start_tunnel: 从公共互联网地址创建到本地服务器的安全隧道url(必需): 要暴露的本地 URL(例如 http://localhost:3000)name(可选): 隧道的自定义名称
-
stop_tunnel: 停止正在运行的隧道或所有本地隧道name(可选): 要停止的特定隧道的名称
-
list_tunnels: 列出所有活动隧道及其状态和详细信息
故障排除
隧道无法启动
如果您的隧道无法启动,请尝试以下步骤:
- 确保您的本地服务器正在运行
- 检查该端口是否已经有隧道在运行
- 使用
list_tunnels查看所有隧道的状态
远程隧道
隧道是通过主机名进行跟踪的。如果您看到无法停止的“远程”隧道,它们可能是在另一台机器上运行的。您需要从原始机器上停止它们。
开发
克隆项目并安装依赖项:
bash
npm install
构建:
bash
npm run build
许可证
MIT