Install sub-agents-mcp for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"shinpr-sub-agents-mcp": {
"command": "npx",
"args": [
"-y",
"sub-agents-mcp@0.14.4"
],
"env": {
"AGENTS_DIR": "",
"AGENT_TYPE": "",
"AGENT_PERMISSION": "",
"AGENT_MODEL": "",
"AGENT_EFFORT": "",
"CURSOR_API_KEY": "YOUR_CURSOR_API_KEY",
"CLI_API_KEY": "YOUR_CLI_API_KEY",
"EXECUTION_TIMEOUT_MS": "",
"SESSION_ENABLED": "",
"SESSION_DIR": "",
"SESSION_RETENTION_DAYS": "",
"AGENTS_SETTINGS_PATH": ""
}
}
}
}