macos-vision-mcp is a local offline OCR and image analysis server for MCP clients, running on the Apple Vision framework, suitable for MCP-compatible clients such as Claude Code, Claude Desktop, and Cursor. Its goal is to keep documents and screen content on the local machine, sending only the extracted text and structured JSON to the model.
In terms of use, it is mainly used to preprocess text and structural information in images and PDFs locally, reducing the token consumption sent to the model and preventing sensitive documents from leaving the Mac. It also provides UI testing capabilities, allowing agents to view the screen, find elements, obtain click coordinates, and assert on-screen text without uploading screenshots.
Main capabilities include: OCR for JPG, PNG, HEIC, TIFF, and multi-page PDFs; returning paragraphs in reading order, raw text blocks, and bounding boxes; support for face detection, barcode/QR code reading, and image classification; and a complete document pipeline for OCR, face, barcode, and rectangle detection in a single tool call. Officially, a 44-page scanned PDF sent as page images requires about 73,500 tokens, while the extracted text and structure returned via analyze_document require about 2,400 tokens, a reduction of about 97%.
In terms of usage, the server needs to be added to an MCP client, with an example being the Claude Code configuration. The first run of npx will download the package and cache it, and the tools appear automatically, with no separate installation step required. The first run also downloads prebuilt Swift helper binaries from GitHub Releases (vision-helper, pdf-helper, ui-helper, ax-helper, about 276 KB compressed, about 1-2 seconds). Subsequent calls use the npx cache and start quickly. Only when the download cannot access the network are Xcode Command Line Tools needed as a fallback; you can set MACOS_VISION_SKIP_DOWNLOAD=1 to force local compilation with swiftc. If you want faster cold starts, you can install globally with npm install -g macos-vision-mcp and use an alternative configuration.
Applicable scenarios include: handling legal documents, contracts, and non-disclosure agreements; financial reports, invoices, and internal spreadsheets; medical records or any GDPR-sensitivesensitive content; and situations where structured data needs to be extracted locally before deciding whether to upload. For UI testing, it is suitable for native macOS apps without APIs, Electron apps, internal software, canvas/WebGL interfaces, games, and design mockups, and other scenarios where there is no DOM to query; it is also suitable for situations requiring deterministic assertions rather than subjective model judgment.
Limitations: macOS only; on severely skewed or low-contrast scans, cloud models may recognize better; not suitable for ordinary web pages, where Playwright or the DOM would be faster and more precise; OCR can only see rendered content and cannot read a control's enabled state or accessibility role; it does not itself perform clicks, it only provides visual information, and must be used together with an input driver (such as cliclick or an automation server that accepts screen coordinates) using the returned clickPoint.
Permissions and operating conditions: screen recording permission must be granted to the app hosting the MCP server (such as Terminal, Claude Desktop, Cursor), via System Settings → Privacy & Security → Screen Recording, then restart that app. No compiler or Xcode tools are required; the native helper is prebuilt. Permissions are granted per host process, not per package. When unauthorized, capture will fail, and macOS will hide all window titles, with list_windows returning title: "" for every window and marking it with titlesAvailable: false. It is recommended to run vision_capabilities first to check ready and blockers. The Mac must be unlocked; while locked, window and region capture will fail, full-screen capture will only return the lock screen, and vision_capabilities will report screenLocked.
Privacy: files never leave the Mac, no cloud API, no API keys, no network requests; during UI testing, screenshots are written to temporary files, read by a model on the Neural Engine, are not serialized into the conversation, and no tool returns image bytes to the model.
Text matching is normalized before comparison (NFC, whitespace folding, unified Unicode dashes and quotes), then exact, substring, and fuzzy (Levenshtein) matching are attempted in order. Rejected matches are listed under nearMisses. Substring hits are graded, and hits that match whole words are reported in wholeWord, assert_text makes its determination only based on matches where wholeWord is true; other hits are listed under incidental.