Claude Code
macro MCP server, and complete the browser sign-in flow when prompted.
Codex CLI
macro MCP server, and complete the OAuth login flow in the browser.
Connect from a remote machine
If your client runs on another machine, such as over SSH or in a container, a browser on your computer can’t reach the client when sign-in finishes. Sign in like this instead:- Start the login on the remote machine. For Claude Code, run
claude mcp login macro --no-browser. For Codex CLI, runcodex mcp login macro. - Open the printed link in a browser on your computer.
- Select The app I’m connecting runs on another machine, then choose how to sign in.
- After you sign in, Macro shows a link and a
curlcommand. If your client asks for a redirect URL, as Claude Code does, paste the link. Otherwise, run thecurlcommand on the remote machine while the client is waiting, as with Codex CLI.
IDE / JSON Configuration
For editors that accept JSON MCP server config, add this undermcpServers: