macos-screen-mcp
Allows reading active browser tabs from Arc (limited to active tab only).
Allows reading active and all browser tabs from Google Chrome, including URLs and titles.
Provides desktop state awareness (frontmost app, visible apps, window positions, screen resolution) and screenshot capture (full screen, region, or frontmost window).
Allows reading active and all browser tabs from Safari, including URLs and titles.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@macos-screen-mcp what's on my screen?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
macos-screen-mcp
Give AI eyes on your macOS desktop — an MCP server that lets AI assistants see your screen, read browser tabs, and capture screenshots.
Features
Desktop awareness — frontmost app, visible apps, window positions, screen resolution
Screenshot capture — full screen, specific region, or frontmost window (with configurable scale)
Browser tab inspection — Chrome, Safari, and Arc support (active tab or all tabs)
File preview — open files in default app, Chrome, or Quick Look
Related MCP server: Desktop Commander MCP Server
Requirements
macOS 12 (Monterey) or later
Node.js 18+
Screen Recording permission (for screenshot features only)
Installation
Quick start (recommended)
claude mcp add --transport stdio macos-screen -- npx -y macos-screen-mcpThat's it. No global install needed.
Global install
npm install -g macos-screen-mcp
claude mcp add --transport stdio macos-screen -- macos-screen-mcpFrom source
git clone https://github.com/dla-kirito/macos-screen-mcp.git
cd macos-screen-mcp
npm install && npm run build
claude mcp add --transport stdio macos-screen -- node /path/to/macos-screen-mcp/dist/index.jsCursor / Other MCP Clients
Add to your MCP config:
{
"mcpServers": {
"macos-screen": {
"command": "npx",
"args": ["-y", "macos-screen-mcp"]
}
}
}Permissions Setup
Screen Recording (required for screenshots)
The first time you use capture_screen, macOS will prompt for Screen Recording permission.
Open System Settings > Privacy & Security > Screen Recording
Enable the toggle for your terminal app (e.g., Ghostty, iTerm2, Terminal)
Restart your terminal if prompted
Automation (for browser tools)
The first time get_desktop_state or get_browser_content reads a browser's tabs, macOS will show a dialog like "<Terminal> wants to control "Google Chrome"". This is the standard macOS Automation prompt — click OK. macOS only asks once per app pair, and you can review/revoke it later under System Settings > Privacy & Security > Automation.
Note:
preview_filedoesn't require any special permissions — it uses the standardopencommand.
Available Tools
Tool | Description | Permissions |
| Quick overview: frontmost app, visible apps, Chrome tabs, screen size | None |
| Screenshot (full / region / frontmost window), returns as image | Screen Recording |
| Detailed browser tabs for Chrome, Safari, or Arc | None |
| Open a file in default app, Chrome, or Quick Look | None |
Tool Details
capture_screen supports a scale parameter (0–1, default 0.5) to reduce image size before sending to the LLM, saving tokens while preserving enough detail for most tasks.
get_browser_content can return just the active tab per window (default) or all tabs with include_all_tabs: true.
How It Works
The server communicates with AI clients over stdio using the Model Context Protocol. Under the hood it uses:
AppleScript (
osascript) to query desktop state, window bounds, and browser tabsscreencapture(macOS built-in) to take screenshotssipsto downscale images before returning them as base64 PNG
All operations are read-only — the server never modifies your files, settings, or browser state.
┌─────────────┐ stdio/MCP ┌──────────────────┐ AppleScript ┌─────────┐
│ AI Client │◄────────────►│ macos-screen-mcp │◄──────────────►│ macOS │
│ (Claude etc) │ └──────────────────┘ screencapture │ Desktop │
└─────────────┘ └─────────┘Security
All tool inputs are validated via Zod schemas
Application names are restricted to safe characters (no shell/AppleScript injection)
File operations use
execFilewith argument arrays (no shell interpolation)
Privacy
This server runs locally and does not send data to any remote service of its own. However, by design it lets your AI assistant see parts of your desktop, and whatever the AI sees is sent to the LLM provider you've configured (Anthropic, your Cursor backend, etc.) as part of normal MCP tool responses.
What each tool exposes:
get_desktop_state— frontmost app, list of visible apps, Chrome window URLs and titles, window positions, screen resolutionget_browser_content— for the chosen browser: every window's active tab URL and title (and all tabs ifinclude_all_tabs=true)capture_screen— raw pixels of your screen / a region / the frontmost window, sent as a base64 PNGpreview_file— only opens the file locally; no file contents are read or transmitted by this server
Treat anything visible on screen or in a browser tab as something the AI may receive. Avoid calling these tools while password managers, private chats, banking sites, or other sensitive content are visible. Most MCP clients let you disable individual tools per session if you want a temporary lockdown.
Known Limitations
macOS only — relies on AppleScript and macOS-specific commands
Browser inspection requires the target browser to be running
capture_screenrequires explicit Screen Recording permissionArc browser only supports active tab queries (no
include_all_tabs)
Contributing
git clone https://github.com/dla-kirito/macos-screen-mcp.git
cd macos-screen-mcp
npm install
npm run build # TypeScript → dist/
npm run lint # Type-check without emittingLicense
Available Tools
4 toolscapture_screenA
Capture a screenshot of the macOS screen and return it as an image. Supports full screen, a specific region, or the frontmost window. Requires Screen Recording permission on first use.
Inputs: target (required), region, scale.
get_browser_contentA
Get detailed browser information: active tab title and URL for each window, optionally all tabs. Supports Chrome, Safari, and Arc. Use this when you need comprehensive browser state beyond what get_desktop_state provides.
Inputs: browser, include_all_tabs.
get_desktop_stateA
Get the current macOS desktop context: frontmost app, visible apps, Chrome browser tabs (title + URL), window positions, and screen resolution. Use this for a quick overview of what the user is looking at.
Inputs: no named parameters.
preview_fileA
Open a file for preview on macOS. Supports HTML (opens in Chrome), images, PDFs, and other files. Can use default app, Chrome, or Quick Look.
Inputs: file_path (required), method.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a distinct function: screen capture, detailed browser info, desktop overview, and file preview. There is no overlap in purpose.
All tools follow a consistent snake_case verb_noun pattern (capture_screen, get_browser_content, get_desktop_state, preview_file).
With 4 tools, the set is concise and well-scoped for macOS screen interaction. Slightly on the smaller side but still appropriate for the domain.
The tools cover common screen-related tasks: capturing, browser/desktop state, and file preview. Minor gaps like screen recording or window management exist but are not core to the server's stated purpose.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that allows AI tools like Claude Desktop, Claude Code, and Cursor to visually interact with macOS applications by capturing screenshots and controlling the mouse and keyboard.14-
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server that gives AI assistants full control over your desktop — monitor system resources, manage windows, capture screenshots, control the clipboard, launch applications, and more.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that gives any AI assistant eyes and hands on your desktop — screenshots, clicking, typing, OCR, window management, accessibility-tree queries, workflow recording.5Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn open-source MCP server for macOS that lets AI control desktop apps in the background without moving the cursor or stealing focus.35Apache 2.0