プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Hammerspoon

作者:mobabur94バージョン 0.1.0i★ –iパソコンで動く
レジストリ名io.github.mobabur94/hammerspoon

インストール

概要

作者による説明(英語の原文)

macOS automation via Hammerspoon — 75 tools for windows, Spaces, audio, Bluetooth, and more

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: デザイン・画像・音声

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "hammerspoon": {
      "command": "npx",
      "args": [
        "-y",
        "hammerspoon-mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add hammerspoon -- npx -y hammerspoon-mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "hammerspoon": {
      "command": "npx",
      "args": [
        "-y",
        "hammerspoon-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

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

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント mobabur94 で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

デザイン・画像・音声のほかのサーバーとの比較i

  • このカテゴリのほかの2187件のうち0%よりスターが多い
  • このカテゴリのほかの2187件のうち21%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの2187件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Hammerspoonは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.0)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Figma Context MCP, Claude Real Video, Figma MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Figma Context MCP

作者:GLips

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

パソコンで動く★ 16,165MIT5 か月前更新
インストール

Claude Real Video

作者:HUANGCHIHHUNGLeo

Let any LLM watch a video locally — and search everything it has ever watched.

パソコンで動く★ 2,284MIT2 か月前更新
インストール

Figma MCP Server

作者:figma

The Figma MCP server brings Figma design context directly into your AI workflow.

クラウドで動く★ 2,15213 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

hammerspoon-mcp

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

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

# 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

┌─────────────────────────────────────────────────────────┐

│ 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:

{

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

</details>

Claude Code

claude mcp add hammerspoon -- npx hammerspoon-mcp

Cursor / VS Code / Copilot

Add to .vscode/mcp.json:

{

"servers": { "hammerspoon": { "command": "npx", "args": ["hammerspoon-mcp"] } } }

</details>

Kiro

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

{

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

</details>

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:

URITriggers
watcher://appsApp lifecycle events
watcher://wifiNetwork changes
watcher://usbUSB device events
watcher://batteryBattery/power changes
watcher://screensDisplay reconfiguration
watcher://pathsFilesystem changes
watcher://sleepSleep/wake/lock events
watcher://clipboardPasteboard changes
watcher://clipboard_historyClipboard ring buffer updates
watcher://urlsIncoming URL events
watcher://audioAudio device changes
hammerspoon://systemSystem info snapshot
How event streaming works
Agent calls: hs_watch_wifi

→ Server injects Lua watcher into Hammerspoon runtime → macOS WiFi change fires → Watcher writes JSON to named pipe (/tmp/hs-mcp-events.pipe) → Node reader emits event → Server calls sendResourceUpdated("watcher://wifi") → Client reads resource → gets { ssid: "NewNetwork", ... }

Examples

"Tile my editor and terminal side by side"

hs_window_layout({ preset: "side-by-side" })

"Switch my audio to AirPods"

hs_audio_default({ output: "airpods" })

→ "set default output: AirPods Pro"

"Move Slack to Space 3"

hs_list_windows({ app: "Slack" })  → { id: 4523, ... }

hs_spaces_move_window({ windowId: 4523, spaceIndex: 3 })

"Start a 25-minute focus session"

hs_focus_schedule({ minutes: 25 })

hs_timer_start({ name: "pomodoro", minutes: 25, message: "Break time!" })

"Notify me when I switch away from my IDE"

hs_watch_apps()

→ Events stream to watcher://apps whenever focus changes

"Connect my headphones and set volume to 40%"

hs_bluetooth_connect({ device: "WH-1000XM5" })

hs_audio_volume({ device: "WH-1000XM5", volume: 40 })

Compared to Alternatives

Capabilityhammerspoon-mcpmac-use-mcpmacos-automator-mcp
Window management by ID✅❌❌
Virtual desktop (Spaces) control✅❌❌
Audio device switching✅❌❌
Bluetooth control✅❌❌
Focus / DND mode✅❌❌
Real-time OS event subscriptions✅❌❌
Clipboard history✅✅❌
Arbitrary OS scripting✅ (Lua)❌✅ (AppleScript)
Screenshot✅✅❌
Click / type / hotkeys✅✅❌
Accessibility tree queriesvia hs_eval✅❌
Zero-install (no prerequisites)❌✅✅
Total tools7518~10

Prerequisites

RequirementInstall
macOS 13+—
Node.js 22+brew install node

| Hammerspoon

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く