# Sign In with Your MewCP Account

Most AI apps connect to MewCP by signing in with your MewCP account over OAuth. You give the app one URL, it opens a browser window, you sign in and allow access, and the app is connected. There is no key to copy, paste or rotate.

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

Sign-in works on your **personal toolset**: the apps you have connected under [Apps](https://mewcp.com/dashboard/apps) in the dashboard. Project toolsets in business projects take an [API key](/mewcp/authentication/mewcp-key) instead.

---

## Sign-in or API key

|                         | OAuth sign-in                                                            | API key                                                             |
| ----------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| Use it for              | AI apps you use yourself, such as Claude, ChatGPT, Cursor or Claude Code | Code that runs without a browser: SDKs, agent frameworks, scripts   |
| What goes in the config | The URL only                                                             | The URL and an `Authorization` header                               |
| Works with              | Your personal toolset                                                    | Your personal toolset and project toolsets                          |
| To stop it              | Disconnect the app under **API Keys → Connected agents**                 | Revoke the key under **API Keys**                                   |

Every guide under [Connect AI Apps](/mewcp/connect-agents) uses sign-in. The [Frameworks & SDKs](/mewcp/frameworks) guides use an API key, since code you run has no browser to sign in with.

---

## How sign-in works

<Stepper>

1. **Add MewCP to your app**

   Follow your app's guide under [Connect AI Apps](/mewcp/connect-agents). Most apps need only the URL above.

1. **Sign in to MewCP**

   A browser window opens the first time the app connects. Some apps wait until you click **Connect** or **Authenticate**, or run a login command, which the app's guide shows. Sign in to MewCP if you are not signed in already.

1. **Allow access**

   MewCP shows which app is asking, for example _"Claude Code wants to access your MewCP account"_, and what it will be able to do: **Use your personal MewCP toolset**. Check the app and where it returns to, then click **Allow access**. Click **Cancel** to refuse.

1. **Go back to your app**

   The browser hands you back to the app, which is now connected. You can close the tab.

</Stepper>

### What the consent screen tells you

- **Who is asking.** Under the app's name, **Verified** with a web address means MewCP has verified the app. **Recognized app** means MewCP knows the app. **from** followed by a web address names the site the app comes from. **Unverified app** comes with a warning: _"MewCP hasn't verified this app. Only continue if you trust it."_
- **Where you return.** **Returns to** names the site you go back to after you allow access. **Returns to an app on this computer** is normal for desktop and terminal apps. Only continue if you just started sign-in in that app.
- **Which account.** The screen shows the MewCP account you are signed in as. Choose **Switch account** to use another one.

---

## Staying signed in

You sign in once per app. The app keeps its access fresh on its own, so you are not asked again while you keep using it.

You sign in again when:

- the app has not used MewCP for 30 days,
- a year has passed since you first signed in to that app, or
- you disconnected the app.

Each sign-in is separate. The same app on two computers shows up as two connected agents, and disconnecting one leaves the other signed in.

---

## See and disconnect connected agents

Every app you have signed in to MewCP is listed under **Connected agents** on the [API Keys](https://mewcp.com/dashboard/api-keys) page of the dashboard, with the device it signed in from, when it connected and when it was last active.

To remove one, click **Disconnect** next to it. The app loses access to your MewCP account within 15 minutes and has to sign in again to come back.

---

## Troubleshooting

### No browser window opens

Some apps open the sign-in page only when you ask. Look for **Connect**, **Authenticate** or a login command in your app's guide under [Connect AI Apps](/mewcp/connect-agents). Apps that run on a server with no browser cannot sign in: use an [API key](/mewcp/authentication/mewcp-key) instead.

### _"This sign-in request has expired or was already used"_

The sign-in page was left open too long, or was already completed. Go back to your app and start sign-in again.

### _"Your sign-in has expired. Sign in again from your MCP client."_

The app's sign-in has run out or was disconnected. Sign in again from the app: reconnect or re-authenticate the `mewcp` server there.

### _"Signed-in access works only on your personal toolset"_

The app signed in, but its URL points at a project toolset. Use `https://gateway.mewcp.com/personal/mcp`, or send a project API key for a project toolset.

### The app connects but uses the wrong account

The app is signed in as a different MewCP account. Disconnect it under **API Keys → Connected agents**, then sign in again from the app and choose **Switch account** on the consent screen.

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

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

---

## For MCP client developers

MewCP follows the MCP authorization spec. A request to the personal endpoint without a valid token gets a `401` whose `WWW-Authenticate` header points at the protected resource metadata, so spec-compliant clients find sign-in on their own.

| Item                            | Value                                                                       |
| ------------------------------- | --------------------------------------------------------------------------- |
| Protected resource metadata     | `https://gateway.mewcp.com/.well-known/oauth-protected-resource/personal/mcp` |
| Authorization server metadata   | `https://gateway.mewcp.com/.well-known/oauth-authorization-server`           |
| Grant types                     | `authorization_code` with PKCE (`S256`), `refresh_token`                    |
| Client registration             | Client ID metadata documents, or dynamic client registration                |
| Client authentication           | None (public clients)                                                       |
| Scope                           | `mcp`                                                                       |

Send the access token as `Authorization: Bearer <token>`. Access tokens last 15 minutes. Refresh tokens are rotated on every use.
