macOS (osascript) for LangChain
io.github.zaosoula/mcp-osx
Control 19 macOS apps with safe actions, approved AppleScript/JXA, and reusable workflows.
client:LangChain
transport:stdio
runtime:npm
Install macOS (osascript) in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mcp-osx": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "mcp-osx"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs