如何将 Jan AI 连接到 Mac 应用
简而言之: Jan 在 Mac 上本地运行 AI 模型。LMCP 为 Jan 提供 201+ 个本地工具,包括 Mail、Calendar、Messages、Files、Teams 等。
平均 4.7 分(满分 5)· 评分数:39查看全部评价 →
“calander and reminders”
Shawn E.“Sort, clean up inbox. Text people reminders for payments using imessage”
Adi H.“Claude Zugriff auf Mails /Kalender gewähren”
TB
LMCP 如何配置 Jan —— Mac: 自动(安装程序和菜单) — 重启该应用 · Windows: 在应用自己的 MCP 设置中
完全本地的 AI 技术栈
LMCP 在你的设备上执行本地工具。云端 AI 提供商和已连接服务可能会收到所请求的数据;其条款适用。
你可以这样询问 Jan:
- “总结本周未读邮件。”
- “明天日历上有什么安排?”
- “查找 Marco 发送地址的那条 iMessage。”
第 1 步:安装 LMCP
下载应用(macOS 13+,支持 Apple Silicon 和 Intel). 打开下载的 LMCP-Installer.dmg,运行其中的 LMCP Installer;LMCP Installer 会将 LMCP 安装到“应用程序”。然后打开 LMCP。
通过终端安装
curl -fsSL 'https://local-mcp.com/install?ref=guide-jan-ai-mac' | bash第 2 步:将 LMCP 添加到 Jan
重要: Jan 与大多数 MCP 客户端略有不同。它按名称存储每个服务器,因此配置中不能包含 Claude Desktop 和 Cursor 使用的外层 mcpServers 包装。粘贴带包装的片段会产生“Failed to extract command args from config for mcpServers”错误。请使用以下任一选项:
选项 A — 表单 (Settings → MCP Servers → + Add MCP Server):
- Server Name:
local-mcp - Transport Type: STDIO
- Command:
npx - Arguments: 添加两个参数 —
-y和local-mcp@latest
选项 B — JSON (按钮 {···}), 粘贴以下内容;注意没有包装 mcpServers:
{
"local-mcp": {
"command": "npx",
"args": ["-y", "local-mcp@latest"],
"env": { "LMCP_ORIGIN": "manual" }
}
}Jan 使用 npx 启动服务器,因此需要安装 Node.js。
第 3: 启用并试用
保存,然后确保 local-mcp 服务器已启用(Jan 默认禁用新服务器)。状态应变为活动。开始新聊天并询问:
List my email accountsJan 会调用 Mac 上的工具并返回结果。现在,你拥有了可访问真实应用的本地 AI。
故障排除
“Failed to extract command args from config for mcpServers” — 你粘贴了带包装的格式。删除 mcpServers 包装,只粘贴内部对象(上面的选项 B)。
“Invalid package name” / EINVALIDPACKAGENAME — 参数中混入了多余引号。在表单中输入不带引号的 local-mcp@latest。
服务器无法启动 — 确保 LMCP 应用正在运行(菜单栏图标),且 npx 位于 PATH 中(安装 Node.js)。然后在 Jan 中关闭再开启服务器。
评论
评论在发布前需要审核。