LocalCanApp 标志

LocalCanApp

组织
LocalCan

The ngrok alternative for Mac, Windows & Linux. Public URLs (tunnels), .local domains, automatic HTTPS, traffic inspector, MCP server for AI agents. Free plan.

发布者LocalCan
代码仓库LocalCanApp
复刻数
1
星标数
82
可用工具
0
传输类型stdio
链接
  • 将工具接入 AI 工作流

    LocalCanApp 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 82 个 Star 和 1 个 Fork。

LocalCan puts your local app on the internet with a Public URL (also known as a tunnel) and on your local network with a .local domain, both over HTTPS. For 3.0, LocalCan was rewritten from the ground up: the engine is now a Go daemon behind a multi-region edge network. The desktop app on macOS and Windows, the CLI on all three platforms, and the MCP server for AI agents all drive that same engine and share the same YAML config.

Features

  • Public URLs: share localhost at an address like https://my-app.localcan.dev. Pause and resume them. A paused URL stays reserved for up to 7 days.
  • Custom domains: run Public URLs on a domain you own, with the SSL certificate lifecycle handled for you. Custom domains never expire.
  • TCP tunnels for databases, SSH, and other non-HTTP services.
  • .local domains: reach a local app at https://my-app.local instead of localhost:3000, advertised to your network over mDNS (Bonjour). Wildcard subdomains like *.my-app.local work, and so do WebSockets, so hot reload in Vite and Next.js keeps working.
  • Automatic HTTPS: a local root CA signs your .local domains (trust it once, and you can install it on an iPhone or a simulator too), and Public URLs are always HTTPS.
  • Traffic inspector: watch requests flow through your domains and Public URLs, replay them, and copy any exchange as cURL, HAR, HTTP, JSON, or Markdown for AI.
  • Snapshots: publish a static copy of your app that stays online at the same Public URL while your machine is off.
  • Access control: protect a Public URL with a password page, a secret link, or IP and user-agent rules, enforced on LocalCan's servers so protection keeps working while your machine sleeps.
  • MCP server: AI agents can inspect captured traffic, manage Public URLs, publish Snapshots, and password-protect what you share.
  • CLI and YAML config: everything above is scriptable, with --json output for piping into jq or CI.

Install

macOS: download the .dmg from localcan.com/download. The daemon is bundled inside the app, and on first launch it offers to install the localcan command line tools.

Windows: download the .exe installer from localcan.com/download. Install Bonjour Print Services so .local domains resolve (see the installation notes).

Linux (CLI only):

sh
curl -fsSL https://localcan.com/install.sh | sh

Linux has no desktop UI, and .local domains are not advertised over mDNS there. The installation notes cover the differences.

Coming from LocalCan 2.x? Version 3.0 installs side-by-side with 2.x and asks on first launch what to bring over. See the installation notes.

Quick start with the CLI

Every plan, including Free, issues a license key. Activate it, then point a Public URL at your local app:

sh
localcan license activate localcan_xxxxxxxxxxxxx
localcan http 3000
plaintext
Connecting tunnel to http://localhost:3000...
Forwarding https://swift-falcon.local → localhost:3000
Forwarding http://swift-falcon.local → localhost:3000
Forwarding https://swift-falcon-12.localcan.dev → localhost:3000

Requests (Ctrl+C to stop):

15:04:21    GET 200  /
15:04:21    GET 200  /_next/static/css/app.css

On the Free plan the Public URL lives on the trylocalcan.com domain and rotates each session. Paid plans get a reserved *.localcan.dev address like the one above.

Without any license, localcan http 3000 still works out of the box and publishes a .local URL for your local network. Public URLs and TCP tunnels need an activated key.

Prefer a UI? Follow the Quick start with the desktop app instead.

Configure with YAML

Everything LocalCan persists lives in ~/.localcan/. One YAML file per project, editable by hand, shared by the desktop app and the CLI:

yaml
# ~/.localcan/projects/my-app.yml
name: My App
icon: 🚀

services:
  web:
    target: http://localhost:3000
    endpoints:
      - provider: localcan   # Public URL, leave url empty to auto-assign one
      - url: my-app.local    # local domain for your network

Run localcan reload to apply hand edits. The assigned Public URL is written back to the file, so the config stays the source of truth. Endpoints can also declare header rewrites, basic auth, Snapshots, and Access control. See the configuration docs.

AI agents

LocalCan ships an MCP server, so an AI agent can debug webhooks and share your work for you:

sh
claude mcp add --scope user localcan -- localcan mcp

The server works with Claude Code, Codex, Cursor, Claude Desktop, VS Code, Zed, and any other MCP host. Then ask things like:

  • "A webhook just failed in LocalCan. Find it and explain why."
  • "Expose port 3000 publicly and give me the URL."
  • "Password-protect that preview and give me the password to send."

The defaults are safe: sensitive headers (Authorization, cookies, API keys) are redacted from agent responses, and write tools stay off until you enable them with localcan mcp access read_write. See the AI agents docs.

Plans

The Free plan includes one live Public URL at a time with 60-minute sessions and 1 GB of traffic per month, plus unlimited .local domains, automatic HTTPS, the traffic inspector, and the MCP server. No credit card is required. Sign up free.

Paid plans add Public URLs on *.localcan.dev that stay reserved between sessions, custom domains, TCP tunnels, Snapshots, and Access control. They start with a 14-day free trial. Teams adds team Access policies plus SSO and SCIM. See pricing.

Community and support

LocalCan is a closed-source commercial product. This repository is its public home for issues, discussions, and community. Downloads live at localcan.com/download.

将 LocalCanApp MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 LocalCanApp 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 LocalCanApp 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 LocalCanApp MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "localcanapp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 LocalCanApp MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 LocalCanApp MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 LocalCanApp 帮我完成这项任务吗?
LocalCanApp
当然。我已阅读。
以下是我使用 LocalCanApp 得到的结果。

常见问题

LocalCanApp MCP 服务器有什么用途?

LocalCanApp 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 LocalCanApp MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 LocalCanApp,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 LocalCanApp MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 LocalCanApp 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 LocalCanApp MCP 连接到 TypingMind?

LocalCanApp 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

LocalCanApp MCP 在 TypingMind 中提供哪些工具?

LocalCanApp 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 LocalCanApp MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 LocalCanApp 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