Skip to main content
Glama
sqid MCP server

sqid MCP server

Official
by sqid-dev

sqid MCP server

Sqid for AI editors and agents over the Model Context Protocol: the same actions as the sqid CLI, served as tools. Hosted, Streamable HTTP, OAuth through Sqid's own sign-in. No API keys to paste.

claude mcp add --transport http --scope user sqid https://mcp.sqid.dev/mcp && claude mcp login sqid

Run it in a new terminal window (Terminal on Mac, PowerShell on Windows): it adds the server and opens your browser to sign in to Sqid and approve the connection. Then start Claude Code and type /sqid:setup, or just say "set up Sqid". (Pasted it into Claude Code instead? Type /mcp → sqid → Authenticate.) After that the agent can create a site, get the snippet, wire webhooks, list identified visitors, enrich_contact a contact, read moments and billing, as the person who approved it.

Tools

Tool

Does

get_started

The guided entry point: starts the free pay-as-you-go Developer plan if needed, ensures a Sandbox, and returns the account, a plan line from real billing state, sites with origins, the Playground, the three paths (own_site, embed_oem, just_try) and the three plans

whoami

Who approved the connection, role, plan present

list_sites, create_site, set_site_origins, get_snippet, get_site_status

Sites, their allowed origins, the install snippet, the "stream is live" check

add_webhook (default event identification), list_webhooks, preview_webhook, test_webhook

Where identified visitors (or moments, pages, clicks) are delivered

list_visitors, get_visitor

Identified visitors on demand

enrich_contact

Email, phone or LinkedIn URL to a full record (matched: false when none; refused on the Sandbox)

get_signals_status, set_signals, list_moments

Signals state, on or off, recent moments

get_billing_status

Plan (Developer, OEM Launch, Enterprise), card, credits (dollar value on Developer only), welcome credits, period end and pending downgrade, this month

Card entry and plan changes are not tools. They happen in the console or the CLI.

Every tool carries MCP annotations: reads are readOnlyHint: true, the seven that change things (get_started, create_site, set_site_origins, add_webhook, test_webhook, enrich_contact, set_signals) are not, and nothing is marked destructive because no tool deletes. Clients such as Claude Code use these to decide what needs a confirmation.

Related MCP server: Webflow MCP Server

Guided setup

The server ships one MCP prompt, setup (/sqid:setup in Claude Code). It calls get_started, then asks what Sqid should do: (a) show who visits my website, (b) add identification to a product I sell to other businesses (OEM), or (c) just see it work (the Playground; the default). It detects what it can instead of asking, asks at most three multiple-choice questions, says what will change before each write, never changes a plan without an explicit yes, and ends with a checklist of what actually happened. The flow matches the CLI skill. Saying "set up Sqid" without the prompt gets the same flow: the server instructions are a short router to get_started and this prompt.

How auth works

Clerk (the instance behind app.sqid.dev) is the OAuth authorization server. This server is a resource server at MCP_RESOURCE_URL, per the MCP authorization spec: clients discover it through /.well-known/oauth-protected-resource, register as public clients (Client ID Metadata Documents, with dynamic registration as fallback), obtain a token whose audience is that URL with PKCE, and send it on every POST /mcp. A missing or bad token gets a 401 with a WWW-Authenticate challenge pointing at the metadata.

The client's token is verified here and goes no further. MCP forbids passing it upstream, so for calls to app.sqid.dev the server is a Clerk machine (sqid-mcp) and mints its own short-lived machine token whose claims name the verified person. The console admits that machine and acts as that person, logged as such. Nothing is stored on this server beyond those tokens in memory.

Run

It is a Cloudflare Worker (src/worker.js, wrangler.jsonc), served at mcp.sqid.dev. The same app also runs on Node (src/server.js) for local runs and tests.

npm install
npm test                       # offline: fake Sqid API, real MCP client
cp .env.example .dev.vars      # local secrets for wrangler dev (never committed)
npm run dev                    # wrangler dev on http://localhost:8787
npm run check                  # wrangler deploy --dry-run
npm run deploy                 # wrangler deploy

Secrets are set once per Worker and never live in the repo:

wrangler secret put CLERK_PUBLISHABLE_KEY
wrangler secret put CLERK_SECRET_KEY
wrangler secret put MCP_MACHINE_SECRET_KEY

Health: GET /alive. Logs: wrangler tail.

Registering with Clerk

  1. Clerk dashboard, Agents, MCP servers: add MCP_RESOURCE_URL and allow public clients to connect. Clerk then issues tokens with that audience and shows the consent screen.

  2. Clerk dashboard, Configure, Machines: create a machine sqid-mcp; its secret key is MCP_MACHINE_SECRET_KEY; its id goes into the console's clerk.mcpMachineIds.

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Privacy friendly, cookieless web analytics built MCP-first. "Add analytics to my Next.js app" → an AI agent runs the setup_analytics_for_site tool, picks the right install snippet, edits your layout file, and verifies the script is loading. OAuth onboarding, no API keys to paste.
      28
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants like Claude, ChatGPT, and Cursor to query GA4 traffic, conversion, channel, e-commerce, and demographic reports conversationally, and to manage properties, data streams, audiences, key events, and other configuration through 62 read and write actions. Access can be scoped per account with read-only mode and destructive actions disabled by default.
      MIT