How the NowPage MCP server authenticates paying customers and protects access.
Your customers connect Claude.ai or ChatGPT to their own website and publish pages by talking to AI. No CMS, no code, no login — just ask and it publishes.
Two independent security layers protect every publish request:
| Layer | What It Does | Who Controls It |
|---|---|---|
| 1. Domain Allowlist | Blocks publishing to any domain not in the ALLOWED_DOMAINS env var | You (server admin) |
| 2. Bearer Token | Customer's API key is forwarded with every request | Customer (their key) |
| 3. NowPage Validation | NowPage verifies the key is valid and scoped to the target domain | NowPage platform |
In the NowPage admin, create a new API key scoped to the customer's domain (e.g., clientsite.com).
Go to Vercel → Project Settings → Environment Variables.
Add their domain to ALLOWED_DOMAINS (comma-separated):
ideas.asapai.net,cowork.asapai.net,clientsite.comRedeploy after changing env vars.
Share the Customer Connection Guide along with:
https://nowpage-mcp.vercel.appCustomer pastes the URL and their API key into Claude.ai or ChatGPT. Done. They can publish immediately.
Two ways to instantly cut off a customer:
| Method | How | Effect |
|---|---|---|
| Remove domain | Delete their domain from ALLOWED_DOMAINS + redeploy | All requests to that domain are blocked at the server |
| Invalidate key | Revoke their API key in NowPage admin | NowPage rejects their requests even if domain is still allowed |
Both methods take effect immediately. Use both for full revocation.
| Mode | Auth | Use Case |
|---|---|---|
| Owner | No Bearer token needed | You (admin) publishing to your own sites. Server uses its own API key. |
| Customer | Bearer token required | Paying customers. Their key is scoped to their domain only. |
Future enhancements: Usage tracking per customer, rate limiting, Stripe auto-provisioning, and a self-service onboarding portal are planned but not yet built. The current system handles manual onboarding at scale up to ~50 customers.
See also: Customer Guide · Admin Guide · Deploy Guide