how to add supabase mcp into codex cli ?
Resolved 💬 11 comments Opened Sep 11, 2025 by Rasantis Closed Nov 20, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
_No response_
Which model were you using?
gpt5
What platform is your computer?
windows
What steps can reproduce the bug?
how to integrate supabase mcp into codex cli
What is the expected behavior?
_No response_
What do you see instead?
_No response_
Additional information
_No response_
11 Comments
It's not running for me too it says request timed out or program not found
OpenAI makes such garbage software and still wants to replace Claude Code. They can't even fix a MCP problem on Windows. Why don't you take a look at how others implement it?
Because other commands are invoked through Node and have no problem with the shell, while this one uses rust::command, that’s why the issue occurs. The problem is that it should be launched via which(), which is Windows-friendly and under the hood resolves the exact path to .exe, .bat, etc., which is required on Windows.
Why they haven’t applied this fix, I don’t know :) I even submitted a ready PR, but certain aspects didn’t quite fit, which is understandable. Still, that was more than two weeks ago, and they could have at least applied this small fix. Perhaps it requires some internal discussion on their side.
So on Windows, in MCP, provide the full path to the executable file.
Here is the config that works for me on windows.
[mcp_servers.supabase]
type = "stdio"
command = 'C:\Program Files\nodejs\npx.cmd'
args = ["-y", "@supabase/mcp-server-supabase", "--project-ref=[project ref]"]
env = { APPDATA = 'C:\Users\[user]\AppData\Roaming',LOCALAPPDATA = 'C:\Users\[user]\AppData\Local',HOME = 'C:\Users\[user]',"SUPABASE_ACCESS_TOKEN" = "[token]",SystemRoot = 'C:\Windows'}
startup_timeout_ms = 20_000
I cannot make it work for local Python MCP server too. Same config/server works in Gemini CLI.
Update:
It works this way (seen here):
@iharc-jordan you are my savior on supabase. Worked for me. Although seems like it's not universal solution. While supabase timeout stopped occuring, serena using uvx is not really working.
EDIT : I used this answer and serena worked for me. https://github.com/openai/codex/issues/3510#issuecomment-3287599187
For Windows users, this works for me with Codex 0.38.0:
Codex 0.5.12 and this works for me on Win 11
[mcp_servers.supabase]
command = "C:\\Program Files\\nodejs\\npx.cmd"
args = ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=<redacted>"]
startup_timeout_ms = 120000
env = { APPDATA = "C:\\Users\\<redacted>\\AppData\\Roaming", LOCALAPPDATA = "C:\\Users\\<redacted>\\AppData\\Local", HOME = "C:\\Users\\<user>", SystemRoot = "C:\\Windows", ComSpec = "C:\\Windows\\System32\\cmd.exe", SUPABASE_ACCESS_TOKEN = "<redacted>" }
Works for supabase ! Thanks dude !
welcome, remember to post your solutions if they work 👍
Thanks for posting your solutions. Closing the issue since there doesn't appear to be anything actionable for the codex team at this time.