# How to Connect Zed to MewCP

Zed is a fast, open-source code editor with a built-in AI agent. It connects to remote MCP servers from its settings and signs in to them with OAuth. Add MewCP once, and Zed's agent 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                     |
| ---------------------------------- | ---------------------------- |
| [Settings](#option-a-settings)     | Most people                  |
| [MCP config](#option-b-mcp-config) | Editing the settings file    |

---

## Before you start

- **Zed** installed
- **A MewCP account** with **at least one app connected** under [Apps](https://mewcp.com/dashboard/apps)

---

## Option A: Settings

<Stepper>

1. **Open MCP Servers**

   Go to **Settings → AI → MCP Servers**, or run `agent: open settings` and choose **MCP Servers**.

1. **Add the server**

   Click **Add Server → Add Remote Server**, name it `mewcp` and paste the URL:

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

1. **Sign in to MewCP**

   Zed asks you to sign in with OAuth. Sign in to MewCP in the browser window and click **Allow access**. No API key needed.

</Stepper>

---

## Option B: MCP config

<Stepper>

1. **Open your settings file**

   Run `zed: open settings file` from the Command Palette.

1. **Add the server**

   Put this under the `context_servers` key:

   ```json
   {
     "context_servers": {
       "mewcp": {
         "url": "https://gateway.mewcp.com/personal/mcp"
       }
     }
   }
   ```

1. **Sign in to MewCP**

   Zed asks you to sign in with OAuth. Sign in to MewCP in the browser window and click **Allow access**.

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

In **Settings → AI → MCP Servers**, the dot next to `mewcp` turns green: **Server is active**.

Start a new agent thread and ask:

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

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

---

## Troubleshooting

### The dot next to MewCP does not turn green

Zed has not signed in yet, or the sign-in failed. Open **Settings → AI → MCP Servers** and sign in to `mewcp` again. 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._
