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_

View original on GitHub ↗

11 Comments

Vikranth-jagdish · 10 months ago

It's not running for me too it says request timed out or program not found

AyinMostima · 10 months ago

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?

synestiqx · 10 months ago

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.

iharc-jordan · 10 months ago

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

Dron007 · 10 months ago

I cannot make it work for local Python MCP server too. Same config/server works in Gemini CLI.

[mcp_servers.gemini-image-generator]
command = "python"
args = ["C:/Users/Dron/.gemini/my_mcp/image_gen_google.py"]
startup_timeout_ms = 20_000
env = { GEMINI_API_KEY = "..." }

Update:
It works this way (seen here):

[mcp_servers.gemini-image-generator]
#type = "stdio"
command = "python"
args = ["C:\\Users\\Dron\\.gemini\\my_mcp\\image_gen_google.py"]
env = { GEMINI_API_KEY="...", APPDATA="C:\\Users\\Dron\\AppData\\Roaming", LOCALAPPDATA="C:\\Users\\Dron\\AppData\\Local", HOME="C:\\Users\\Dron", SystemRoot="C:\\Windows" }
shintarotakechi · 10 months ago

@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.

[mcp_servers.serena]
type = "stdio"
command = 'c:\users\[myusername]\.local\bin\uvx.exe'
args = ["--from", 
        "git+https://github.com/oraios/serena", 
        "serena-mcp-server",
        "--context",
        "ide-assistant",
        "--project",
        ".",
        "--enable-web-dashboard",
        "false"]

EDIT : I used this answer and serena worked for me. https://github.com/openai/codex/issues/3510#issuecomment-3287599187

wbdb · 10 months ago

For Windows users, this works for me with Codex 0.38.0:

[mcp_servers.context7]
command = "cmd"
args = [
    "/c",
    "npx",
    "-y",
    "@upstash/context7-mcp",
    "--api-key",
    "YOUR_API_KEY",
]
env = { SystemRoot="C:\\Windows" }
startup_timeout_ms = 20_000
BinaryBeastMaster · 10 months ago

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>" }

kur0s4ki · 10 months ago
For Windows users, this works for me with Codex 0.38.0: `` [mcp_servers.context7] command = "cmd" args = [ "/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY", ] env = { SystemRoot="C:\\Windows" } startup_timeout_ms = 20_000 ``

Works for supabase ! Thanks dude !

jonathanlal · 8 months ago

welcome, remember to post your solutions if they work 👍

[mcp_servers.supabase]
command = "cmd"
args = [
    "/c",
    "npx",
    "-y",
    "@supabase/mcp-server-supabase@latest",
    "--access-token",
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
]
env = { SystemRoot="C:\\Windows" }
startup_timeout_ms = 20_000
etraut-openai contributor · 8 months ago

Thanks for posting your solutions. Closing the issue since there doesn't appear to be anything actionable for the codex team at this time.