How to connect Remote Desktop Commander to Lovable (custom connector)
Add Remote Desktop Commander to Lovable as a custom MCP server. Then Lovable can read files, search and run commands on your own computer while you build. Takes about 5 minutes; 10 if this is your first computer.
Before you start
- A Lovable account at lovable.dev. Custom MCP servers work on every Lovable plan.
- A computer to connect: macOS, Windows or Linux
- Server URL:
https://mcp.desktopcommander.app/mcp
Shared workspaces: if MCP server is grayed out, a workspace admin has turned off the Custom MCP setting. Ask the admin or owner to turn it on.
Step 1. Open Connectors
In the Lovable sidebar, click Connectors. At the bottom left, click Add custom, then MCP server.


Step 2. Enter the server details
- Server name: any name, for example
Desktop Commander - Server URL:
https://mcp.desktopcommander.app/mcp - Authentication: leave OAuth (default)
Click Add & authorize. You don't need a client ID, secret or API key. Desktop Commander registers Lovable by itself.

Step 3. Sign in to Desktop Commander
A Desktop Commander sign-in page opens. Click Continue with Google or Continue with email.

Step 4. Connect your computer (first time only)
Skip this step if your account already has a computer connected.
- Pick your system (Windows, macOS or Linux) and click Copy setup command.
- Paste it into Terminal (macOS, Linux) or PowerShell (Windows) and press Enter. Keep that window open.

macOS:
bash
curl -fsSL https://mcp.desktopcommander.app/install/remote-macos.sh | shWindows (PowerShell):
powershell
irm -ErrorAction Stop https://mcp.desktopcommander.app/install/remote-windows.ps1 | iexAlready have Node.js 22.12 or newer:
bash
npx @wonderwhy-er/desktop-commander@latest remote- A new browser tab opens. Check that the code matches the one in your terminal, then click Verify device.

- You'll see You're connected with your computer shown as online.

Step 5. Allow Lovable
Go back to the first tab. Desktop Commander asks you to allow Lovable to connect. Click Allow.
Lovable now shows your connector as Connected under Connectors → Custom.
Step 6. Use it in a project chat
Open a project, or start a chat in Chats, and ask your question. Lovable uses the connector by itself when the question needs it. To be sure, name Desktop Commander in the prompt. For questions that shouldn't change your app, switch the mode next to the send button from Build to Chat.
Prompts to try first (read-only):
- Use Desktop Commander to list my connected devices and tell me which ones are online
- Use Desktop Commander to find the 5 largest files in my Downloads folder

Good to know
- Chat connectors work only in the project chat and in Chats. Your published app can't use Desktop Commander.
- To choose which tools run without asking you, open Connectors → Custom, click your connector, then click the connection. Read-only tools and write/delete tools have separate settings.
- To remove the connector, open the same page and click Disconnect.
- Keep the setup window running on your computer. If it closes, the device goes offline. Run the setup command again to bring it back.

Troubleshooting
| Problem | Fix |
|---|---|
| MCP server is grayed out | A workspace admin turned off Custom MCP. Ask the admin to turn it on. |
Setup command fails with EACCES or EEXIST under ~/.npm (macOS) | The npm cache has files owned by root. Run sudo chown -R $(id -u):$(id -g) ~/.npm, then run the setup command again. |
| Lovable says the device is offline | Run the setup command again and keep the window open. |
