Let Claude set it up

One command in your app’s folder. Claude Code adds the app, puts the snippet in your layout and checks it’s live.

Terminal, in your app's folderbash
claude mcp add --transport http appsdash-setup https://appsdash.co/mcp --header "Authorization: Bearer <setup token>" && claude "I signed up for Appsdash (appsdash.co), an analytics dashboard, and want it on my production site (ask me the domain if this repo doesn't make it clear). The appsdash-setup MCP server I just added uses a setup token I made in my Appsdash account: it can read my stats, add a site and check an install, nothing else. Call setup_status, add the site with add_site if it isn't there, then show me the exact change before editing: one script tag in the file setup_status names. The script sets no cookies and sends page views, referrers, screen size and country, no personal data. Details: https://appsdash.co/privacy and https://appsdash.co/docs/ai-setup. Once I say ok, make the change, deploy it or tell me to, then call check_install."

Signed in, the command comes with your own token filled in.

What happens.

  1. You press Let AI do it. On the first-run screen, the install step or AI agents. It makes a token with setup access, shown once.
  2. You run the command in your repo. It adds Appsdash’s MCP server to Claude Code and starts it on: “I signed up for Appsdash (appsdash.co), an analytics dashboard, and want it on my production site (ask me the domain if this repo doesn't make it clear). The appsdash-setup MCP server I just added uses a setup token I made in my Appsdash account: it can read my stats, add a site and check an install, nothing else. Call setup_status, add the site with add_site if it isn't there, then show me the exact change before editing: one script tag in the file setup_status names. The script sets no cookies and sends page views, referrers, screen size and country, no personal data. Details: https://appsdash.co/privacy and https://appsdash.co/docs/ai-setup. Once I say ok, make the change, deploy it or tell me to, then call check_install.”
  3. Claude does the setup. It calls setup_status, adds the app with add_site if it isn’t there, and puts one plain script tag in your layout.
  4. You deploy, it checks. It calls check_install against your live site and fixes what fails. Your first visit lands on the dashboard.

The tools it uses

setup_status
Every app: counting yet? revenue connected? do sales carry the visit id? Search Console? The next step, and the exact snippet for the app's framework with the file it goes in.
add_site
Adds an app by its production domain and returns its id and snippet. The same domain twice returns the same app. Your plan's limits apply; 10 an hour.
check_install
Loads your live page from our server, finds the snippet, sends a test event that is never counted, and says what to fix if a step fails. Every token has this one, read-only ones too.

Token out of your history.

This one asks for the token and reads it hidden, so your shell keeps only $T.

Terminal, in your app's folderbash
printf "Appsdash setup token: "; read -rs T; echo; claude mcp add --transport http appsdash-setup https://appsdash.co/mcp --header "Authorization: Bearer $T"; r=$?; unset T; [ $r -eq 0 ] && claude "I signed up for Appsdash (appsdash.co), an analytics dashboard, and want it on my production site (ask me the domain if this repo doesn't make it clear). The appsdash-setup MCP server I just added uses a setup token I made in my Appsdash account: it can read my stats, add a site and check an install, nothing else. Call setup_status, add the site with add_site if it isn't there, then show me the exact change before editing: one script tag in the file setup_status names. The script sets no cookies and sends page views, referrers, screen size and country, no personal data. Details: https://appsdash.co/privacy and https://appsdash.co/docs/ai-setup. Once I say ok, make the change, deploy it or tell me to, then call check_install."

In Cursor.

Put this in .cursor/mcp.json (keep it out of git), reload, then say the same sentence in Agent chat.

.cursor/mcp.jsonjson
{
  "mcpServers": {
    "appsdash-setup": {
      "url": "https://appsdash.co/mcp",
      "headers": {
        "Authorization": "Bearer <setup token>"
      }
    }
  }
}

Optional: which channel made each sale.

Ask the agent to pass the tracker’s visit id into checkout. Then every sale shows the source, campaign and landing page that brought it. The code per provider:

Paddle.js: Paddle.Checkout.openjs
Paddle.Checkout.open({
  items: [{ priceId: "pri_...", quantity: 1 }],
  customData: { appsdash_visit: window.appsdash?.visit?.() ?? "" },
});

Keep any customData you already send (like product): add appsdash_visit beside it. Paddle copies it onto renewals.

Stripe Checkout: Your checkout route (server)js
// browser: send the visit id with the request that makes the session
fetch("/api/checkout", { method: "POST", body: JSON.stringify({ priceId, visit: window.appsdash?.visit?.() ?? "" }) });

// server
const session = await stripe.checkout.sessions.create({
  mode: "subscription", // or "payment"
  line_items: [{ price: priceId, quantity: 1 }],
  client_reference_id: visit || undefined,
  success_url, cancel_url,
});

Already use client_reference_id? Put it in metadata: { appsdash_visit: visit } instead. The key needs Checkout Sessions read.

Stripe Payment Links: Any page with a buy.stripe.com linkhtml
<script>
  document.addEventListener("click", (e) => {
    const a = e.target.closest('a[href^="https://buy.stripe.com/"]');
    const visit = window.appsdash?.visit?.() ?? "";
    if (!a || !visit) return;
    const url = new URL(a.href);
    url.searchParams.set("client_reference_id", visit);
    a.href = url.toString();
  }, true);
</script>

Payment Links keep client_reference_id from the URL on the Checkout Session. The key needs Checkout Sessions read.

Lemon Squeezy: Your buy buttonjs
const url = new URL("https://YOUR-STORE.lemonsqueezy.com/buy/VARIANT-ID");
url.searchParams.set("checkout[custom][appsdash_visit]", window.appsdash?.visit?.() ?? "");
location.href = url.toString(); // or LemonSqueezy.Url.Open(url.toString())

Turn the webhook on (order_created): Lemon Squeezy sends custom data only to webhooks, never through its API.

Polar: Your checkout route (server)js
const checkout = await polar.checkouts.create({
  products: [productId],
  metadata: { appsdash_visit: visit }, // visit = window.appsdash?.visit?.() ?? "" sent from the browser
  successUrl,
});

Polar copies the checkout's metadata onto the order.

Whop: Your checkout route (server)js
// browser: send the visit id with the request that makes the checkout
fetch("/api/checkout", { method: "POST", body: JSON.stringify({ variantId, visit: window.appsdash?.visit?.() ?? "" }) });

// server, with your own Whop key (checkout_configuration:create)
const res = await fetch("https://api.whop.com/api/v1/checkout_configurations", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.WHOP_API_KEY}`, "Content-Type": "application/json", "Api-Version-Date": "2026-12-01" },
  body: JSON.stringify({ variant_id: variantId, metadata: { appsdash_visit: visit } }),
});
const { purchase_url } = await res.json(); // send the buyer there

Whop copies a checkout configuration's metadata onto its payments.

Questions.

Is the token read-only?

Tokens are read-only by default. The setup command makes one with setup access because you clicked for it: it can also add an app and read setup status. It can't delete anything, can't see or paste keys, and can't connect payments or Google; those links open in your browser. Revoke it on AI agents and it stops on the next call.

Does the token end up in my shell history?

The one-line command has it, so yes, like any command. The token ends after 7 days and making a new command ends the old one. Rather not? Use the variant that asks for the token and reads it hidden, shown below and next to the command once you make it.

Does it work with Cursor, Windsurf or another agent?

Any agent that speaks MCP over HTTP with a header works. Cursor reads .cursor/mcp.json; the prompt is the same sentence.

Which frameworks?

Next.js (App and Pages Router), Astro, Nuxt, SvelteKit and plain HTML get a file and a line. WordPress, Webflow and Framer get the settings page to paste it into, since there's no repository to edit.

What if I'm on Solo?

Solo holds one app. setup_status says so before the agent tries, and add_site answers with the Billing link instead of adding a second app.

Set up every app in one sitting.

Start free

14 days free · no card