Keep Mac Awake

Community
JavaScript

Lets an AI agent keep a MacBook awake with the lid closed while long tasks run. Needs the Keep Mac Awake app (free trial); any Mac with Apple silicon, macOS 26 or later.

About Keep Mac Awake MCP Server

Lets an AI agent keep a MacBook awake with the lid closed while long tasks run. Needs the Keep Mac Awake app (free trial); any Mac with Apple silicon, macOS 26 or later.

Features

Tools
Getting Started

Install the Keep Mac Awake app (any Mac with Apple silicon, macOS 26 or later), then run: claude mcp add keepmacawake -- npx -y keepmacawake-mcp. The agent starts a timed session before long work and stops it when the work is done; when a session ends, normal sleep returns.

Tools (3)
Functions this server exposes to AI clients

keep_awake_status

Whether a session runs and its time left, the free trial, and a newer version of the app. Read only.

keep_awake_start

Starts a session of 1 to 168 whole hours, or without a time limit, so the Mac stays awake with the lid closed.

keep_awake_stop

Ends the session and restores the normal sleep setting.

Compatible With
Claude Code
Claude Desktop
Codex
Cursor
VS Code
Windsurf