Manage the MCP server that lets AI assistants publish to HC Protocol sites.
One Vercel deployment, three endpoints:
| Endpoint | Protocol | Used By |
|---|---|---|
/api/mcp | MCP (Streamable HTTP) | Claude.ai |
/api/publish | REST (JSON) | ChatGPT, scripts, any HTTP client |
/api/openapi.json | OpenAPI 3.1 spec | ChatGPT Actions import |
| Variable | Required | Description |
|---|---|---|
NP_API_KEY | Yes | Default NowPage API key (used when customer provides no Bearer token) |
ALLOWED_DOMAINS | No | Comma-separated domain allowlist. Empty = no restriction. |
Two modes:
NP_API_KEY. Can publish to any allowed domain.NP_API_KEY scoped to their domainALLOWED_DOMAINS in Vercel env varsTwo layers:
ALLOWED_DOMAINS env var blocks all publishing to unlisted domainshttps://YOUR-VERCEL-URL/api/mcphttps://YOUR-VERCEL-URL/api/openapi.jsonUse Vercel dashboard → Function logs to see publish requests, errors, and per-customer usage.
See also: Deploy Guide | Customer Guide