MCP server to run Claude, Codex, and Gemini CLI agents in the background from any MCP client.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add ai-cli -- npx -y ai-cli-mcp~/.codex/config.toml
[mcp_servers.ai-cli]
command = "npx"
args = ["-y", "ai-cli-mcp"]
# codex mcp add ai-cli -- npx -y ai-cli-mcp~/.cursor/mcp.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"ai-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}