CONNECT

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

What you need
Try these first
  • 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. 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. 2. Connect Codex

    Run this once in Terminal.

    codex mcp add mercury -- "/Applications/Mercury Device Commander.app/Contents/MacOS/Mercury Device Commander" mcp

    Check 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. 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. 4. Try it

    Ask your assistant for something small first.

What Codex can do on your Mac

See the screen
Take a screenshot of the Mac screen.
Files
Read and write text files, list folders, read system information.
Programs
Run a program with explicit arguments, open apps, files, and links, run AppleScript.
Type and click
Type text exactly in any language and click inside one app window.
Phones
Android: list devices, tap, swipe, type text, and press keys through adb (adb must be installed). iPhone and iPad: listing only.
Queue
Check or cancel queued screen tasks.

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.

Questions?

Write to us: office@merlin-partners.com

Merlin&Partners