Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Hammerspoon
Hammerspoon logo
Health: ActiveRecent health check succeeded.Last checked 9/7/2026, 10:48:33 PM

Hammerspoon

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository1 GitHub StarsTotal stargazers on GitHub for the source repository (1 stars).Visit Website

macOS automation via Hammerspoon β€” 75 tools for windows, Spaces, audio, Bluetooth, and more

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hammerspoon": {
      "command": "npx",
      "args": [
        "-y",
        "hammerspoon-mcp"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

hammerspoon-mcp

Give AI agents deep control over macOS β€” windows, audio, Bluetooth, Spaces, Focus mode, and 200+ OS APIs β€” through one MCP server.

macOS 13+ Node 22+ MIT License TypeScript

What is this?

An MCP server that bridges AI agents to Hammerspoon β€” the most powerful macOS automation tool available. Unlike screenshot-and-click tools, this gives agents programmatic OS-level access: manage windows by ID, switch audio devices by name, move apps between Spaces, toggle Focus mode, and subscribe to real-time OS events.

75 tools. 12 subscribable resources. Zero native dependencies.

Quick Start

bash
# 1. Install Hammerspoon (if you haven't)
brew install --cask hammerspoon

# 2. Enable the IPC module (one-time setup)
#    Add this line to ~/.hammerspoon/init.lua:
#    require("hs.ipc")
#    Then reload your Hammerspoon config (Cmd+Alt+Ctrl+R or restart the app)

# 3. (Optional) Install the hs CLI symlink for convenience:
#    Run in Hammerspoon console: hs.ipc.cliInstall()
#    Or manually: ln -sf /Applications/Hammerspoon.app/Contents/Frameworks/hs/hs ~/.local/bin/hs

# 4. Run the MCP server
npx hammerspoon-mcp

Note: The server auto-discovers the hs binary β€” it checks ~/.local/bin/hs, /usr/local/bin/hs, /opt/homebrew/bin/hs, and the app bundle path. You don't need hs on your PATH if Hammerspoon is installed to /Applications.

Architecture

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MCP Client (Claude, Cursor, MeshClaw, etc.)            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚ stdio (JSON-RPC)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  hammerspoon-mcp (Node.js)                              β”‚
β”‚  β”œβ”€ tools β†’ execSync("hs -c '...'")  (request/response)β”‚
β”‚  └─ watchers β†’ named pipe reader     (push events)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚ hs CLI / named pipe
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Hammerspoon.app (Lua runtime + ObjC bridge)            β”‚
β”‚  200+ modules: window, screen, spaces, audio, wifi,     β”‚
β”‚  bluetooth, battery, USB, filesystem, accessibility...  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
              macOS APIs (CoreGraphics, IOKit, etc.)

MCP Client Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "hammerspoon": {
      "command": "npx",
      "args": ["hammerspoon-mcp"]
    }
  }
}
Claude Code
Terminal
claude mcp add hammerspoon -- npx hammerspoon-mcp
Cursor / VS Code / Copilot

Add to .vscode/mcp.json:

config.json
{
  "servers": {
    "hammerspoon": {
      "command": "npx",
      "args": ["hammerspoon-mcp"]
    }
  }
}
Kiro

Add to ~/.aws/amazonq/mcp.json:

config.json
{
  "mcpServers": {
    "hammerspoon": {
      "command": "npx",
      "args": ["hammerspoon-mcp"]
    }
  }
}

Tools

πŸͺŸ Window Management (7)

ToolDescription
hs_list_windowsAll visible windows with app, title, frame, id
hs_focus_windowBring window to front by id or title match
hs_move_windowMove/resize window by id
hs_window_layout16 presets (halves, thirds, quarters, grid, cascade, center…) + custom fractional layouts
hs_save_layoutSnapshot all window positions as a named layout
hs_restore_layoutRestore a saved layout (matches by app + title)
hs_list_layoutsList saved layout names

πŸ–₯️ Spaces / Virtual Desktops (9)

ToolDescription
hs_spaces_listAll spaces per screen with active markers
hs_spaces_activeCurrently focused space + screen
hs_spaces_gotoSwitch by ID or index
hs_spaces_move_windowMove window to another space (optionally follow)
hs_spaces_addCreate a new space
hs_spaces_removeRemove a space (safety checks)
hs_spaces_windowsWindows on a specific space
hs_spaces_window_spacesWhich space(s) a window is on
hs_spaces_mission_controlToggle Mission Control / ExposΓ© / Launchpad / Show Desktop

πŸ“± Application Control (3)

ToolDescription
hs_list_appsRunning applications with bundle ID, PID, hidden state
hs_launch_appLaunch or activate an app by name
hs_kill_appQuit an app

⌨️ Input (3)

ToolDescription
hs_clickClick at coordinates with button + modifier options
hs_typeType text (Unicode, CJK, emoji)
hs_hotkeyPress key combo (e.g. "cmd+shift+4")

πŸ–ΌοΈ Screen (3)

ToolDescription
hs_screenshotCapture full screen or region (base64 PNG)
hs_screensDisplay info (resolution, name, rotation)
hs_mouse_positionCurrent cursor coordinates

