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 整合