Keep Mac Awake
Let an agent keep a MacBook awake with the lid closed while a long task runs
- Pricing
- Free trial
- Platforms
- macOS, CLI
- Runs
- Locally
- Version
- 1.0.2
- Listing updated
- 3 days ago
About Keep Mac Awake
Keep Mac Awake is an MCP server for productivity. It runs locally on your machine and is started by your AI client.
The server wraps the keepmacawake command of the Keep Mac Awake macOS app, so an agent can start a session before a long job and end it afterwards. Each tool runs that one command on your Mac with --json and nothing else: no installer, no script, no sudo, no settings changes and no payments. The README says the server opens no network connection and has no telemetry.
Sessions last 1 to 168 whole hours or run without a limit. The agent starts timed sessions on its own and tells you in one line, and asks first before an unlimited session or the first session of a trial. Ending a session restores normal sleep. It only works where the server runs on your own Mac, and cloud containers report that the app is out of reach.
The app needs Apple silicon and macOS 26 or later, and the server needs Node.js 20 or newer. The app's free trial covers sessions up to 8 hours; 24-hour and no-limit sessions come with the one-time $9 purchase per Mac.
Install
Run in a terminal
claude mcp add mcp -- npx -y keepmacawake-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"keepmacawake-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"keepmacawake-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"keepmacawake-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"keepmacawake-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"keepmacawake-mcp"
]
}
}
}Tools this server provides (3)
Taken from the project documentation; the running server may differ.
- keep_awake_status
- Reports whether a session runs, time left, trial state and app updates.
- keep_awake_start
- Starts a session of 1 to 168 hours or with no time limit.
- keep_awake_stop
- Ends the session and restores normal sleep.
What it does
- Lid-closed sessions
- Keeps the MacBook running with the lid shut and no external display.
- Timed or unlimited
- Sessions of 1 to 168 hours, or no time limit.
- Status reporting
- Returns time left, trial state and available updates.
- Agent-friendly output
- One JSON line and a documented exit code per call.
- Ask first rules
- Confirms with you before unlimited or first trial sessions.
- No network access
- The server makes no network connection.
Good for
- Run a long coding agent task overnight with the lid closed
- Keep a Mac awake during a large build or render
- Check how much time a session has left
- End the session when the agent finishes
- Run a migration while away from your desk
Pricing
Free trial
3-day free trial, then $9 once per Mac
Prices change. Check keepmacawake.com before you buy.
Keep Mac Awake FAQ
What does the app need?
Any Mac with Apple silicon and macOS 26 or later.
How much does it cost?
Free for 3 days with no card, then $9 once per Mac.
Does the server send data anywhere?
The README says it sends nothing anywhere, though the agent's provider receives the tool results.
Does it work in a cloud container?
No. It works only when the server runs on your Mac.
Which clients are supported?
Claude Desktop, Claude Code, Codex, Cursor, VS Code, Windsurf and others that run local MCP servers.
Is Keep Mac Awake free?
Keep Mac Awake is a paid product with a free trial.
How do I add Keep Mac Awake to Claude Code?
Run this command in your terminal: claude mcp add mcp -- npx -y keepmacawake-mcp
What are the best alternatives to Keep Mac Awake?
The closest alternatives to Keep Mac Awake are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Keep Mac Awake

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ha MCP
MCP serverMCP server for managing and automating Home Assistant from AI assistants
Runs locally- 8 tools
- Open source
- 7.9K GitHub stars
- Productivity