# Halfpenny Mac

> Halfpenny Mac is an MCP server for cloud and infrastructure. Check, restart and update your rented Macs from an AI assistant over MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, API, macOS
- **Website:** https://halfpennymac.com/docs/api
- **Repository:** https://github.com/pauldodd123/halfpenny-mac/tree/HEAD/cli
- **MCP Registry name:** io.github.pauldodd123/halfpennymac
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Halfpenny Mac rents out Mac machines, and this server puts the account controls of those rentals behind an MCP connection. Instead of opening the dashboard, you can ask an agent whether your build Mac is online, have it restart a machine and report when it is back, or ask what a bigger tier would cost.

It runs locally over stdio from the `halfpennymac` npm package, started with `npx -y halfpennymac mcp`, and authenticates with a personal access token (`HALFPENNY_TOKEN`, starting `hpm_`) that you create in the account's API and CLI page. Tokens carry scopes: read lists machines and status, connect fetches credentials, and manage allows restarts, password rotation and macOS updates.

The same package also provides a `halfpenny` command line and sits on a JSON HTTPS API with an OpenAPI document. Restarts have a ten-minute cooldown and are refused while FileVault is on, and the API allows 120 requests a minute per token.

## Features

- **Machine status checks:** See whether each rented Mac is online, whether the invite was accepted and whether it has connected before.
- **Restart with wait:** Restart a Mac and follow it from queued through restarting to online.
- **Credential retrieval:** Fetch the macOS login, Tailscale invite and SSH relay key; each call is logged on the account.
- **Scoped access tokens:** Tokens are limited to read, connect or manage, can expire and can be revoked from the dashboard.
- **macOS updates:** Install pending minor macOS updates; major upgrades are reported but never installed by the call.
- **CLI and REST API:** The same package offers a command line with JSON output, plus a documented HTTPS API.

## Good for

- Ask an agent whether a CI build Mac is online
- Restart an unresponsive rented Mac and be told when it is back
- Rotate the macOS password on a machine and fetch the new one
- Install pending macOS updates on a remote Mac
- Script machine checks from the command line with JSON output

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add halfpennymac --env HALFPENNY_TOKEN='<HALFPENNY_TOKEN>' -- npx -y halfpennymac
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add halfpennymac --env HALFPENNY_TOKEN='<HALFPENNY_TOKEN>' -- npx -y halfpennymac
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.halfpennymac]
command = "npx"
args = ["-y", "halfpennymac"]
env = { HALFPENNY_TOKEN = "<HALFPENNY_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e HALFPENNY_TOKEN='<HALFPENNY_TOKEN>' halfpennymac npx -- -y halfpennymac

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "halfpennymac": {
      "command": "npx",
      "args": [
        "-y",
        "halfpennymac"
      ],
      "env": {
        "HALFPENNY_TOKEN": "<HALFPENNY_TOKEN>"
      }
    }
  }
}
```

## FAQ

### How do I add Halfpenny Mac to Claude Code?

Run claude mcp add halfpenny -e HALFPENNY_TOKEN=hpm_... -- npx -y halfpennymac mcp, or put the same command in any MCP config.

### Where do I get the token?

Create it in the dashboard under Account, then API and CLI. It is shown once, so copy it straight away.

### Why was my restart refused?

Restarts are refused while FileVault is on, because the Mac could not come back unattended, and they have a ten-minute cooldown.

### Can team members restart a shared Mac?

No. Machines shared with you as a team member can be read and connected to, but only owners can restart.

### What are the best alternatives to Halfpenny Mac?

The closest alternatives to Halfpenny Mac are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [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): 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.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/halfpenny-mac
