Keep Mac Awake

com.keepmacawake由 keepmacawake.com 发布v1.0.1更新于 Nov 7, 2026

在代理的长任务运行期间,让 MacBook 在合盖状态下保持唤醒(Keep Mac Awake 应用)。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Keep a MacBook awake with the lid closed while an agent's long task runs (Keep Mac Awake app).

发布方自己的服务:Keep

已验证STDIO仅桌面

概览

Keep Mac Awake 的本地 MCP 服务,由 keepmacawake.com 发布;无需登录;STDIO;3 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

发布者
keepmacawake.com

安装

在 SourceWeft 中

  1. 打开 控制台中的 Keep Mac Awake,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Keep Mac Awake MCP server

This MCP server lets an AI agent use Keep Mac Awake, a macOS app that keeps a MacBook with Apple silicon awake with the lid closed during a session. It needs the app, which is installed separately and is a paid app with a free trial (keepmacawake.com). With it, the agent starts a timed session before long work, stops it when the work is done, and tells you when the app needs something from you, such as AC power or a purchase after the trial. Why an agent needs it: a MacBook sleeps when you close the lid, and the agent's work stops with it (keep AI agents running with the lid closed).

It works in any app that runs local MCP servers (Claude Desktop, Claude Code, Codex, Cursor, VS Code, Windsurf and others). If your agent takes plugins, the Keep Mac Awake plugin does the same with a skill and adds a session-start hook.

Tools

ToolWhat it does
keep_awake_statusWhether a session runs and its time left, the free trial, and a newer version of the app. Read only.
keep_awake_startStarts a session of 1 to 168 whole hours, or without a time limit.
keep_awake_stopEnds the session and restores the normal sleep setting.

The agent starts timed sessions on its own and tells you in one line. It asks you first before a session without a time limit and before the first session on a Mac, which starts the free trial: keep_awake_start refuses both until the agent passes user_agreed. It never starts a second session over a running one. Battery use, buying and installing stay with you, in the menu bar panel or in Terminal.

Install

You need Node.js 20 or later and the Keep Mac Awake app (any Mac with Apple silicon and macOS 26 or later).

Claude Code:

sh
claude mcp add keepmacawake -- npx -y keepmacawake-mcp

Codex:

sh
codex mcp add keepmacawake -- npx -y keepmacawake-mcp

Claude Desktop, Cursor and other apps with a JSON configuration (claude_desktop_config.json, .cursor/mcp.json):

json
{  "mcpServers": {    "keepmacawake": {      "command": "npx",      "args": ["-y", "keepmacawake-mcp"]    }  }}

The server is the npm package keepmacawake-mcp and is listed in the official MCP Registry as com.keepmacawake/mcp.

If the app reports that npx is not found, give its full path, for example /opt/homebrew/bin/npx.

From a clone of this repository instead of npm:

sh
git clone https://github.com/bartdudzic/keepmacawakecd keepmacawake/mcp && npm ci --omit=devclaude mcp add keepmacawake -- node "$PWD/bin/keepmacawake-mcp.mjs"

Examples

  • "Run the full test suite and fix what fails. I'm closing the lid and will check back from my phone."
  • "Keep the Mac awake for the next 2 hours while this migration runs."
  • "Is Keep Mac Awake on, and how much time is left?"

What it runs

  • Each tool runs the app's keepmacawake command once on this Mac (status, start or stop, with --json), from /usr/local/bin, where the installer puts it, or from PATH. Set KEEPMACAWAKE_CLI to use another path.
  • It never runs anything else: no installer, no script, no sudo, no settings changes, no payments.
  • The command talks only to the app's background service on this Mac. The server opens no network connection and has no telemetry.
  • It works only where the server runs on your Mac itself. Elsewhere, such as a cloud container, every tool answers that Keep Mac Awake is out of reach from there.

Privacy

The server sends nothing anywhere. Its results become part of the agent's conversation, so the agent's provider receives them: whether a session runs, its time left, the trial's time left, the battery settings and a newer version. From the app's reply the server passes on only those fields: never this Mac's ID, the purchase details or the app's own messages, apart from the short reason the app gives when it refuses a session. The app's own data use is in its privacy description.

Troubleshooting

  • "Keep Mac Awake is not installed": install the app from keepmacawake.com, or set KEEPMACAWAKE_CLI if the command is somewhere else.
  • "Its background service did not answer": open Keep Mac Awake from Applications. An MCP host that runs servers in a sandbox may block the connection to the service.
  • A session refused on battery: plug in AC power, or allow battery use in the menu bar panel.

Development

sh
npm cinpm test

The tests run against a fake keepmacawake command and never touch a real session.

Support

Write to [email protected]. Security issues: see SECURITY.md. Keep Mac Awake is not affiliated with Apple.

License

The server is under the MIT License. The Keep Mac Awake app it controls is not: buying it after the free trial is covered by its own terms.

来源:mcp/README.md,提交 b4af057

工具

3

keep_awake_status

Keep Mac Awake status

Shows whether Keep Mac Awake is keeping this Mac awake: whether a session runs and its time left, the free trial, and a newer version. Read only. Call it before starting a session.

无需输入参数。

keep_awake_start

Start a Keep Mac Awake session

Keeps this MacBook awake with the lid closed, for a number of whole hours or without a time limit, through the Keep Mac Awake app. Use it before a long task the user asked for, with hours a little longer than the task. Ask the user first and pass user_agreed for a session without a time limit, or when keep_awake_status shows the trial has not started. During the free trial a session lasts at most 8 hours.

输入参数hoursuser_agreedno_time_limit

keep_awake_stop

Stop the Keep Mac Awake session

Ends the running Keep Mac Awake session and restores the normal sleep setting. Use it when a task you started the session for is done. Do not stop a session the user started themselves, or one they asked to keep on.

无需输入参数。

版本历史

1
  1. v1.0.1最新Nov 3, 2026

评分

已满足适用检查项的 80%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Keep 集成