# API tokens and MCP

To work with quiry's conversations and customers from tools outside the console, create a token. You do this in **Settings > API tokens**. The menu appears only if you have permission to manage API tokens.

## Create a token

1. Under **New token**, write a name that says what the token is for.
2. Choose the **Permissions** to give it. Pick only what the job needs.
3. Select **Create token**.

> The token is shown only right after you create it. Copy it now. You cannot see it again after leaving this screen.

Treat a token like a password. Do not paste it into a code repository or a chat.

## Revoke a token

Check **Last used** in the **Tokens** list, and **Revoke** any token that is unused or leaked. A revoked token stops working immediately.

## Connect over MCP

quiry provides an MCP server. Connect an AI tool such as Claude and it can read conversations, reply, and change settings from there. It can do only what the token's permissions allow.

Select **Copy command** under **MCP connection**, put your token in place of `<token>`, and run it in a terminal.

```
claude mcp add --transport http quiry https://quiry.me/api/mcp --header "Authorization: Bearer <token>"
```

Connection steps per tool are in [Check and reply to conversations from Claude, ChatGPT and Cursor](/docs/mcp-clients).

## Connected apps

Apps connected by logging in, instead of with a token, appear under **Connected apps**. When an app asks to connect, quiry shows a screen asking which permissions to grant, and only apps you allowed stay listed.

**OAuth clients** are for registering an app of your own that connects by login. Creating one gives you a **Client ID**, and a **Client secret** as well if you need one.

Next is [Check and reply to conversations from Claude, ChatGPT and Cursor](/docs/mcp-clients).
