Skip to content

API & MCP

Run the full EU readiness scan — claims, ad policy, conversion UX and tracking/consent — from your own tools or from an AI assistant. Same engine, rules and citations as the web app.

1. Get a key

  1. API and MCP access is part of Pro.
  2. Open Account → API & MCP keys and create a key. It starts with pa_ and is shown once.
  3. Send it as Authorization: Bearer pa_… on every request.

2. Connect an MCP client

Server URL: https://healthpager.com/mcp — transport: Streamable HTTP. Replace pa_YOUR_API_KEY with your key.

Claude Code

terminal
claude mcp add --transport http healthpager https://healthpager.com/mcp \
  --header "Authorization: Bearer pa_YOUR_API_KEY"

Cursor

~/.cursor/mcp.json
{
  "mcpServers": {
    "healthpager": {
      "url": "https://healthpager.com/mcp",
      "headers": {
        "Authorization": "Bearer pa_YOUR_API_KEY"
      }
    }
  }
}

VS Code

.vscode/mcp.json
{
  "servers": {
    "healthpager": {
      "type": "http",
      "url": "https://healthpager.com/mcp",
      "headers": {
        "Authorization": "Bearer pa_YOUR_API_KEY"
      }
    }
  }
}

Claude Desktop and clients without header support

Use the mcp-remote bridge (needs Node.js):

claude_desktop_config.json
{
  "mcpServers": {
    "healthpager": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://healthpager.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer pa_YOUR_API_KEY"
      }
    }
  }
}

Try it

Ask your assistant:

“Scan https://example-shop.eu/products/sleep-ring for the NL market and Meta ads, wait for the result, and list the critical findings with fixes.”

Raw test with curl

terminal
curl -s https://healthpager.com/mcp \
  -H "Authorization: Bearer pa_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

MCP tools

ToolWhat it does
start_scanQueue a scan of one public page (url, market EU/NL/DE, channel google/meta/both/organic). Returns an audit id.
get_scanStatus, overall and pillar scores, finding counts, delta. Use wait_seconds (≤150) to wait for the result.
get_findingsFindings with rule code, severity, evidence, fix, rewritten copy and legal/policy source. Filter by pillar and min_severity.
list_scansYour most recent scans.
rescanScan the same page again and get the score delta.
list_rulesThe versioned rules a scan applies for a market + channel, with citations.

Typical flow: start_scan → get_scan (wait_seconds: 120) → get_findings.

REST API

Base URL https://healthpager.com. Machine-readable spec: /v1/openapi.json (OpenAPI 3.1).

Start a scan

terminal
curl -s -X POST https://healthpager.com/v1/audits \
  -H "Authorization: Bearer pa_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example-shop.eu/sleep-ring","market":"NL","channel":"meta"}'
# → {"id":"<audit-id>", ...}

Poll until done, then read findings

terminal
curl -s https://healthpager.com/v1/audits/<audit-id> -H "Authorization: Bearer pa_YOUR_API_KEY"            # status, scores
curl -s https://healthpager.com/v1/audits/<audit-id>/findings -H "Authorization: Bearer pa_YOUR_API_KEY"   # findings
curl -s -o report.pdf https://healthpager.com/v1/audits/<audit-id>/pdf -H "Authorization: Bearer pa_YOUR_API_KEY"  # 202 = generating, retry
MethodPathPurpose
POST/v1/auditsStart a scan
GET/v1/audits/{id}Status + scores
GET/v1/audits/{id}/findingsFindings
POST/v1/audits/{id}/rescanRe-scan with delta
GET/v1/audits/{id}/historyScore history
GET/v1/audits/{id}/pdfPDF report
GET/v1/audits/{id}/screenshots/{kind}desktop | mobile | consent
GET/v1/me/auditsList scans
GET/v1/rules?market=&channel=Rules in scope

Limits & errors

  • Scans via API/MCP count toward your monthly Pro scan limit.
  • About 120 requests per minute per key; scan creation is limited further.
  • Errors are JSON: {"error": "…"}. 401 invalid key · 402 needs Pro · 403 endpoint not available with a key · 404 not found · 429 slow down or limit reached.
  • In MCP, tool errors come back as a normal result with isError: true and a readable message.

Security

  • A key acts as your account for scans and reports. It cannot manage billing, delete the account or create other keys.
  • We store only a hash of the key. Lost keys cannot be shown again — revoke and create a new one.
  • Do not put keys in client-side code or public repositories.
  • We scan public pages only. Results are hosted in the EU.

This is an automated readiness and risk report. It is not legal advice and not regulatory sign-off (no MDR, FDA, notified-body, or Keuringsraad approval). No attorney-client or notified-body relationship is created. Verify every finding with a qualified professional before you act on it.