Give your AI agent a web extraction tool.
Start with the no-key try_demo_extract tool. Add a free Haunt key when you want the agent to extract real reachable public pages.
Haunt does not solve CAPTCHAs, log in for you, or bypass verification pages. It returns clear failures when a page is blocked.
{
"mcpServers": {
"haunt": {
"url": "https://hauntapi.com/mcp/server",
"headers": { "Authorization": "Bearer ${HAUNT_API_KEY}" }
}
}
}try_demo_extract
No key required. Returns fixed sample JSON so your MCP client can prove the tool connection first.
extract
Requires HAUNT_API_KEY. Sends URL plus prompt and returns success, data, and trace.
get_usage
Requires a key. Shows plan, monthly successful-request limit, reserved usage, and remaining quota.
For Claude Desktop, Cursor, and local MCP clients.
Use the public npm package. The demo tool works first; real extraction needs your key in the environment.
{
"mcpServers": {
"haunt": {
"command": "npx",
"args": ["-y", "@hauntapi/mcp-server"],
"env": { "HAUNT_API_KEY": "${HAUNT_API_KEY}" }
}
}
}Create a key, then paste it into MCP.
Free includes 1,000 credits per month. Failed extractions do not burn credits. No automatic overages.
REST is still the simplest app integration.
If you do not need MCP, call the REST endpoint directly with X-API-Key.
curl https://hauntapi.com/v1/extract \
-H "Content-Type: application/json" \
-H "X-API-Key: $HAUNT_API_KEY" \
-d '{"url":"https://example.com","prompt":"Extract the page title"}'