LMCP 入门 — 5 分钟内完成首次工具调用

安装 LMCP 并在 5 分钟内完成首次工具调用。将 Claude Desktop 或 Cursor 连接到 Mail、Calendar 以及你的 Mac 应用。无需 API 密钥,无需云端。

L
LMCP··5 min read

完成所需时间:约 5 分钟
系统要求:macOS 13 或更高版本(Apple Silicon 或 Intel)、Claude Desktop 或 Cursor


第 1 步 — 安装 LMCP

下载 LMCP 并安装它:

  1. 从下载文件夹中打开下载好的 .dmg 文件
  2. Local MCP 拖到你的“应用程序”文件夹
  3. 从“应用程序”文件夹中打开 Local MCP — 它会出现在你的菜单栏中

大约需要 30 秒。你的 AI 客户端会被自动配置。

安装程序将会:

  • 下载 LMCP 守护进程
  • 自动更新你的 Claude Desktop 配置(如果已安装 Claude Desktop)
  • 启动 LMCP 后台服务

在你 Mac 上运行的内容:LMCP 是一个本地进程。在设置或运行期间不会有任何数据被发送到云端。


第 2 步 — 连接你的 AI 客户端

Claude Desktop(推荐给大多数用户)

安装程序会自动将 LMCP 添加到你的 Claude Desktop 配置中。你只需要 重启 Claude Desktop 即可让更改生效。

  1. 完全退出 Claude Desktop(Cmd+Q,或右键点击程序坞图标 → 退出)
  2. 重新打开 Claude Desktop
  3. 开始一个新的对话

就是这样。无需手动编辑配置。

手动配置(如果自动设置没有运行)

用文本编辑器打开 ~/Library/Application Support/Claude/claude_desktop_config.json 并添加:

{
  "mcpServers": {
    "local-mcp": {
      "command": "npx",
      "args": ["-y", "local-mcp@latest", "stdio"]
    }
  }
}

然后重启 Claude Desktop。

Cursor

Cursor 需要 Agent mode 才能使用 MCP 工具。标准的 Chat mode 不会显示这些工具。

  1. 打开 Cursor Settings → MCP Servers
  2. 添加一个新服务器:
    • Name:local-mcp
    • Command:npx
    • Args:-y local-mcp@latest stdio
  3. 保存并重启 Cursor
  4. 在开始对话时切换到 Agent 模式

Claude Code

在你的终端中运行 npx -y local-mcp@latest setup。它会自动检测并配置 Claude Code。然后重启 Claude Code。

其他客户端(Windsurf、VS Code、Zed)

添加指向 npx -y local-mcp@latest stdio 的 MCP 服务器配置,然后重启客户端。对于 VS Code,请使用 Cline 或 Continue 扩展。


第 3 步 — 进行你的首次工具调用

验证连接:

Run diagnostics on LMCP and tell me which tools are available.

读取你的邮件:

What are my 5 most recent unread emails?

查看你的日历:

What is on my calendar today and tomorrow?

获取每日简报:

Give me a morning brief — my emails, calendar events, and reminders for today.

验证它是否正常工作

在你的首次工具调用之后,你会看到工具使用块,显示调用了哪些工具。如果 Claude 用你真实的邮件或日历数据进行回复,说明 LMCP 已正确设置。

你也可以询问:

Run run_diagnostics and show me the full health report.

授予权限

首次使用时,macOS 会提示你授予对 Contacts、Calendar 和 Reminders 的访问权限。点击 允许。如果你拒绝了访问,请前往 系统设置 → 隐私与安全性 重新启用。


常见问题

“我在 Claude Desktop 中看不到任何 LMCP 工具”

完全退出 Claude Desktop(Cmd+Q)并重新打开。然后验证:

cat ~/Library/Application\ Support/Claude/claude_desktop_config.json

你应该会在 mcpServers 中看到 "local-mcp"。如果没有,请重新运行安装程序。

“Cursor 没有使用这些工具”

切换到 Agent mode — 这些工具在标准的 Chat mode 中不可用。

“Claude 说它无法访问我的邮件”

请检查 Mail.app 已打开、你的账户已在其中配置好,并且 LMCP 在系统设置 → 隐私与安全性 → 自动化 中拥有所需的权限。

“安装命令失败了”

请尝试:

npx -y local-mcp@latest setup

接下来做什么

有问题吗?让 Claude 使用 report_problem 工具,或者打开 LMCP 托盘图标并点击 Report Problem

Ready to try it?

Works with Claude, Cursor, VS Code, ChatGPT and any MCP client

Download LMCP (.dmg)
Free for the first 500 installsmacOS 12+ · Apple Silicon & Intel

✦ llms.txt