# Website Auditor MCP An [MCP](https://modelcontextprotocol.io) server for **[website-auditor.io](https://website-auditor.io)** — AI-visibility (GEO) and site-audit tools you can call from any MCP client (Claude Desktop, Claude Code, Cursor, Codex, and other agents). Ask an agent *"does ChatGPT recommend my business?"*, *"what's my AI-visibility score?"*, *"audit example.com"*, or *"how do I stack up against my competitors?"* and it answers with real data — an overall AI-visibility score (0–100), a per-engine breakdown across **ChatGPT, Perplexity, Claude, Gemini, Microsoft Copilot and Google AI Overviews**, a full site audit (security, performance, crawlability and markup), competitor comparisons, and ongoing monitoring. The server is a thin, authenticated wrapper over the Website Auditor API — the audit engine, AI-visibility scoring and monitoring live in that service; this server just makes them available to agents. --- ## Tools | Tool | Tier | What it does | |---|---|---| | `get_sample_audit` | **Free — no key** | A complete sample report for `example.com` in the exact shape a real audit returns. Needs no API key, no subscription and no network. Try this first to see what you'd be buying. | | `get_ai_visibility` | **Pro** | Current AI-visibility score (0–100) + per-engine breakdown (ChatGPT, Perplexity, Claude, Gemini, Microsoft Copilot, Google AI Overviews) + the top competitor appearing in your place. When the report carries per-area results, also `places` (at most 10: label, state, answers naming you of those asked, the top rival there) and one plain sentence per area in `summary`, after the citywide sentences (withheld for an estimated run or one that scored nothing); an area with no answers is `not_measured` or `not_measured_this_week` with `named: null`, never 0 and not evidence you are missing there; the areas are measured separately from the citywide score (not a breakdown of it), and `places_not_shown` counts the reported areas left out of the list, and `partial: true` marks an area only partly measured. `places` is absent when no area results are shown for the run (the report carries none, none could be read, or the run was estimated or scored nothing), which is not a failure. Pro subscribers also get `trend`: 7- and 30-day score movement from stored snapshot history for the question this audit asked, ending at its snapshot and compared only between measured snapshots that asked it, the overall further only between endpoints the same engines answered (a window engines differed over carries its engine deltas and an `overall_note` saying which answered each; null, with a note, when the audit stored no measured snapshot). Also `recommendation_gap` (points behind the top beatable rival in the answers that *recommend* you, overall and per engine, with one sentence to read back; marketplaces, delivery apps, directories and national chains are not beatable rivals) and `stance_counts` (answers that recommended, mentioned or cautioned against you), each present only when measured. Also `questions_asked`: the questions put to the assistants for the score, when the report recorded them. | | `run_audit` | **Pro**, rate-limited | Full one-time audit → category scores (AI visibility, crawlability and markup as `seo`, security, performance) + top issues + a shareable report URL. Also `recommendation_gap` and `stance_counts` (see `get_ai_visibility`), each present only when measured. | | `get_changes` | **Pro** | What changed in the AI-visibility score — the change in the overall score and the per-engine score changes, for engines measured both times, the overall only when the same engines answered both snapshots (else it is null with an `overall_note` naming which answered each, and the per-engine changes stand alone); `summary` says the change in plain sentences; `competitor_changes`, `new_issues` and `resolved_issues` are always empty. Only between two snapshots that asked the same question (the same business name, market and queries), read from the domain's series: its measured weekly re-audits and any audit that asked the same question as the newest recorded one, while it has no gap longer than four weeks and a day from the newest weekly re-audit that recorded its question, through each later snapshot of the series (weekly re-audits included, recorded or not), to the newest measured snapshot. When there is no such pair it says why instead of a number, with the date the series re-baselined when it did. The domain need not be tracked: history accrues from any audit of it, tracked or not — track_site adds the weekly re-audits to the series, it is not a precondition. | | `compare_competitors` | **Pro** | Head-to-head AI-visibility ranking against named competitor domains + where each appears that you don't. Quota-aware: caps the audit fan-out to your remaining daily quota, reuses recent cached audits, and reports any competitors it had to skip rather than dropping them silently. Also `recommendation_gap`: how far behind the competitor you trail most you are (ties on identical counts are all named), each side as a share of its own answers, over the assistants that answered for BOTH sites; `same_questions` says whether both audits asked the same set of questions (null when either did not record them) and `assistants` which assistants the figures are over. Present only when both audits recorded stances. | | `track_site` | **Pro** | Start (or stop) weekly monitoring of a site's AI visibility. Its weekly re-audits join the history `get_changes` reads from, which audits accrue tracked or not — monitoring watches a site, it does not enable `get_changes`. | | `untrack_site` | **Pro** | Stop monitoring a site and free up a monitoring slot. Deletes the site's monitoring enrollment; past audits are kept. | | `list_tracked_sites` | **Pro** | List the sites you're monitoring, with cadence, active state, and slots used/remaining. | | `get_monitoring_status` | **Pro** | A glanceable dashboard across all tracked sites — latest score of each site's series (the series `get_changes` reads), the date of each one's last scheduled run and when the next runs, and the most recent like-for-like change (or a note, or the summary, saying why there is none), shown as its per-engine changes with a note naming the engines when different ones answered the two snapshots; like `get_changes`, its `change` carries `competitor_changes`, `new_issues` and `resolved_issues`, always empty. | | `list_fixes` | **Pro** | A tracked site's ready-made fixes ("Get this fix"), top first: whether each is needed and why, whether the site's platform can take it, and its newest request and status (live / missing). Records nothing. | | `get_fix_facts` | **Pro** | The business facts the fixes are written from, to show the owner: what the site says, what they confirmed, the business name the audits found, and `seen` (exactly what was shown, sent back unchanged to confirm). | | `get_fix` | **Pro** | "Get this fix": the fix served finished (structured data plus About/FAQ text, an llms.txt, or robots.txt lines that let blocked AI assistants in), the first two written only from the owner's confirmed facts, each block ready to copy, with paste steps for the site's platform and `copy_all` where an agent edits the site. Each call is recorded as a request. Before the facts are confirmed it answers `status: "confirm_first"` with the facts to show the owner; when the newest audit found nothing to change, `status: "nothing_to_fix"`. | | `confirm_facts` | **Pro** | Confirms the facts the owner confirmed or corrected, sending back exactly the `seen` they were shown — never on the owner's behalf. `status: "facts_changed"` when the site changed since. | | `check_fix` | **Pro** | "I've added it": reads the live site for a fix request and says it's live or names what's missing. Once a minute per request (`CHECKED_RECENTLY` with `retry_after`). | | `check_upgrade_status` | Any valid key | Your own subscription standing — tier (`pro` for every paid plan), `plan` (`pro`, `agency` or `enterprise`), status, period end, and what upgrading unlocks (starting Pro requires a payment method and accepting the Terms). Consumes no audit quota. | **`weekly_changes` (accounts in a trial).** While an account is in its free trial, the success replies of `run_audit`, `get_ai_visibility`, `get_report`, `get_recommendations` and `check_upgrade_status` carry `weekly_changes`: `{ summary, tracking, next_check_at, next_check_due?, sites[] }` (`next_check_due` is true when `next_check_at` is already past, an overdue check), how the scores of up to three tracked sites moved, each change given since a date (the same data `get_monitoring_status` reads), when the next weekly check runs, "nothing has changed" when so, or a note that no site is tracked yet. The lookup is cached per API key, per process, for five minutes (a failed one for one minute) and skipped on any failure, so a reply is never changed by it and it adds at most two seconds. It starts beside the work the tool already does, so it is normally hidden: beside the audit in `run_audit` and `get_ai_visibility` (which leave the audited site out of the block), beside the recommendations read in `get_recommendations`, and beside the report read in `get_report`. `check_upgrade_status` starts it once the subscription read has returned and waits for it at the end. Other accounts get no such key. It is served by the stdio server and by both hosted connectors (ChatGPT and Claude), which run this same code. **`next_step` (accounts in a trial that have not tracked a site).** The success replies of `run_audit`, `get_ai_visibility`, `get_recommendations` and `get_report` about a member's own site can carry `next_step`: `{ kind: "track_competitor", site, competitor, first_change_date, trial_ends?, summary }`, one offer to track that site against a competitor (the business the member's own audit found recommended instead, or `null`, and the member names one) with the first weekly update coming back on `first_change_date`, before the trial ends. Whether to offer it is the API's (`POST /api/mcp/next-step`): a running trial, no `track_site` yet, a site that is theirs, at most once a day and three times a trial, each one logged. This server asks only for an account it already knows is trialing, only after the tool has succeeded (never on an error reply, never for `get_sample_audit`, never for a free audit), and gives the answer up after 1.5 seconds or any failure, so a reply is never changed or delayed by it. A definite "no step" from the API is remembered per API key and site, in this process, for five minutes, so a member who has had today's step does not cost a call on every reply. The `summary` is worded per surface: where an offer may be stated (a local install) it says the member is on a trial and when it ends, and on the two directory surfaces (the ChatGPT app and the Claude connector, `isDirectoryChannel`), whose rules forbid promotion, it is a fact about the member's own site (track it, check each week, the first update on a date), and names no plan, no trial and no trial date, and `trial_ends` is left out, of the reply and of the schema those surfaces publish in `tools/list` (`nextStepDirectoryField`). The server instructions describe the field: answer the question first, say the offer in one sentence, and call `track_site` and `compare_competitors` only if the user says yes (on the Claude connector, described rather than directed). Served by the stdio server and both hosted connectors. **`offer` (a `PRO_REQUIRED` reply).** A reply that says a tool is not in the account's plan, or that a free account's 3 audits of the UTC month are used, is worded for the tool that was blocked, not as a list of everything Pro has, and carries `offer`: `{ feature, site, competitor, trial_eligible, trial_charge_date, free_audits_left, free_audits_reset, upgrade_url, summary }`. `site` is the site of the account's latest audit and `competitor` a business that audit found recommended instead (`your site` and no competitor clause when there is none); the facts come from website-auditor-api's `POST /api/mcp/upgrade-offer` (asked once, 1.5 s, and every field checked here again), and a reply the API cannot answer for is still specific to the tool, promises no trial, and keeps the `get_sample_audit` pointer. The pointer is dropped for an account with a completed audit. `upgrade_url` says what caused the click: `?source=mcp-limit&tool=&site=&plan=pro` (`mcp-status` for `check_upgrade_status`; a configured `source` is kept and the cause rides beside it as `from=`); website-auditor-api counts all of them as `mcp` signups. What the reply may say differs by surface because the directories' rules do: a server that is not directory-listed, and the Claude connector's plan-boundary answers, state the 7-day trial (card needed, no charge until `trial_charge_date`) or, when the account used one in the last 12 months, the price billed from today; the hosted ChatGPT server (`WA_UPSELL_STYLE=info`) says what the plan does not include, the free audits left and when they come back, and links where plans are described, with no price, trial, charge date or call to action (OpenAI's plugin guidelines 5.1), and `trial_eligible` and `trial_charge_date` are `null` there; a free account's monthly cap is worded the same, neutrally, on both hosted services. The reply stays an error result (`isError`): OpenAI documents `content` as reaching the model, and a success shape would have to satisfy 20 tools' output schemas for a call that did nothing. **`check_upgrade_status` for an account without a plan** states what the account has instead of "there is no free API tier": for a free ChatGPT or Claude connection the allowance (`You have 2 of 3 free audits left this month; they reset on December 1, 2026 (UTC).`), and, where a link-style answer may, the trial and the day the first charge would be; for a lapsed subscription the trial only as the account's own terms allow. **Plans.** Every tool marked **Pro** works the same on an Agency or Enterprise account: they are paid plans, and the API reports each as `tier: "pro"`. What differs is the account's own limits, which the API enforces and these tools report as it answers: `list_tracked_sites` and `track_site` use the account's site limit (3 on Pro, 5 for a subscription started before 18 October 2026; 10 on Agency, plus any extra sites it has added; the agreed number on Enterprise), and an Agency or Enterprise account's re-runs of its tracked sites draw on a monthly count of extra audit runs, answered as `EXTRA_RUNS_UNAVAILABLE` once it is used up. Tracked sites are the account's client list: `list_tracked_sites` shows the same sites as the Agency command center. A teammate on an Agency workspace connects with a workspace token (a `wa_` key from the workspace's Team & API tab), not with a login of their own, which has no plan. ## Prompts Clients that support MCP prompts (Claude Desktop, claude.ai) render these as something you can pick from a menu, so you don't have to phrase the request yourself or know which tool to ask for. In clients that don't surface prompts (Codex, currently), nothing is lost but the menu — ask in words and the same tools run. | Prompt | Needs a key? | What it does | |---|---|---| | **See a sample report** | **No** | Walks through a complete report for `example.com`. No arguments, no setup — one click from any install. | | **Check my AI visibility** | Pro | Runs `get_ai_visibility` for a domain you name, then explains the score, which assistants name the business, and who is named instead. | | **Run a full site audit** | Pro | Runs `run_audit` for a domain and summarises it by category, with the three fixes that matter most. | | **Compare me to a competitor** | Pro | Runs `compare_competitors` for your domain against a named rival, and explains where they get named and you don't. | Each Pro prompt falls back to `get_sample_audit` when no API key is configured, so you always get output rather than an error. ### Naming the business (optional) `get_ai_visibility` and `run_audit` both accept two optional arguments that decide *what question* the AI-visibility check actually asks. `compare_competitors` accepts `business_location` only — see below for why it takes no name: | Argument | Omitted | Supplied | |---|---|---| | `business_name` | Detected from the site, and flagged with `name_warning` when it could not be verified | Taken as fact and recorded as caller-supplied — which suppresses the warning | | `business_location` | Detected from the site; if nothing is found the questions widen to the country, or drop the place entirely | Scopes the questions to that place | **Supply a name only when you actually know it.** A supplied name overrides detection and is treated as confirmed, so a guess is scored exactly as if a human had verified it — and silences the warning that would have told you otherwise. Leaving it out is the safer default: detection is transparent about its own uncertainty. The same applies to location, in the other direction. Omitting it is correct for a national or global business and wrong for a local one, since a local business measured without a place is measured against the wrong queries. **On `compare_competitors`:** it takes `business_location` and applies it to your site *and every competitor*, because a comparison asks about one market — scoring you locally while scoring your rivals globally would rank the answers to two different questions. It deliberately takes no `business_name`: a name identifies one business, and forwarding yours to your competitors would score every one of them as you. The result names the market it used, so a scoped comparison is never mistaken for a global one. ```text "Check AI visibility for hawaiibackroad.com, the business is Big Island Backroad Adventures in Hilo, HI" ``` --- ## Install & configure The server runs directly via `npx` — no clone or build required. **Try it before you buy it.** Install with no API key at all and ask your agent for a *sample audit* — `get_sample_audit` returns a full report for `example.com` in the exact format a real run produces, so you can check the shape fits your needs first. **Pricing.** Auditing real domains needs a Website Auditor subscription at **$49/month** — eligible new customers get a **7-day free trial** (payment method required to start; no charge until the trial ends; customers who used a trial in the last 12 months are billed immediately). Sign up and create an API key at **[api.website-auditor.io/admin_portal](https://api.website-auditor.io/admin_portal/?source=mcp)**, then set it as `WA_API_KEY` below. There is no free API tier — a key only functions with an active subscription. **Claude: add the connector.** Claude needs no API key and no `npx`: Website Auditor is a remote connector, added by hand as a custom connector, and it uses your Website Auditor account (plans are described under Pricing above). Once added it works in Claude on the web, in the desktop app and on mobile. 1. In Claude, go to Customize > Connectors, click + Add, then Add custom connector. 2. Name it "Website Auditor" and paste this address: `https://claude-mcp.website-auditor.io/mcp`. Click Continue. 3. Leave the sign-in settings as Claude suggests, click Add, then sign in with the same email you use for Website Auditor. 4. Ask Claude "How visible is my site to AI assistants?" to check it works, then remove the old extension. Claude asks you to connect your Website Auditor account when it first needs it, which may be right after Add or at the question in step 4. No account yet? Signing in creates one. If you never installed the old Website Auditor extension, ignore the last part of step 4. On Claude's Free plan you can add only one custom connector. On Team and Enterprise plans an Owner adds it first under Organization settings > Connectors, then each member connects. If you installed the old extension, it can no longer be updated and is being retired: the date it stops, and these steps in more detail, are at [website-auditor.io/claude-connector](https://website-auditor.io/claude-connector). To run the server on your machine instead (Cursor, Codex, Claude Code, or Claude Desktop with an API key), configure it as below. **Claude Desktop** (`claude_desktop_config.json`), **Cursor** (`~/.cursor/mcp.json`), and most other clients use the same `mcpServers` shape: ```jsonc { "mcpServers": { "website-auditor": { "command": "npx", "args": ["-y", "website-auditor-mcp"], "env": { "WA_API_KEY": "wa_your_key_here" } } } } ``` **Claude Code** — add it from the CLI: ```bash claude mcp add website-auditor -e WA_API_KEY=wa_your_key_here -- npx -y website-auditor-mcp ``` **Codex** — the CLI, IDE extension and ChatGPT desktop app all read the same `~/.codex/config.toml`, so one of these covers all three: ```bash codex mcp add website-auditor --env WA_API_KEY=wa_your_key_here -- npx -y website-auditor-mcp ``` ```toml [mcp_servers.website-auditor] command = "npx" args = ["-y", "website-auditor-mcp"] [mcp_servers.website-auditor.env] WA_API_KEY = "wa_your_key_here" ``` Codex doesn't render MCP prompts, so the [Prompts](#prompts) above won't appear as menu entries there — ask in words instead (*"show me a sample audit"*). Or install the packaged **Codex plugin**, which bundles the same server and restores the prompts as skills (which Codex does render): ```bash codex plugin marketplace add SpikeyCoder/website-auditor-mcp codex plugin add website-auditor@spikeycoder ``` **Cursor** — one-click install, or put the same `mcpServers` JSON as above in `~/.cursor/mcp.json`: [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=website-auditor&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIndlYnNpdGUtYXVkaXRvci1tY3AiXSwiZW52Ijp7IldBX0FQSV9LRVkiOiIifX0%3D) The one-click config arrives with an empty `WA_API_KEY` — the sample report works as-is; fill the key in under **Settings → MCP** to audit real domains. There is also a packaged **Cursor plugin** (this server plus the prompts as skills) in [`cursor-plugin/`](cursor-plugin/); its Cursor Marketplace listing is pending — status in [docs/CURSOR-PLUGIN.md](docs/CURSOR-PLUGIN.md). Restart the client and the tools appear. ### Getting an API key `WA_API_KEY` is a per-user key (it starts with `wa_`) minted from a Website Auditor account at **[api.website-auditor.io/admin_portal](https://api.website-auditor.io/admin_portal/?source=mcp)** — the admin portal, where you subscribe and manage keys. Minting a key requires an active subscription ($49/month; eligible new customers get a 7-day free trial — payment method required, no charge until the trial ends): there is no free API tier, so every tool except `get_sample_audit`, `check_upgrade_status` and `get_recommendations` needs one. `get_sample_audit` needs no key at all. `get_recommendations` answers any valid key with the next steps from an audit already on record; with Pro it also says where to get listed, what AI assistants get wrong about the business, and which fix file fixes each finding. Treat the key like a password — set it only in your MCP client's `env` and never commit it. **Restart after setting or changing the key.** `WA_API_KEY` is read once, when the server starts, so a key added while the client is running is invisible to it — in Claude Desktop, quit and reopen the app. Without the restart the tools keep returning the same `AUTH_REQUIRED` you just acted on, which looks identical to the key not working. ### Configuration (environment variables) | Var | Default | Purpose | |---|---|---| | `WA_API_KEY` | _(required)_ | Per-user API key (starts with `wa_`). | | `WA_API_BASE_URL` | `https://api.website-auditor.io` | The Website Auditor API this server wraps. | | `WA_SITE_URL` | `https://website-auditor.io` | Used to build shareable report links. | | `WA_UPGRADE_URL` | `https://api.website-auditor.io/admin_portal/` | Where auth and subscription errors point you. `?source=mcp` is appended so a signup that started here is attributable; set your own `source` to override. For tools that take a domain, `site=` (the hostname only — no path or query) is added too, so the portal can name the site — but only when the link points at the portal (the host of `WA_API_BASE_URL`), never at another host. Not surfaced on quota errors — the daily cap and the rhythm check are not an upsell. A free account's monthly cap (3 audits a UTC month) is the exception on a channel that may make an offer (not the two hosted services; today only they run free audits, so this is a dormant hook): its answer states what Pro includes and links the API's `?plan=pro` page (same host as this URL, else this URL). The hosted ChatGPT (`info`) and Claude (`neutral`) services keep it informational. | | `WA_UPSELL_STYLE` / `WA_UPSELL_INFO_URL` | `link` / `WA_SITE_URL` | `info` style (the hosted ChatGPT server) links every auth and plan error to `WA_UPSELL_INFO_URL`, an informational plans page, instead of `WA_UPGRADE_URL`, with no price or trial in the text. `?source=mcp` is appended unless a `source` is set; `site=` is added for tools that take a domain only when this URL points at the portal (the host of `WA_API_BASE_URL`) — not at the homepage default or any other host. | | `WA_TOOL_COPY` | `full` | `neutral` (the hosted Claude connector) drops the price, the trial and the "call get_sample_audit first" pointer from tool descriptions, takes the terms out of the server instructions' billing paragraph, and turns the instructions' unasked-offer and "call it instead" blocks into descriptions. Anthropic's directory review rejects all of these as promotion or as telling Claude to call tools. Paywall answers still state the terms (see `WA_UPSELL_STYLE`), except a free account's own limits (rhythm, daily cap, monthly cap), which stay informational here. With `WA_FREE_AUDITS=claude` on, `run_audit` and `get_ai_visibility` say the free allowance instead of "Requires a Website Auditor subscription", `get_report` says what an account with free audits can read, `get_sample_audit` says what a real audit has, and the billing paragraph says the allowance (see `WA_FREE_AUDITS`). | | `WA_LINK_CHANNEL` | `mcp` | Which surface this server is: `chatgpt` (the hosted ChatGPT service), `claude` (the hosted Claude service) or `mcp`. Pro members' replies from `run_audit`, `get_ai_visibility`, `get_monitoring_status`, `compare_competitors`, `get_recommendations`, `get_gtm_plan` and `track_site` carry a `dashboard` link to their own dashboard, tagged `src=-` so the dashboard can tell where an arrival came from. Any other value reads as `mcp`; the domain is never part of the tag. | | `WA_FREE_AUDITS` | _(unset)_ | `chatgpt` turns on free audits in ChatGPT, and only on an info-style server (`WA_UPSELL_STYLE=info`, the hosted ChatGPT service): a connected account without a plan may run `run_audit` and `get_ai_visibility` on its own site and `get_report` for it (four of six AI engines), and the results carry `next_steps`. Everything else stays gated. `claude` does the same on the hosted Claude service, and only there (`WA_UPSELL_STYLE` link, `WA_LINK_CHANNEL=claude`, `WA_TOOL_COPY=neutral`), with no `next_steps`. Where free audits are on, what used to say an audit needs a plan says the allowance instead, on both services in the same words (`3 audits a month are free`, then what the free audits leave out, weekly tracking of a site and more: as what is not included in the free audits on ChatGPT; on the Claude connector as what Pro adds in its answers and as what needs a subscription in its descriptions and instructions): the descriptions of `run_audit`, `get_ai_visibility`, `get_report` and `get_sample_audit`, the server instructions' billing paragraph, `check_upgrade_status` when nothing is connected, the sample audit's note and the first-connection `AUTH_REQUIRED`. An account the API does not mark keeps `check_upgrade_status`'s "locked" wording: this server refuses it an audit. Any other value, and npm/stdio installs: off, and what they say (a key needs a subscription) is true there. website-auditor-api must have `FREE_CHATGPT_AUDITS` (or `FREE_CLAUDE_AUDITS`) on too; the API decides who is eligible. | | `WA_AUTH_CHALLENGE` | `result` | Hosted with Mixed Auth only. `http` (the hosted Claude connector) answers with an HTTP 401 + `WWW-Authenticate`, before the tool runs, both a call to an account-only tool with nothing presented and any tool call with a token the authorization server rejects. It is the only signal Claude starts sign-in from. A token that could not be checked (introspection down) is not refused. `result` puts the challenge in the tool result's `_meta`, which is what ChatGPT reads. | | `WA_REQUEST_TIMEOUT_MS` | `120000` | Timeout for API calls. | | `WA_AUDIT_CACHE_TTL_MS` | `86400000` | Reuse a domain's audit within this window instead of spending quota (used by `compare_competitors`). Defaults to 24h. | | `WA_SUBSCRIPTION_CACHE_TTL_MS` | `60000` | How long a resolved Pro/free tier is cached per key before re-checking the subscription. | | `WA_METRICS_DISABLED` | _(unset → metrics on)_ | Set to `1`/`true` to disable anonymous usage telemetry. | Only `WA_API_KEY` is normally needed; the rest have sensible defaults. See [`.env.example`](.env.example) for the full list. --- ## Auth & tiers Your key is validated on every call. The Pro/free tier is resolved live from the API and cached briefly, so upgrades and downgrades take effect within about a minute: - **No key** → `get_sample_audit` still works (that's the point of it); every other tool returns `AUTH_REQUIRED` with the price and a sign-up link. - **Revoked or unrecognized key** → `INVALID_KEY`, carrying the API's own remediation ("generate a new key"). Distinct from `PRO_REQUIRED`: the fix is a new key, not a purchase. - **No active subscription** (valid key, lapsed/canceled/never subscribed) → `PRO_REQUIRED`, worded for the tool that was blocked and carrying `offer` (below); `check_upgrade_status` still answers so the caller can learn why, and `get_recommendations` still answers with the free list (`"tier": "free"`). - **Subscribed** (status `active` or a trial in progress) → all tools. Errors are normalized to stable codes agents can branch on — e.g. `AUTH_REQUIRED`, `INVALID_KEY`, `PRO_REQUIRED`, `OVER_QUOTA`, `LIMIT_REACHED` (the account's tracked-site limit), `EXTRA_RUNS_UNAVAILABLE` (an Agency or Enterprise account's extra audit runs on its tracked sites are used up for the month or paused; the message names the day they are back), `UNREACHABLE_DOMAIN`, `INVALID_INPUT`, `TIMEOUT`. A domain that resolves but whose pages never load (down, refusing, timing out, or answering 404/5xx on every page) returns `UNREACHABLE_DOMAIN`; one that does not resolve is refused before any audit runs, as `INVALID_INPUT`. Neither gets a fabricated score. --- ## Develop ```bash npm install npm run build # compile TypeScript → dist/ npm start # serve over stdio npm run dev # run from source without building npm test # vitest npm run typecheck ``` The suite is hermetic — the API client, subscription provider and meter are injected, and HTTP is mocked at the `fetch` boundary, so no network is touched. --- ## Privacy Policy **Anonymous install id.** When telemetry is enabled, the server generates a random UUID on first run and stores it at `~/.config/website-auditor-mcp/install-id` (or `$XDG_CONFIG_HOME`), sending it with each event. It exists solely to tell one install restarting many times apart from many separate installs — without it, install counts are just restart counts. It is randomly generated, never derived from your machine, username or network, and is not a fingerprint. Setting `WA_METRICS_DISABLED` stops telemetry entirely: no id is generated and nothing is written to disk. This connector talks to a single external service: the **Website Auditor API** at **[website-auditor.io](https://website-auditor.io)**. When you invoke a tool it sends only two things to that API: - the **target domain** you asked to audit or monitor, and - your **API key** (`WA_API_KEY`), used to authenticate the request and resolve your plan tier. At startup, and at most hourly while tools are in use, the server also asks the same API for Pro's current price (`GET /pricing.json`), so the price it states is never out of date. That request carries no key, no install id and no data about you or your sites. That's the full extent of what leaves your machine. The connector does **not** collect, store, or transmit your files, prompts, conversation content, or any other personal data, and it does not send data to any third party beyond the Website Auditor API. Your API key is held only in your MCP client's configuration (in Claude Desktop it is stored in the OS keychain and injected as an environment variable); it is never written to the bundle or logged. Anonymous, aggregate usage telemetry (which tool ran, success/failure, latency — no domains, no keys, no personal data) may be emitted to improve the service, and can be disabled entirely by setting `WA_METRICS_DISABLED=1`. Installed as a desktop extension, the same opt-out is a **"Disable anonymous usage telemetry"** checkbox in the extension's settings. Full privacy policy: **https://website-auditor.io/privacy** --- ## License [MIT](LICENSE) — © 2026 Kevin Armstrong / SpikeyCoder. This covers the MCP server in this repo: the client that talks to the Website Auditor API. The audit engine and the API behind it are separate products, not covered here, and running real audits still needs a Website Auditor account. Learn more at **[website-auditor.io](https://website-auditor.io)**.