如何将 LMCP 连接到 Cursor(MCP 设置)

在 Cursor 中激活 LMCP 工具的分步指南。安装仅需 30 秒。在 Cursor Settings 中启用 MCP,让你的 AI 助手能够读取邮件、日历、Teams 等。

L
LMCP··5 min read

大多数 Cursor 用户会忽略的步骤

当你运行 npx -y local-mcp@latest setup 时,安装程序会自动将 LMCP’s 的配置写入 ~/.cursor/mcp.json。但与 Claude Desktop 不同,Cursor 默认不会启用新的 MCP 服务器 — 你必须在 Settings 中手动开启它们。

正是这一个被遗漏的步骤,导致大多数 Cursor 用户安装了 LMCP 却从未看到它正常工作。

步骤 1:安装 LMCP

在你的终端中运行:

npx -y local-mcp@latest setup

安装程序将检测到 Cursor 并写入 MCP 配置。你应该会在输出中看到 ✓ Cursor configured

步骤 2:完全退出 Cursor

Cmd+Q 退出 Cursor(而不仅仅是关闭窗口)。Cursor 只在启动时读取其 MCP 配置,因此需要完全重启。

步骤 3:重新打开 Cursor

从 Applications 或 Spotlight 再次启动 Cursor。

步骤 4:在 Cursor Settings 中启用 LMCP

  1. 打开 Cursor Settings — 点击左下角的齿轮图标(⚙),或按 Cmd+Shift+J
  2. 前往 FeaturesMCP Servers(或在设置搜索栏中搜索 “MCP”)
  3. 在列表中找到 local-mcp
  4. 如果尚未启用,请将其切换为 ON

启用后,你应该会在 “local-mcp” 旁边看到一个绿色的状态指示灯。LMCP’s 的 100 个工具现在已可在你的 Cursor 聊天中使用。

步骤 5:测试一下

打开一个 Cursor 聊天窗口并输入:

Summarize my unread emails

首次使用时,Cursor 会请求 macOS 权限(Calendar、Contacts、Mail)— 请逐一批准。之后,这些工具将立即工作,无需重新授权。

手动配置(如果自动设置未成功)

如果安装程序没有自动配置 Cursor,请将以下内容添加到 ~/.cursor/mcp.json

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

然后按照上面的步骤 2–5 操作。

故障排除

工具未出现在聊天中

  • 确认 Cursor Settings → MCP Servers 中的开关已打开
  • 启用开关后退出并重新打开 Cursor
  • 在终端中运行 npx -y local-mcp@latest status 以验证服务器是否正在运行

首次调用工具时出现权限错误

  • macOS 会请求访问 Calendar、Contacts 或 Mail — 点击允许
  • 如果你拒绝了某项权限,请前往 System Settings → Privacy & Security 并重新启用它

服务器在 Cursor Settings 中显示为 “failed”

  • 确保已安装 Node.js 18 或更高版本:node --version
  • 再次运行 npx -y local-mcp@latest setup 以重新下载运行时

你现在可以做什么

连接 LMCP 后,在 Cursor 聊天中尝试以下操作:

  • Email:“Read my last 10 emails”
  • Calendar:“What's on my calendar today?”
  • Teams:“Summarize the last messages in my Teams #engineering channel”
  • Files:“Search my Mac for files named design-spec”
  • Morning briefing:“Give me a morning briefing: emails, calendar, and Teams”

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