mcp
v0.3.2MCP 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.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_free_audit
Start a free CrawlSpec audit of a website you own or have permission to audit - no account and no API token. Before calling this you MUST read the exact attestation sentence to the human, word for word, and get an explicit yes; pass that same sentence verbatim as `attestation` (a paraphrase is refused) and set `tosAccepted` only if they also agreed to the Terms at /terms. Never invent the email address - ask for it. Returns a report URL to poll with get_audit_status; the emailed report carries a free API token that unlocks list_projects, get_page_audit and the top fixes from get_recommendation…
| Parameter | Type | Description |
|---|---|---|
attestation * | string | Must be exactly this sentence, after you have read it aloud to the human and they said yes: "I own this site or have permission to audit it, and I understand CrawlSpec will crawl up to 25 public pages… |
email * | string | The human's email address. Ask for it; never guess or reuse one from context. |
tosAccepted * | boolean | True only if the human accepted the Terms at https://crawlspec.dev/terms. Never assume. |
url * | string | The site to audit, absolute http(s) URL, e.g. "https://example.com" |
marketingConsent | boolean | Optional, defaults false: may CrawlSpec email them about the product. |
get_audit_status
Poll a free audit started with start_free_audit: crawl phase, pages fetched, whether the report is ready, and how it failed if it did. Takes the report token (or the whole /scan/<token> URL). Read-only and unauthenticated - the token is the credential.
| Parameter | Type | Description |
|---|---|---|
token * | string | The report token from start_free_audit, or the whole /scan/<token> URL |
list_projects
List every CrawlSpec project with its domain, last Search Console sync date and open issue count.
get_recommendations
Prioritized fix cards for a project - technical (template/config/infrastructure fixes) AND content (briefs to implement, cannibalization verdicts, topic opportunities). Default status OPEN.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain, e.g. "gplcoffee.dev" |
status | string |
get_briefs
Content briefs with full outline/change-list content. Use status=READY for human-approved briefs only - governance: only READY briefs should be implemented. Each brief also carries currentVersion, appliedVersion, revisionCount, provenance (ai_draft | human_edited | accepted_ai_draft), demand (search volume and Search Console impressions this term has, if any) and its questionsToAnswer/entities, plus, for APPLIED briefs, appliedDelta (Search Console clicks/impressions/position before and after it was applied), and latestSpotCheck (status, verdict, checkedVersion, requestedAt, completedAt of the…
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
kind | string | Pass "all" to include landing, product, feature and pricing pages (left out by default) |
mode | string | new-content = a page that does not exist yet; improve-page = a change list for an existing URL |
status | string |
get_topics
Topic coverage: accepted topic clusters with their demand-weighted content gap entries.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
get_keywords
The keyword map: terms with intent, monthly search volume and the page each ranks with. mapped=false returns unmapped opportunities (demand with no ranking page). Paginated: default 200 rows, pass the returned nextCursor as cursor for the next page.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
cursor | string | nextCursor from the previous page |
limit | integer | Rows per page (default 200) |
mapped | boolean |
get_consolidated_audit
The latest human-approved consolidated audit (WebSite Auditor report reconciled against the crawl, frozen on approval). 404 until one exists.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
mark_brief_applied
Report that a READY content brief was actually published on the site: flips it to APPLIED and closes its recommendation card. Accepts an optional appliedVersion (positive integer, defaults to the brief's currentVersion) recording which revision was published. One of the two Spec API writes (request_brief_recheck is the other); needs a token with spec:write. Only a READY brief can be marked applied (the human review gate); this tool cannot revert APPLIED - a human reopens a brief as a draft in the dashboard.
| Parameter | Type | Description |
|---|---|---|
briefId * | string | ContentBrief id from get_briefs |
domain * | string | Project bare domain |
appliedVersion | integer | The revision that was published (default: the brief's currentVersion); cannot be ahead of currentVersion |
get_page_audit
On-demand audit of one page: indexability, title/meta/H1 checks, content depth, striking-distance queries, open issues. url may be absolute or a bare path.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
url * | string | Page URL (absolute or path, e.g. "/pricing") |
keyword | string | Target keyword override for keyword checks |
get_cannibalization
Page pairs competing for the same searches, with merge/differentiate verdicts and the contested queries. Computed on demand from Search Console data.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
get_brief_prompt_pack
The versioned, brand- and stack-agnostic hand-off for a content brief: a generic composer instruction (plus the project's and brief's own preamble, if set), the page's blocks in order with their content inlined, questions to answer, entities to mention, must-fix items and structured data. Pinned to an immutable revision - version defaults to the brief's currentVersion. Pass sinceVersion (lower than version) to also get a patch prompt: only what changed between the two revisions, for a composer that already implemented the earlier one. A section whose copy a person approved also carries it as c…
| Parameter | Type | Description |
|---|---|---|
briefId * | string | ContentBrief id from get_briefs |
domain * | string | Project bare domain |
sinceVersion | integer | An earlier revision version to diff against for a patch prompt; must be lower than version |
version | integer | Revision version to pin the pack to (default: the brief's currentVersion) |
request_brief_recheck
Enqueue a free, 1-3 page verification crawl of an APPLIED brief's target page, checking whether its must-fix items actually landed. Free, up to 10 times per brief per day; refuses a brief that is not APPLIED. Poll the verdict with get_briefs - each brief's latestSpotCheck carries status and verdict (LANDED / PARTIAL / NOT_LANDED / ERROR) - rather than this call, which only starts the check. One of the two Spec API writes; needs a token with spec:write.
| Parameter | Type | Description |
|---|---|---|
briefId * | string | ContentBrief id from get_briefs |
domain * | string | Project bare domain |
get_integration_kit
The one-time wiring for content central (invite-only beta): the renderer, the component registry generated from the registered component manifest (or a starter crawlspec.components.json when none is registered), a catch-all route, the manifest JSON Schema, an AGENTS.md snippet and a GitHub Action template, each as { path, content }, plus step-by-step instructions. Write each file at its path; nothing in it is secret. appDir is "app" (default) or "src/app". routeGroup (optional, e.g. "public" or "(public)") puts the catch-all in that route group, so CrawlSpec pages render inside the group layou…
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
appDir | string | Where the App Router lives (default "app") |
routeGroup | string | Route group for the catch-all, e.g. "public" or "(public)": the group whose layout holds the site header, footer and main (default "crawlspec") |
validate_component_manifest
Check a crawlspec.components.json (contract crawlspec.components.v1) without storing it: returns ok, errors, warnings and coverage (every CrawlSpec block type and variant mapped to a component id, or null). Pass repoFiles (for example the output of git ls-files) so every import path is checked against the repo; CrawlSpec never reads the repo itself. Read-only; needs content:read.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
manifest * | The crawlspec.components.json document, parsed or as its file text | |
rendererDir | string | Repo-relative directory of crawlspec/renderer.tsx, to resolve "./" imports |
repoFiles | array | Repo-relative file paths (e.g. git ls-files) so every import path is checked |
register_component_manifest
Upload the tenant repo's crawlspec.components.json so CrawlSpec composes content against the real components. Validates first and stores nothing when there are errors; otherwise it becomes the project's current manifest (earlier ones are superseded) and get_integration_kit regenerates the registry from it. Optional commitSha records which commit it came from. Needs a token with content:write.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
manifest * | The crawlspec.components.json document, parsed or as its file text | |
commitSha | string | The commit the manifest belongs to (hex) |
rendererDir | string | Repo-relative directory of crawlspec/renderer.tsx, to resolve "./" imports |
repoFiles | array | Repo-relative file paths (e.g. git ls-files) so every import path is checked |
get_release_package
Fetch an approved content release (contract crawlspec.content.v1) by releaseId, or the latest approved release of a targetKey. Returns the package bytes exactly as frozen, its packageHash and the repo path to write them to (crawlspec/content/...). Write content unchanged - never re-type or reformat it - then confirm with verify_release_package; with a shell, npx -y @crawlspec/mcp pull does both. The first fetch marks the release DELIVERED. Needs content:read.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
releaseId | string | ContentRelease id; wins over targetKey |
targetKey | string | The page or target the release is for, e.g. "/pricing"; picks its latest approved release |
verify_release_package
Check what was written against the release: pass the file content (preferred; the hash is recomputed server-side) or the packageHash field read from the file (the hash covers the canonical JSON without that field, not the file bytes). Returns { match, expected, actual }; a mismatch means the file was altered and the live check will not verify it. Read-only; needs content:read.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
releaseId * | string | ContentRelease id from get_release_package |
content | string | The written file content, verbatim (preferred) |
packageHash | string | The packageHash field of the written file, only if you cannot send the content. It is sha256 of the canonical JSON without that field, not of the file bytes, so a sha256sum of the file never matches;… |
report_release_applied
Report that a release was deployed (optional commitSha and deployUrl). CrawlSpec then checks the live page for every block marker at +5 min, +30 min, +2 h and +24 h, and the release goes VERIFIED at the first check that finds them all. Refuses a superseded release. Needs a token with the opt-in release:report scope.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Project bare domain |
releaseId * | string | ContentRelease id from get_release_package |
commitSha | string | The deployed commit (hex) |
deployUrl | string | The deployment URL, if the host gave one |