---
name: surface-preflight
description: Use when an agent is about to open or fetch a short or unknown http(s) URL (t.co, bit.ly, lnkd.in, youtu.be, or any untrusted link). Surface unwraps the link and answers fetch or skip; it never returns the page. Mint a free API key first, then preflight with that key.
---

# Surface — keyed link preflight

Surface checks a short link before an agent opens it. The answer is fetch or skip. It never returns the page. Free for the first million requests a month.

Surface by Canada Site Ops. Ontario, Canada.

Host (keep using this origin): https://nova-otter-delta-cloud.grok.me

## Mint a key, then preflight a URL

```bash
npx @surfaceapi/surface init
npx @surfaceapi/surface preflight https://youtu.be/jNQXAC9IVRw
```

After `init` has written `.env`, a bare URL is enough:

```bash
npx @surfaceapi/surface https://youtu.be/jNQXAC9IVRw
```

`init` writes `SURFACE_KEY` to `.env`. `preflight` reads that key (`SURFACE_KEY` or `SURFACE_API_KEY`) and calls `POST /v1/preflight`. If no key is set it tells you to run `init` first. It will not send a keyless preflight and will not auto-mint during preflight.

You can also mint with `POST https://nova-otter-delta-cloud.grok.me/v1/keys` (no email, no card; 5 new keys per IP per day) and set `SURFACE_KEY`.

Python:

```bash
python -m surfaceapi init
python -m surfaceapi preflight https://youtu.be/jNQXAC9IVRw
```

## MCP

Put the minted key in place of `REPLACE_WITH_YOUR_KEY`. Do not send the placeholder.

```json
{
  "mcpServers": {
    "surface": {
      "type": "http",
      "url": "https://nova-otter-delta-cloud.grok.me/mcp",
      "headers": {
        "Authorization": "Bearer REPLACE_WITH_YOUR_KEY"
      }
    }
  }
}
```

Stdio: `npx -y @surfaceapi/mcp` with `env.SURFACE_KEY` set to the same key. Tool: `preflight_url`.
