Mercury for Codex
Codex connects to Mercury as a standard MCP server. One command adds it, and the same entry can live in the Codex settings file.
Used on our work Mac
- MacApple Silicon (M1 or later)
- SystemmacOS 13 or later
- MercuryVersion 1.1.0
- AssistantCodex in the terminal
- PlanFree: 100 actions a day on one Mac
- Take a screenshot of my Mac and tell me which apps are open.
- List the files in my Downloads folder and group them by type.
- Read ~/Documents/notes.txt and give me a three-line summary.
Four steps
-
1. Install Mercury
Download the installer, drag Mercury to Applications, and open it. Version 1.1.0 is not signed with an Apple Developer ID certificate, so macOS asks you to confirm once: follow the three steps on the download page.
-
2. Connect Codex
Run this once in Terminal.
codex mcp add mercury -- "/Applications/Mercury Device Commander.app/Contents/MacOS/Mercury Device Commander" mcpCheck it with codex mcp list. The codex mcp add command writes this entry to ~/.codex/config.toml, so you can also add it by hand:
[mcp_servers.mercury] command = "/Applications/Mercury Device Commander.app/Contents/MacOS/Mercury Device Commander" args = ["mcp"] -
3. Allow what you need
The first time a feature needs it, macOS asks for permission: Accessibility (click and type), Screen Recording (see the screen), Automation (control other apps). Grant only what your tasks need. You can revoke any permission later in System Settings.
-
4. Try it
Ask your assistant for something small first.
What Codex can do on your Mac
Good to know
- v1 does not ask you before each action. Actions run according to the permission profile you give the assistant: full access, a list of named tools, or read-only.
- Mercury is not a sandbox. It is a privileged tool for the Mac owner.
- Mercury works on your Mac and listens on 127.0.0.1 only. The action log records the assistant, the tool, the result, and the time, not the contents of requests.
- Sign-in with Google or email is planned. It will tie your plan to your account. No date is announced.
- The Free plan is 100 actions a day on one Mac. See Pricing.
All guides · Download Mercury · Pricing · Security · Privacy Policy · Terms of Service