OpenAI Codex CLI can connect to the 101domain MCP Server using its built‑in MCP configuration. This page shows how to install Codex, where to set up the ~/.codex/config.json (or config.yaml) file, and provides a ready‑to‑paste example that connects to https://mcp.101domain.com with your 101domain API key stored in an environment variable
Configuration:
Install via npm i -g @openai/codex or brew install --cask codex. MCP server configuration is set in ~/.codex/config.json (or config.yaml):
{
"mcpServers": {
"101domain": {
"command": "npx",
"args": [
"-y",
"mcp-remote@0.1.38",
"https://mcp.101domain.com",
"--silent"
],
"env": {
"AUTH_TOKEN": "your-api-key-here"
}
}
}
}
Windows users: Replace "command": "npx" with "command": "cmd" and add "/c" as the first item in args. This is required because Windows cannot resolve npx (a .cmd script) without the system shell.