Hammerspoon MCP
Controls macOS windows, apps, media, displays, and Hammerspoon configuration through typed MCP tools.
Install Hammerspoon MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"hammerspoon-mcp": {
"command": "npx",
"args": [
"-y",
"@vukvukovich/hammerspoon-mcp"
],
"env": {
"HS_MCP_TOOLS": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Automated check passed— started and listed 38 tools correctly (6d ago).
Overview
Use cases
- Arrange application windows across macOS screens
- Switch audio devices and control media playback
- Inspect Hammerspoon APIs and console errors
- Reload and debug a Hammerspoon configuration
- Move between macOS Spaces
Key features
- Typed MCP tools for macOS window and application control
- Hammerspoon API search and console access
- Screen, Space, audio, brightness, and media controls
- Safe default tier with optional gated tools
- Static Lua tool bodies with encoded arguments
Tools38
What Hammerspoon MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
What it can do
From the 38 tools this server returned when we ran it; 16 declare their own safety hints.
Observed 2026-10-18 in an isolated sandbox. A description of reach, not a security audit.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 8d ago via OSV.dev · @vukvukovich/hammerspoon-mcp (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Hammerspoon MCP works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Hammerspoon MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hammerspoon-mcp)<a href="https://allmcps.com/mcp/hammerspoon-mcp"><img src="https://allmcps.com/api/badge/hammerspoon-mcp?style=directory" alt="Hammerspoon MCP on AllMCPs" /></a>