﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>URL: /developers/agents/claude-code

---
title: "Website audits in Claude Code"
sidebarTitle: "Claude Code"
description: "Run a website audit in Claude Code: install the squirrelscan plugin (skills plus MCP server), then use /audit-website to audit and fix issues."
icon: "terminal"
---

To run a website audit in Claude Code, install the squirrelscan plugin and run `/audit-website`. For a step-by-step walkthrough, see the [Claude Code guide](https://squirrelscan.com/for/claude-code).

squirrelscan plugs straight into Claude Code. The plugin bundles both skills and the hosted MCP server, so Claude can run audits, read findings as tools, and fix them in your repo, all from one install.

## 1. Install the CLI

The skills and local audits run through the `squirrel` binary.

<Tabs>
  <Tab title="macOS / Linux">
    ```bash
    curl -fsSL https://install.squirrelscan.com | bash
    ```
  </Tab>
  <Tab title="Windows">
    ```powershell
    iwr -useb https://install.squirrelscan.com/install.ps1 | iex
    ```
  </Tab>
</Tabs>

Local audits run entirely on your machine. Signed out, they need no account and cost nothing; signed-in audits spend credits. Verify with `squirrel --version`.

## 2. Add squirrelscan

<Tabs>
  <Tab title="Plugin (recommended)">
    The plugin bundles both skills plus the hosted MCP server:

    <div class="sq-install">

    ```text
    /plugin marketplace add squirrelscan/skills
    ```

    ```text
    /plugin install squirrelscan@squirrelscan
    ```

    </div>

    That's it, skills and MCP tools are both available. Authenticate the MCP server for cloud features (below).

    Added the older `squirrelscan/squirrelscan` marketplace before? It now points the plugin at squirrelscan/skills, so it keeps working: run `/plugin marketplace update squirrelscan` then `/plugin update squirrelscan@squirrelscan`. To switch marketplaces instead, remove the old one first (Claude Code won't add a second marketplace named `squirrelscan`, and removing it uninstalls the plugin):

    <div class="sq-install">

    ```text
    /plugin marketplace remove squirrelscan
    ```

    ```text
    /plugin marketplace add squirrelscan/skills
    ```

    ```text
    /plugin install squirrelscan@squirrelscan
    ```

    </div>
  </Tab>
  <Tab title="MCP only">
    Add just the hosted server (dynamic client registration, no client id needed):

    ```bash
    claude mcp add --transport http squirrelscan https://mcp.squirrelscan.com/mcp
    ```

    Then run `/mcp`, select **squirrelscan**, and choose **Authenticate**. Full options, scopes, and the API-key variant are on the [MCP client setup](/developers/mcp-clients#claude-code) page.
  </Tab>
  <Tab title="Skills only">
    Install the skills without the MCP server:

    ```bash
    squirrel skills install
    ```

    The skills drive the CLI directly, so signed-out local audits work with no auth.
  </Tab>
</Tabs>

<Tip>Prefer a button? [**Add to Claude Code**](https://squirrelscan.com/add/claude) links here.</Tip>

## 3. Authenticate (for cloud)

Local audits need nothing. For hosted crawling, publishing, and credits, log in once. With the MCP server added, run `/mcp` → **squirrelscan** → **Authenticate**, or from the shell:

```bash
claude mcp login squirrelscan
```

Tokens are stored in your OS keychain, never in a config file, so a committed `.mcp.json` stays safe.

## 4. Run an audit

Trigger the skill with a slash command:

```text
/audit-website
```

Claude detects your project's website, runs the audit, and summarizes issues by severity. Or be explicit:

```text
/audit-website https://nutshop.squirrelscan.com focusing on accessibility and performance
```

Or just ask in natural language:

```text
Use the audit-website skill to audit nutshop.squirrelscan.com and fix all high-severity issues.
```

### Plan mode for big fixes

For larger efforts, let Claude plan before it edits:

```text
Enter plan mode. Use the audit-website skill to audit nutshop.squirrelscan.com,
then create a plan to fix all high and medium severity issues.
```

Claude runs the audit, groups fixes, orders them by dependency, and waits for your approval before changing code.

### Parallel fixes with subagents

```text
Audit nutshop.squirrelscan.com, then spawn subagents to fix in parallel:
accessibility, SEO meta tags, and performance.
```

## Next steps

<CardGroup cols={2}>
  <Card title="Fix your website with a coding agent" icon="wand-sparkles" href="/guides/fix-your-site-with-an-ai-agent">
    A full worked example of the audit-and-fix loop.
  </Card>
  <Card title="Hosted MCP server" icon="plug" href="/developers/mcp">
    The full tool list, auth, and credits.
  </Card>
  <Card title="MCP client setup" icon="toy-brick" href="/developers/mcp-clients#claude-code">
    Scopes, API-key auth, and JSON config.
  </Card>
  <Card title="Rules reference" icon="list-checks" href="/rules">
    Every audit rule and how it's fixed.
  </Card>
  <