agents

Give your agent a clean web extraction tool.

Agent onboarding should be short: try demo, get a key, connect MCP, or call REST.

MCP config
{
  "mcpServers": {
    "haunt": {
      "command": "npx",
      "args": ["-y", "@hauntapi/mcp-server"],
      "env": { "HAUNT_API_KEY": "PASTE" }
    }
  }
}

MCP for agents.

Use @hauntapi/mcp-server when Claude, Cursor, or another agent needs public web data.

Hosted MCP.

Use https://hauntapi.com/mcp/server with Authorization: Bearer ${HAUNT_API_KEY}.

REST for apps.

Use direct HTTP when your queue, app, or script needs structured extraction.

safe first success

Demo before credentials.

The MCP tool try_demo_extract returns fixed sample JSON. Real extraction still needs your Haunt key.

Failure contract

Good agents handle captcha_required, login_required, thin_public_content, and not_found instead of pretending blocked pages worked.