# How to Connect Muse Code to MewCP

Muse Code is Meta's coding agent for the terminal. It reads remote MCP servers from its settings file and signs in to them with OAuth. Add MewCP once, and Muse Code can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. There is no API key to paste.

---

## Before you start

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

---

## Set up MewCP

<Stepper>

1. **Open your settings**

   Edit `~/.config/muse/settings.json`. Create it if it does not exist.

1. **Add the server**

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

   ```json
   {
     "schema_version": 1,
     "mcpServers": {
       "mewcp": {
         "type": "streamable-http",
         "url": "https://gateway.mewcp.com/personal/mcp"
       }
     }
   }
   ```

1. **Sign in**

   Run this and approve access in the browser window:

   ```bash
   muse mcp login mewcp
   ```

</Stepper>

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

---

## Check it works

Start a new `muse` session, since settings are read when it starts, and ask:

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

`/mcp` shows the connection status.

You will see four tools, not the tools of every app: `search`, `get_schema`, `manage_connections` and `call_tool`. That is expected. Muse 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 is missing after you changed the settings

Muse Code reads settings when a session starts. Start a new `muse` session.

### Sign-in has expired or failed

Run `muse mcp login 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._
