Skip to content

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.

Connectors in Lovable, with Add custom at the bottom left

Add custom menu: pick 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.

Add MCP server form

Step 3. Sign in to Desktop Commander ​

A Desktop Commander sign-in page opens. Click Continue with Google or Continue with email.

Desktop Commander sign-in

Step 4. Connect your computer (first time only) ​

Skip this step if your account already has a computer connected.

  1. Pick your system (Windows, macOS or Linux) and click Copy setup command.
  2. Paste it into Terminal (macOS, Linux) or PowerShell (Windows) and press Enter. Keep that window open.

Connect this device page

macOS:

bash
curl -fsSL https://mcp.desktopcommander.app/install/remote-macos.sh | sh

Windows (PowerShell):

powershell
irm -ErrorAction Stop https://mcp.desktopcommander.app/install/remote-windows.ps1 | iex

Already have Node.js 22.12 or newer:

bash
npx @wonderwhy-er/desktop-commander@latest remote
  1. A new browser tab opens. Check that the code matches the one in your terminal, then click Verify device.

Verify this device

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

You're connected

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

Lovable listing connected devices through Desktop Commander

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.

Tool permissions and Disconnect

Troubleshooting ​

ProblemFix
MCP server is grayed outA 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 offlineRun the setup command again and keep the window open.