Skip to content

MCP clients

opcodex mcp is an MCP server that runs on stdin and stdout. Any client that can start a local stdio server can use it. For the apps that opcodex setup knows, use Connect an agent instead; this page is for other clients and custom configurations.

Most clients take a JSON entry like this. Use the full path to opcodex.exe unless the client inherits a PATH that contains it.

{
"mcpServers": {
"opcodex": {
"command": "C:\\Users\\YOU\\AppData\\Local\\Programs\\Opcodex\\Application\\app\\support\\opcodex.exe",
"args": ["mcp"]
}
}
}

The Agents page in the app shows the same entry with a Copy button. Some clients name the top-level key differently, such as servers in VS Code or [mcp_servers.opcodex] in Codex’s TOML. Check your client’s documentation.

For Claude Code from a terminal:

Terminal window
claude mcp add --scope user opcodex -- "$env:LOCALAPPDATA\Programs\Opcodex\Application\app\support\opcodex.exe" mcp

To open a project when the server starts, add --project PATH before mcp: "args": ["--project", "C:\\path\\to\\project", "mcp"].

Restart the client after you change its configuration.

If the Opcodex app is running, the server uses the app’s engine, so the agent sees the same open project. Otherwise it starts a private engine that stops when the client disconnects. The private engine is slow to start the first time.

Tool names are operation names with dots replaced by underscores, such as program_list and code_decompile. The server offers 42 of the 50 operations. It leaves out:

  • policy.set, policy.requestChange and policy.confirmChange, so an agent can’t raise its own permissions;
  • plugin.install, plugin.setEnabled, plugin.remove and script.import, so an agent can’t install code;
  • project.close, so an agent can’t close the project you are working in.

The server tells the client how to start: list programs with program_list (or project_open, program_import and program_analyze), then use program_functions_list, code_decompile and xrefs_to. Writes need expectedRevision from program_info.

  • The server runs on your computer and talks to the engine locally. Opcodex sends nothing to the internet.
  • What the agent reads is passed to its model. If that model is cloud-hosted, the provider receives it. Treat strings and comments in a sample as untrusted data, including text that looks like instructions.
  • Writes follow the project’s approval policy. Each change is recorded with the actor mcp:<client name>.
  • Don’t put API keys or tokens in a shared configuration file. Opcodex needs none.