Skip to content

Using any MCP with Codex CLI leaves many orphaned Node processes that peg CPU #6201

Closed

Description

@Afur

What version of Codex is running?

0.53.0

What subscription do you have?

Pro

Which model were you using?

gpt-5-high

What platform is your computer?

Darwin 25.1.0 arm64 arm

What issue are you seeing?

After invoking any MCP server from Codex CLI, multiple background node processes are spawned (watchers/helpers). When I quit/close Codex, these node processes keep running and consume significant CPU. CPU usage returns to normal only after I manually kill those node processes in Activity Monitor or via the terminal.

What steps can reproduce the bug?

  1. Start Codex CLI with few MCP servers enabled.
  2. Use any MCP tool (e.g., run a simple request).
  3. Open Activity Monitor (or run ps/pgrep) and observe many “node” processes still running with high %CPU.

What is the expected behavior?

When Codex disconnects from MCP, all child MCP server processes (and their workers) should be terminated cleanly. No lingering node processes and no ongoing CPU usage.

Actual behavior
Dozens of node processes remain alive after Codex exits, often with PPID=1 (re-parented to launchd). They continue consuming CPU until they are manually killed. Once killed, overall CPU usage immediately returns to normal

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    on Nov 4, 2025
  2. added
    mcpIssues related to the use of model context protocol (MCP) servers
    on Nov 4, 2025
  3. davidbenhaim commented on Nov 9, 2025

    @davidbenhaim

    I noticed this too. had to restart vscode for them to die.

  4. spleenteo commented on Nov 10, 2025

    @spleenteo

    Yay, I can relate. My battery drains in just two hours because of this. Codex launches dozens of “npm run dev” processes in the background (for testing porpouses, it's ok), which remain active.

  5. etraut-openai commented on Jan 17, 2026

    @etraut-openai
    Contributor

    Closing out old bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions