Skip to content
Open Onsite

Connect your AI tool

Connect Claude Code to Onsite

Add Onsite to Claude Code with one command, sign in from the terminal, and ask about your sites while you work.

Add Onsite to Claude Code with one command. It’s then available in every project on your computer.

  • An Onsite account on a team with an active plan.
  • Claude Code installed and signed in.
  1. Add the server

    In a terminal, run:

    Terminal window
    claude mcp add --scope user --transport http onsite https://onsite.so/mcp

    --scope user makes Onsite available in all your projects. Leave it out to add Onsite to the current project only.

  2. Sign in to Onsite

    Start Claude Code, type /mcp, choose onsite, and select Authenticate. Onsite opens in your browser.

    If no browser opens, run this instead and open the link it prints:

    Terminal window
    claude mcp login onsite --no-browser
  3. Choose a team and allow access

    Sign in with Google, or with a code sent to your email. If you’re on more than one team, pick the one Claude Code should use, then select Allow.

Run claude mcp list. Onsite shows as connected. Then ask in Claude Code:

Using Onsite, show me the sites I can access.

If you can’t sign in from this computer, for example on a remote server, use a token. Create one in Settings › MCP under Connected apps and tokens, then run:

Terminal window
claude mcp add --transport http onsite https://onsite.so/mcp \
--header "Authorization: Bearer <your-onsite-token>"

A token lasts 90 days. Keep it private, and revoke it in Settings › MCP when you no longer need it.

claude mcp list shows Needs authentication

You added Onsite but haven’t signed in yet. Type /mcp in Claude Code, choose onsite, and select Authenticate.

A server called onsite already exists

Run claude mcp get onsite to see where it points. If it isn’t https://onsite.so/mcp, remove it with claude mcp remove onsite and add it again.

Claude Code shows the wrong team's sites

Each connection uses one team. Run claude mcp logout onsite, then sign in again and pick the other team. See Manage connections.

It worked before and now it doesn't

A connection lasts 90 days, and stops if you revoke it or leave the team. Sign in again with /mcp. See Troubleshooting.