# MCP sign-in: OAuth, consent and keys

Adresse: https://docs.liorhq.com/en/mcp/anmeldung

> OAuth 2.1 for apps such as Claude and ChatGPT, a key for your own agents. Every call requires a sign-in, and consent applies to the server.

Type: Reference
Last updated: 2026-11-25

The [server](/en/mcp) needs an Lior account, even for `initialize` and `tools/list`. When an app acts for you (Claude, ChatGPT, Cursor, VS Code) it uses **OAuth 2.1**; your own agent without a browser takes an [`ath_` key](/en/api/schluessel), which only works with Lior. If something does not work, see [Troubleshooting](/en/mcp/fehlerbehebung).

## How sign-in works [#how-sign-in-works]

1. The app calls the server and gets `401` with the `WWW-Authenticate` header, naming the rights and the description of the sign-in.
2. You sign in to Lior, for example with a code by email.
3. On [app.liorhq.com/verbinden](https://app.liorhq.com/verbinden) you see which app wants to connect to the server and which rights it asks for. The base right ([`lesen`](/en/mcp/rechte#lesen)) is always on. [`vorschlagen`](/en/mcp/rechte#vorschlagen) is on if the app asks for it. The boundary right ([`freigeben`](/en/mcp/rechte#freigeben)) is off until you switch it on, unless you already gave it to this app.
4. The app gets a token, valid for an hour, renewable and only at this server. Lior checks the consent on every call: disconnecting blocks the app at once.

If an app registered itself, the page says its name is not verified: connect it only if you have just set it up yourself.

## Disconnecting [#disconnecting]

In [Settings, MCP](https://app.liorhq.com/einstellungen/mcp) under **Connected apps** you disconnect each connection on its own; that also ends its events.

## For client developers [#for-client-developers]

|          | Lior                                                              |
| -------- | ----------------------------------------------------------------- |
| Resource | `https://mcp.liorhq.com/mcp`                                      |
| Metadata | `https://mcp.liorhq.com/.well-known/oauth-protected-resource/mcp` |
| Scopes   | `lesen`, `vorschlagen`, `freigeben`                               |

Lior accounts have one server of their own: resource `https://mcp.liorhq.com/mcp`, metadata `https://mcp.liorhq.com/.well-known/oauth-protected-resource/mcp`, authorization server `https://app.liorhq.com/api/auth`, the scopes of Lior. Its tokens are valid only there.

If a right is missing, the server answers `403` with `insufficient_scope` (the `scope` lists the existing and the missing right). An invalid, expired, revoked token, or one issued for the other server, gets `401` with `invalid_token`.
