# How to Connect Kilo Code to MewCP

Kilo Code is an open-source coding agent that runs as a VS Code extension and as a terminal CLI. Both read remote MCP servers from the Kilo config and sign in to them with OAuth. Add MewCP once, and Kilo Code can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. There is no API key to paste.

There are two ways to set it up:

| Method                                                   | Best for                    |
| -------------------------------------------------------- | --------------------------- |
| [VS Code extension](#option-a-vs-code-extension)         | Kilo Code in VS Code        |
| [CLI](#option-b-cli)                                     | The Kilo terminal CLI       |

---

## Before you start

- **Kilo Code**, as the VS Code extension or the CLI
- **A MewCP account** with **at least one app connected** under [Apps](https://mewcp.com/dashboard/apps)

---

## Option A: VS Code extension

<Stepper>

1. **Open MCP settings**

   Click the settings icon in the Kilo Code sidebar, open the **Agent Behaviour** tab, then **MCP Servers**.

1. **Add the server**

   Click **Add Server**, choose **Remote (HTTP)**, name it `mewcp`, and paste this URL:

   ```
   https://gateway.mewcp.com/personal/mcp
   ```

1. **Sign in**

   The server shows `needs_auth`. Click the notification, then sign in to MewCP in the browser window and click **Allow access**.

</Stepper>

---

## Option B: CLI

<Stepper>

1. **Open your config**

   Edit `~/.config/kilo/kilo.jsonc`, or `kilo.jsonc` (or `.kilo/kilo.jsonc`) in your project root.

1. **Add the server**

   Merge this into `mcp`, keeping your other settings:

   ```json
   {
     "mcp": {
       "mewcp": {
         "type": "remote",
         "url": "https://gateway.mewcp.com/personal/mcp",
         "enabled": true
       }
     }
   }
   ```

1. **Sign in**

   Run this and approve access in the browser window:

   ```bash
   kilo mcp auth mewcp
   ```

</Stepper>

This is the entire configuration either way. One entry reaches every app you have connected, and connecting another app later needs no change here.

---

## Check it works

Start a new chat and ask:

```
List the tools you can use from MewCP.
```

In the CLI, `kilo mcp list` shows the server status.

You will see four tools, not the tools of every app: `search`, `get_schema`, `manage_connections` and `call_tool`. That is expected. Kilo Code uses them to find and run the right tool for whatever you ask. See [How MewCP works](/mewcp/getting-started#how-mewcp-works).

---

## Troubleshooting

### MewCP shows `needs_auth`

Kilo Code has not signed in yet, or the sign-in has expired. In the extension, click the notification. In the CLI, run `kilo mcp auth mewcp`. See [OAuth Sign-In](/mewcp/authentication/oauth-sign-in#troubleshooting) for errors on the sign-in page.

### A `403` says your plan's billing period has ended

Your MewCP plan needs renewing under [Billing](https://mewcp.com/dashboard/billing).

---

_Last updated on 29 November 2026._
