squarespace-mcp: Instructions file for Claude Code

CLAUDE.md

squarespace-mcp CLAUDE.md is an instructions file for Claude Code from timncox/squarespace-mcp. It costs 2,902 tokens per session, scanned A, original, MIT.

A set of instructions for developing and debugging a Squarespace MCP server. Squarespace is a website-building platform, and MCP lets AI tools interact with external services.

In plain words
What is it for?
Working on tools that edit Squarespace sites, rebuilding and testing the server, re-authenticating sessions, and checking API changes.
Why use it?
It gives agents project-specific guidance about commands, architecture, authentication, sessions, and common 401 errors.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is timncox/squarespace-mcp's own configuration. It tells Claude Code how to work on squarespace-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything squarespace-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timncox/squarespace-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/timncox/squarespace-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/timncox/squarespace-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for squarespace-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/timncox/squarespace-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/timncox/squarespace-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/timncox/squarespace-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/timncox/squarespace-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for squarespace-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/timncox/squarespace-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/timncox/squarespace-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,902 This file is loaded in full into every session.
When invoked 2,902 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02902 $0.02902
Opus 5.5 $0.01161 $0.01161
Sonnet 5.5 $0.00580 $0.00580
Haiku 4.5 $0.00290 $0.00290

Measured 23d ago against content hash 0088628adca2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

squarespace-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Squarespace MCP — CLAUDE.md

What This Project Is

MCP server that edits Squarespace websites via the Content Save API. Exposes 134 tools for text, images, sections, blocks, pages, menus, forms, commerce, navigation, design, code injection, blog posts, gallery management, PDF menu parsing, section snapshots, Wayback Machine recovery, and more. Used from Claude Desktop and Claude Code (usually parked — revive via /mcp-revive squarespace).

Commands

npm run mcp     # Start MCP server (tsx src/mcp-server/index.ts)
npm run build   # TypeScript compile — the parked MCP config runs dist/, so rebuild after src changes
npm test        # vitest run (~1508 tests, 69 files; 15 known auth/login failures in 3 files pre-date 2026-10-08)
node scripts/relogin.mjs [subdomain...] [--headless]   # re-auth the Squarespace session
node scripts/smoke.mjs [subdomain]                     # endpoint-drift check (read tools vs live API)

Auth & Sessions (read this before debugging 401s)

Auth is cookie-based (storage/auth/sqsp-session.json, a Playwright storageState). The Content API needs a per-site member-session + crumb pair for every site; sessions go stale in ~hours and any browser use of the cookies rotates them, invalidating the stored copy.

  • 401 anywhere → call the sq_relogin tool (headless, no user action) or run node scripts/relogin.mjs <subdomain>. Credentials come from SQSP_EMAIL/SQSP_PASSWORD in .env; no CAPTCHA has ever appeared.
  • Never "fix" a 401 with sq_restore_session right after a fresh login — the .bak is the older, expired session.
  • Endpoint drift is real. Squarespace changes internal APIs under this server. 2026-07-08: injection values moved out of /api/settings (read from /api/config/GetInjectionSettings), and SaveInjectionSettings requires form-encoded header/footer (old injectHeader names were accepted-but-ignored — a silent no-op). 2026-07-19: GET /api/settings started serializing set-type fields as {key: true} maps while PUT /api/settings only accepts the array form the editor UI sends — so read-modify-write PUTs 400 (empty body) until sanitized; see sanitizeSettingsForPut() in content-save/site.ts. 2026-08-07: rendered page HTML dropped the data-page-sections attribute, breaking resolvePageIds on every uncached page ("Could not resolve page"); the editor's GET /api/page-sections/by-collection-ids?collectionIds={id} is now the authoritative pageSectionsId source — see getPageSectionsIdByCollectionId() in content-save/pages.ts. When a tool errors or silently no-ops, run scripts/smoke.mjs first, then capture ground truth with scripts/capture-config-api.mjs <subdomain> </config/...> — headless for read traffic, --headful to drive the panel by hand (e.g. click SAVE) while it records every request with full write payloads. Diff the UI's payload against the MCP client's. Note most config panels stage changes and only write on an explicit SAVE click; nothing fires on toggle/typing. Use the trial/sandbox site (sphere-green-b2j7) for write experiments, never a live client site.

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · +1 lines · +113 tokens per session 0088628adca2
  2. 28d ago Changed · +117 tokens per session f6839c78fe7f
  3. 2mo ago First seen · 151 lines · 2,672 tokens per session scan A 6e96086db51c

Subscribe to this mod's changes

squarespace-mcp CLAUDE.md is an instructions file published in the GitHub repository timncox/squarespace-mcp (8 stars, last pushed 3d ago), licensed MIT. It adds 2,902 tokens to every session, about $0.0116 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

squarespace-mcp CLAUDE.md compared with instructions from other repositories

squarespace-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
squarespace-mcp CLAUDE.mdtimncox/squarespace-mcpInstructions file83d agoMITA2,902Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode