Skip to content
LangChain

Keep Mac Awake for LangChain

com.keepmacawake/mcp

Keep a MacBook awake with the lid closed while an agent's long task runs (Keep Mac Awake app).

client:LangChain transport:stdio runtime:npm

Install Keep Mac Awake in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "keepmacawake-mcp"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

Keep Mac Awake in other clients