mcp

v0.3.2
@crawlspec/mcp Checked 2 days ago Published 1 month ago

MCP server for CrawlSpec: run a free SEO audit of any site you own, then read its recommendations, briefs, keywords and page audits from your agent.

An MCP server for CrawlSpec: your agent runs a free SEO audit of a site you own, then reads the crawl back as structured fixes, content briefs, keyword maps and per-page audits. Nineteen tools over stdio, plus a pull command for content releases. Two of the tools need no account and no API token at all, so an agent can walk a first-time user from "here is my site" to a finished report without leaving the conversation. Nothing to install. Point your agent at the package and npx fetches it.

Summary extracted from the README.

@crawlspec/mcp

An MCP server for CrawlSpec: your agent runs a free SEO audit of a site you own, then reads the crawl back as structured fixes, content briefs, keyword maps and per-page audits.

Nineteen tools over stdio, plus a pull command for content releases. Two of the tools need no account and no API token at all, so an agent can walk a first-time user from "here is my site" to a finished report without leaving the conversation.

Install

Nothing to install. Point your agent at the package and npx fetches it.

Any agent with an .mcp.json (Claude Code, Codex, Cursor, Windsurf)

{
  "mcpServers": {
    "crawlspec": {
      "command": "npx",
      "args": ["-y", "@crawlspec/mcp"],
      "env": {
        "CRAWLSPEC_API_KEY": "<your workspace API token>",
        "CRAWLSPEC_API_URL": "https://crawlspec.dev"
      }
    }
  }
}

The token is optional: leave CRAWLSPEC_API_KEY out and the server still starts, the two free-audit tools answer, and every other tool says how to get a token. This is the same block the API docs at https://crawlspec.dev/docs/api print.

Claude Desktop

Same block, in the app's own config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Restart Claude Desktop after editing it.

Check it without an agent

npx -y @crawlspec/mcp --help

Prints the tool table and exits. Requires Node 20 or newer.

The free audit, start to finish

No account, no card, no token:

  1. Ask your agent to audit a site you own. It calls start_free_audit with the URL and your email address.
  2. Before anything is crawled the agent must read you one attestation sentence, word for word, and pass it back verbatim. A paraphrase is refused by the API, on purpose: the sentence is how you say you own the site and understand that up to 25 public pages will be crawled, with robots.txt respected.
  3. The agent polls get_audit_status. A 25-page crawl usually settles in under two minutes.
  4. CrawlSpec emails you the report link. The report is a public page at its own unguessable URL, live for 14 days, and never indexed.
  5. That email also carries a free API token. Set it as CRAWLSPEC_API_KEY in the config above and the free-tier tools below start answering about your own scan.

Tools

Tool Free scan What it answers
start_free_audit no token needed Starts the audit described above.
get_audit_status no token needed Crawl phase, pages fetched, whether the report is ready, how it failed if it did.
list_projects yes The projects this token reaches, with open issue counts.
get_page_audit yes On-demand audit of one page: indexability, title/meta/H1, content depth, open issues.
get_recommendations capped Prioritized fix cards. A free token sees the top 3 with shortened bodies; the totals stay truthful, so your agent can say "3 of 14".
get_briefs workspace Content briefs with full outlines or change lists. Only READY briefs are meant to be implemented. Filter with status and mode; landing, product, feature and pricing pages are listed only with kind: "all".
get_topics workspace Accepted topic clusters and their content gaps.
get_keywords workspace The keyword map: intent, volume, and the page each term ranks with.
get_cannibalization workspace Page pairs competing for the same searches, with merge or differentiate verdicts.
get_consolidated_audit workspace The latest approved audit reconciled against a WebSite Auditor export.
mark_brief_applied workspace A write (needs the write scope): reports that a brief was published, and closes its card. Optional appliedVersion records which revision went live.
get_brief_prompt_pack workspace The versioned, brand- and stack-agnostic hand-off for a brief: instructions, its blocks in order with content inlined, questions, entities and structured data, pinned to a revision. Pass sinceVersion for a patch prompt. Sections whose copy a person approved also carry that copy, to use as written.
request_brief_recheck workspace A write (needs the write scope): enqueues a free 1-3 page verification crawl of an applied brief's page; poll the verdict in each brief's latestSpotCheck from get_briefs.
get_integration_kit content beta The files that wire an app to CrawlSpec content: renderer, catch-all route, component manifest schema, AGENTS.md rules and the GitHub Action. Optional routeGroup (e.g. public) puts the catch-all inside the route group whose layout holds the site chrome. No secrets inside.
validate_component_manifest content beta Dry-runs a crawlspec.components.json: errors, warnings, and which block each component covers. Writes nothing.
register_component_manifest content beta A write (needs content:write): uploads the manifest, since CrawlSpec never reads your repo.
get_release_package content beta An approved content release, by target or release id, as the exact file to write under crawlspec/content/.
verify_release_package content beta Checks what was written against the release hash.
report_release_applied content beta A write (needs release:report): reports a release as deployed, optionally with a commit sha and deploy URL, which starts the live check.

