Provide AI MCP server args during runtime.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add superargs -- npx -y superargs --stdio 'npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}'~/.codex/config.toml
[mcp_servers.superargs]
command = "npx"
args = ["-y", "superargs", "--stdio", "npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"]
# codex mcp add superargs -- npx -y superargs --stdio 'npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}'~/.cursor/mcp.json
{
"mcpServers": {
"superargs": {
"command": "npx",
"args": [
"-y",
"superargs",
"--stdio",
"npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"
]
}
}
}.vscode/mcp.json
{
"servers": {
"superargs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"superargs",
"--stdio",
"npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"superargs": {
"command": "npx",
"args": [
"-y",
"superargs",
"--stdio",
"npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"superargs": {
"command": "npx",
"args": [
"-y",
"superargs",
"--stdio",
"npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"superargs": {
"command": "npx",
"args": [
"-y",
"superargs",
"--stdio",
"npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"
]
}
}
}