mcp-remote-lite is a small standalone bridge that lets a local MCP client talk to a remote MCP endpoint.
It:
- reads MCP JSON-RPC messages from
stdin - sends them to the remote URL over HTTP
- writes MCP responses back to
stdout
If go is on your PATH:
go build -trimpath -o dist\mcp-remote-lite.exe .\cmd\mcp-remote-liteIf Go is installed at C:\go\bin\go.exe:
& 'C:\go\bin\go.exe' build -trimpath -o dist\mcp-remote-lite.exe .\cmd\mcp-remote-liteIf your environment blocks the default Go cache location:
$env:GOCACHE='C:\path\to\project\.gocache'
& 'C:\go\bin\go.exe' build -trimpath -o dist\mcp-remote-lite.exe .\cmd\mcp-remote-liteFor multi-platform builds:
.\build.ps1Basic example:
.\dist\mcp-remote-lite.exe --header "Authorization:Bearer<access>:<secret>" "https://your-server/api/ext/mcp/<id>/comms"Useful flags:
--header "Name:Value"adds an HTTP header--insecuredisables TLS certificate verification--verbosewrites bridge logs tostderr
Example config.toml entry using mcp-lite.exe:
[mcp_servers.my_remote_server]
command = 'C:\path\to\mcp-lite.exe'
args = [
"--header",
"Authorization:Bearer<access_key>:<secret_key>",
"https://your-server/api/ext/mcp/<mcp_id>/comms",
]
startup_timeout_sec = 90Replace:
C:\path\to\mcp-lite.exewith your local executable path<access_key>and<secret_key>with your credentials<mcp_id>with the remote MCP endpoint ID
After updating path\to\.codex\config.toml, restart Codex so it reloads the MCP config.