A workspace-only tool answers a free token with a plain refusal that says what a workspace unlocks, not an error. Your agent can relay it instead of silently retrying.

Five tools write, and none of them touches your site: mark_brief_applied, request_brief_recheck, register_component_manifest and report_release_applied write through the Spec API into CrawlSpec, and start_free_audit starts a free scan. Every other tool is read-only.

Pulling content releases

CrawlSpec content central (beta) delivers approved content as files your own tooling writes into your repo. CrawlSpec never holds write access to your code. With a shell (Claude Code, Cursor, Windsurf, v0, Bolt, Replit):

CRAWLSPEC_API_KEY=<project token> npx -y @crawlspec/mcp pull --domain example.com --target /pricing
Flag Required Meaning
--domain yes The project's bare domain.
--target yes The target key of the content, for example /pricing.
--release no A release id. Default: the latest approved release of the target.
--out no Repository root to write under. Default: the current directory.
--token no Token, when CRAWLSPEC_API_KEY is not set.

It writes the release byte-exact to crawlspec/content/pages/<slug>.json (microcopy to crawlspec/content/strings/<ns>.json, site metadata to crawlspec/content/site.json) and checks its sha256 against the packageHash field before writing. Exit codes: 0 written or already up to date, 1 error, 2 hash mismatch (nothing written), 3 no approved release for the target. Each pull is logged on the release as a cli delivery, or action when it runs inside GitHub Actions.

Without a shell (Lovable, Base44), the integration kit from get_integration_kit includes a GitHub Action that runs this same command on a daily schedule with your repository's own token and opens a pull request per target. Never edit files under crawlspec/content/ by hand; change the content in CrawlSpec and pull again.

Configuration

Variable Default Notes
CRAWLSPEC_API_KEY unset Workspace token from https://crawlspec.dev/dashboard/settings/api-tokens, or the free token from a scan email. Leave it out and the server still starts.
CRAWLSPEC_API_URL https://crawlspec.dev Must be https. Plain http is allowed for localhost only, so a token is never sent in the clear.

The token is read from CRAWLSPEC_API_KEY, then a --token <value> argument, then ~/.crawlspec/credentials.json. That file must be chmod 600 and must say {"tier":"lead","token":"..."}: free-scan tokens only, never a workspace token, so a shared on-disk default cannot carry paid access into every agent on the machine.

Free tokens are read-only, pinned to the single project their scan created, expire with the report after 14 days, and stop answering after 150 calls.

Privacy and limits

The crawler only reads the sites it audits and changes nothing on them. It identifies itself as CrawlSpecBot/1.0, obeys robots.txt, and its notice page is at https://crawlspec.dev/bot, including how to have a site excluded.

Terms: https://crawlspec.dev/terms. Privacy: https://crawlspec.dev/privacy.

MIT licensed.