# Manage connections

> See which AI tools are connected to Onsite, switch teams, create tokens, give a connection access to your account, and disconnect.

Every AI tool you connect, and every token you create, shows in Onsite under [**Settings › MCP**](https://onsite.so/settings/mcp). You can see when each was last used, and disconnect any of them at any time.

## See your connections

Open **Settings › MCP** and scroll to **Connected apps and tokens**. Each row shows:

- the app's name, or the name you gave a token
- whether it's **Active**, **Expired** or **Revoked**
- when it expires, and when it was last used

The list shows your own connections on the team you're in. To see another team's, switch to that team in Onsite first.

## Disconnect an AI tool

In **Settings › MCP**, select **Revoke** next to the connection. It stops working straight away. You can also remove Onsite in the AI tool itself, but revoking it in Onsite is the surest way to cut access.

## How long a connection lasts

A connection lasts 90 days. After that, your AI tool asks you to sign in to Onsite again. A connection also stops working when:

- you revoke it in **Settings › MCP**
- you leave the team, or are removed from it
- the team's plan ends

## Switch to another team

Each connection works with one team, the one you picked when you signed in. To use a different team:

1. Disconnect Onsite in your AI tool, or revoke the connection in **Settings › MCP**.
2. Connect again from your AI tool.
3. When Onsite asks, pick the other team and select **Allow**.

Tools that let you add the same server more than once, like Claude Code, Codex and most editors, can keep one connection per team. Give each a different name, for example `onsite-clients`, and pick a different team when each one signs in.

## What a connection can do

A connection acts as you, with your role on the team. It can't do anything you can't do in Onsite.

| Role | Sees | Can change |
| --- | --- | --- |
| Owner or admin | Every site on the team | Everything, including people, invites, portfolios and the team's AI preferences |
| Contributor | Every site, or the sites picked for them | What their permissions allow, like site settings, buckets, chart notes, alerts or sharing |
| Viewer | Every site, or the sites picked for them | What their permissions allow. By default, Ask Onsite and AI only |

Everyone can change their own preferences and contact Onsite support. Before anything is emailed, posted to Slack, published as a link or created in Google Sheets, your AI tool shows you a preview and waits for your OK.

## Use a token

Some tools can't sign in to Onsite in a browser, and some setups, like a remote server or a script, shouldn't. Use a token instead.

<Steps>
  <Step title="Create the token">
    In **Settings › MCP**, under **Connected apps and tokens**, type a name that says where you'll use it, like "Work laptop Cursor". Choose the **Connection permissions**, then select **Create token**.
  </Step>
  <Step title="Copy it now">
    Copy the token. It's shown only once.
  </Step>
  <Step title="Add it to your tool">
    Send it in a header with every request: `Authorization: Bearer <your-onsite-token>`. Each setup guide shows where it goes for that tool.
  </Step>
</Steps>

A token lasts 90 days. Treat it like a password: don't share it, don't commit it to a repository, and revoke it when you stop using it.

## Account access

Signing in from an AI tool gives it access to the team you picked. A few things belong to your own Onsite account rather than the team, so they need a token with **This team and my account preferences** as its **Connection permissions**:

- finding and adding Search Console properties from your Google account, and reconnecting sites
- creating Google Sheets in your Drive
- your own preferences: time zone, emails and your Slack channel
- your name, your linked Google accounts and your connected apps
- creating a new team, or leaving this one

If your AI tool says an action needs an account connection, create a token with these permissions and use it in place of the sign-in.

## Related

<CardGroup cols={2}>
  <Card title="Troubleshooting" icon="wrench" href="/mcp/troubleshooting">
    Fixes for common connection problems.
  </Card>
  <Card title="What you can ask" icon="lightbulb" href="/mcp/ask">
    Everything a connection can do.
  </Card>
</CardGroup>
