osa-mcp
Provides tools for interacting with the Safari web browser on macOS, including searching the web, executing JavaScript, listing tabs and documents.
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., "@osa-mcpshow my upcoming calendar events for today"
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.
osa-mcp
Give your AI access to every scriptable app on your Mac.
osa-mcp is an MCP server that automatically discovers all scriptable macOS apps (Mail, Calendar, Finder, Music, Notes, Safari, &c.) and serves their scripting dictionaries to your AI. No configuration, no hardcoded app list. Just connect and go.
What you do
npx
claude mcp add my-mac -- npx -y osa-mcpbunx
claude mcp add my-mac -- bunx osa-mcpHomebrew
brew install MayCXC/osa-mcp/osa-mcp
claude mcp add my-mac -- osa-mcpRemote Mac via SSH
If your AI runs on a different machine, connect to your Mac over SSH. Enable Remote Login in System Settings > General > Sharing first.
claude mcp add my-mac -- npx -y osa-mcp --ssh user@macbook.localJSON config
All of the above can also be added to your MCP settings file directly:
{
"mcpServers": {
"my-mac": {
"type": "stdio",
"command": "npx",
"args": ["-y", "osa-mcp"]
}
}
}For SSH, add "--ssh", "user@macbook.local" to the args.
Related MCP server: macos-computer-use-mcp
What you get
osa-mcp serves every scriptable app on your Mac through two tools:
searchruns JavaScript over the scripting dictionaries of all the apps, which it reads from your Mac on every search, so apps you install, update or remove show up without a restart. Your AI writes an async arrow function overapps, where each app has the commands, classes, record types, value types and enumerations its dictionary defines.executeruns JXA or AppleScript on your Mac. A string result comes back as it is, and any other value as source text, so lists, records and object references stay whole.
Your AI reads only what its code selects, so osa-mcp stays light in its context however many apps you have. On a Mac with 33 scriptable apps, the two tools take 21 tokens when the client loads tool definitions on demand, as Claude Code does, and about 2,100 when it loads them all up front.
Examples
A search for the Mail commands whose descriptions mention a mailbox:
async () => apps.find(a => a.name === 'Mail').commands
.filter(c => c.description.toLowerCase().includes('mailbox'))
.map(c => c.name)A JXA script for the names of the disks Finder sees:
Application("Finder").disks.name()Install from source
git clone https://github.com/MayCXC/osa-mcp.git
cd osa-mcp
bun install
claude mcp add my-mac -- bun "$PWD/src/mcp.ts"Requires Bun.
License
BSD 3-Clause. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceConnect AI with any macOS app. Deep integration with native apps like Calendar, Mail, Notes, plus UI control for all applications. Works with Claude, Cursor, Raycast, and any MCP-compatible AI.46MIT
- AlicenseAqualityDmaintenanceProvides native macOS computer control tools including mouse and keyboard simulation, screenshot capture, and application management for MCP-compatible agents. It enables AI assistants to directly interact with the macOS operating system and installed apps through standard tool calls.2444 npm8MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI to dynamically discover and control native macOS applications (like Finder, Mail, Safari) through AppleScript/JXA automation without pre-built integrations.3MIT

ToolPiperofficial
AlicenseNot gradedqualityAmaintenance426+ MCP tools for macOS, all on-device — local AI inference (llama.cpp on Metal), voice, vision OCR, local RAG, browser automation, and ~140 system actions across 26 macOS domains. Nothing leaves your Mac.3MIT