# How to connect Remote Desktop Commander to Lovable (custom connector)

> Connect Desktop Commander Remote to Lovable using a custom MCP server to access your computer from Lovable chats.

Source: https://desktopcommander.app/help/getting-started/connect-to-lovable

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](https://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](https://desktopcommander.app/help/images/getting-started/lovable-01-connectors.png)

![Add custom menu: pick MCP server](https://desktopcommander.app/help/images/getting-started/lovable-02-add-custom-mcp.png)

## 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](https://desktopcommander.app/help/images/getting-started/lovable-03-mcp-form.png)

## 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](https://desktopcommander.app/help/images/getting-started/gemini-08-dc-sign-in.png)

## 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](https://desktopcommander.app/help/images/getting-started/gemini-09-connect-device.png)

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
```

3. A new browser tab opens. Check that the code matches the one in your terminal, then click **Verify device**.

![Verify this device](https://desktopcommander.app/help/images/getting-started/gemini-11-verify-device.png)

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

![You're connected](https://desktopcommander.app/help/images/getting-started/gemini-12-connected.png)

## 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](https://desktopcommander.app/help/images/getting-started/lovable-06-test-result.png)

## 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](https://desktopcommander.app/help/images/getting-started/lovable-05-permissions.png)

## 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. |

## Related articles

- [How do I connect a computer to Desktop Commander Remote?](https://desktopcommander.app/help/devices/connect-computer)
- [Why can't Desktop Commander Remote find my computer?](https://desktopcommander.app/help/troubleshooting/remote-cant-find-computer)
- [What can I do with Desktop Commander?](https://desktopcommander.app/help/getting-started/what-can-i-do)