πŸ”Š Audio Devices (6)

ToolDescription
hs_audio_devicesList all input/output with volume, mute, transport type
hs_audio_defaultGet/set default devices (fuzzy name match)
hs_audio_volumeVolume on any specific device (0–100)
hs_audio_muteMute/unmute/toggle any device
hs_audio_datasourcesList/switch data sources (speakers vs headphones)
hs_audio_watchWatch for device changes

πŸ”΅ Bluetooth (5)

ToolDescription
hs_bluetooth_statusPower state and discoverability
hs_bluetooth_powerOn / off / toggle
hs_bluetooth_devicesList paired or connected devices
hs_bluetooth_connectConnect by name (fuzzy) or MAC address
hs_bluetooth_disconnectDisconnect a device

Requires blueutil: brew install blueutil

πŸŒ™ Focus / Do Not Disturb (6)

ToolDescription
hs_focus_statusCheck if DND/Focus is active + profile name
hs_focus_toggleToggle via Control Center (no setup needed)
hs_focus_shortcutEnable/disable via macOS Shortcuts (most reliable)
hs_focus_install_shortcutOne-time setup guide
hs_focus_scheduleDND for N minutes with auto-disable
hs_focus_cancel_timerCancel scheduled disable

πŸ”‹ System State (6)

ToolDescription
hs_batteryCharge %, power source, time remaining
hs_wifiCurrent SSID and interface details
hs_volumeSystem volume get/set
hs_dark_modeGet/toggle dark mode
hs_notifyPost a macOS notification
hs_clipboardRead/write system pasteboard

πŸ”† Display (1)

ToolDescription
hs_brightnessGet/set screen brightness (0–100)

⏱️ Timers (3)

ToolDescription
hs_timer_startNamed countdown with notification on fire
hs_timer_cancelCancel by name
hs_timer_listList active timers

πŸ“ Finder / Files (4)

ToolDescription
hs_finder_selectionGet currently selected Finder items
hs_finder_openOpen/reveal path in Finder
hs_trashMove to Trash (reversible)
hs_quicklookQuick Look preview

πŸ› οΈ Utilities (5)

ToolDescription
hs_system_infoCPU, memory, thermal state, uptime
hs_caffeinatePrevent sleep for N minutes
hs_executeRun shell command (user environment)
hs_open_urlOpen URL in browser or specific app
hs_alertHUD-style on-screen overlay message

πŸ‘οΈ Watchers β€” Live OS Event Streams (13)

ToolEvents
hs_watch_appsApp activated, launched, terminated, hidden
hs_watch_wifiNetwork changes
hs_watch_usbDevice connect/disconnect
hs_watch_batteryCharge level, power source
hs_watch_screensDisplay configuration
hs_watch_pathsFilesystem changes
hs_watch_sleepSleep/wake/lock/unlock
hs_watch_clipboardEvery pasteboard change
hs_watch_clipboard_historyRing buffer with source app tracking
hs_get_clipboard_historyRead the full buffer
hs_watch_urlsIncoming hammerspoon://mcp/... URLs
hs_unwatchStop a watcher
hs_list_watchersList active watchers

πŸ§ͺ Escape Hatch (1)

ToolDescription
hs_evalExecute arbitrary Lua in the Hammerspoon runtime

This gives access to all 200+ Hammerspoon modules not covered by dedicated tools β€” USB details, serial ports, network interfaces, Canvas drawing, menubar items, etc.

Resources (Subscriptions)

MCP clients can subscribe to resource URIs and receive push notifications when OS events fire:

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Developer Tools View all alternatives
  • MCP Sap Gui logoMCP Sap Gui

    SAP GUI for Windows automation for AI agents - 57 structured tools via SAP GUI Scripting API

    πŸ’» Developer Tools0 views
    Compare vs MCP Sap Gui β†’
  • PraisonAI logoPraisonAI

    AI Agents Framework with Self Reflection and MCP support

    πŸ’» Developer Tools1 views
    Compare vs PraisonAI β†’
  • Windows MCP logoWindows MCP

    An MCP Server for computer-use in Windows OS

    πŸ’» Developer Tools1 views
    Compare vs Windows MCP β†’
  • Macos MCP Server logoMacos MCP Server

    Control macOS system settings, apps, windows, audio, displays, screenshots, and Focus mode via MCP.

    πŸ’» Developer Tools0 views
    Compare vs Macos MCP Server β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Hammerspoon

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "hammerspoon": { "command": "npx", "args": ["-y", "hammerspoon"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHammerspoon AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hammerspoon?style=directory)](https://allmcps.com/mcp/hammerspoon)
HTML Embed
<a href="https://allmcps.com/mcp/hammerspoon"><img src="https://allmcps.com/api/badge/hammerspoon?style=directory" alt="Hammerspoon on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars1
GitHub Star CountTotal stargazers on GitHub representing community popularity (1 stars).
36Quality signal: Fair Β· 36/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools16/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Hammerspoon β†’Install in Claude DesktopInstall in CursorInstall in VS Code