# Keep Mac Awake

> Keep Mac Awake is an MCP server for productivity. Let an agent keep a MacBook awake with the lid closed while a long task runs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free trial
- **Platforms:** macOS, CLI
- **Website:** https://keepmacawake.com
- **Repository:** https://github.com/bartdudzic/keepmacawake/tree/HEAD/mcp
- **MCP Registry name:** com.keepmacawake/mcp
- **Categories:** productivity, developer tools
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "keepmacawake-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/keep-mac-awake
