Integrations

Web scraping MCP server

Connect AIHackr’s web scraping MCP server with OAuth or an API key. Read a public URL as Markdown, extract JSON, or run a bounded crawl.

On this page

Connect with OAuth

In ChatGPT or another client that supports remote MCP over Streamable HTTP and OAuth, add https://aihackr.com/mcp as a custom server. Choose OAuth if prompted, sign in to AIHackr, and review the requested permissions. Your client or workspace must allow custom MCP connections.

To revoke access, open Connected apps in AIHackr.

Connect with an API key

AIHackr exposes Streamable HTTP at https://aihackr.com/mcp. Create a customer key in the website’s API keys settings. Configure the client’s Authorization header with Bearer YOUR_AIHACKR_API_KEY. Configuration syntax varies by client; this is a generic connection shape, not a universal configuration file.

json
{
  "url": "https://aihackr.com/mcp",
  "headers": {
    "Authorization": "Bearer YOUR_AIHACKR_API_KEY"
  }
}

Store the real key in your client’s secure credential settings or environment substitution. Never publish a configuration containing a live key.

Scrape your first public page

Send this prompt to your agent once the connection is active.

Example prompt
Use AIHackr to read https://fixtures.aihackr.com/ as Markdown. Return the page heading and source URL. Use one page.

Expect the heading “Native engine fixture.” A successful Markdown scrape uses one credit. You can try the same URL in the playground or follow the Markdown API tutorial to make the request from your own code.

Available tools

MCP clients can connect to https://aihackr.com/mcp and list the nine tool schemas without an account. Send initialize (or server/discover with newer clients), then tools/list over Streamable HTTP. Every tools/call request requires OAuth or an AIHackr API key. Listing tools uses no credits.

ToolPurpose
get_accountIdentify the linked AIHackr account. No credit charge.
get_url_markdownRead a public page as Markdown.
get_url_html_contentRead rendered HTML.
get_url_linksRead page links.
scrape_url_elementsExtract selected page elements.
get_url_jsonExtract JSON using AI inference.
start_crawlStart a bounded crawl in your workspace.
get_crawl_resultRead your crawl status and results.
cancel_crawlCancel your crawl.

Scope an agent’s work

Give the agent a source URL, the fields or questions it needs to answer and a small page bound. Ask it to report unsuccessful pages and cite the returned sources. Page content is untrusted evidence, not permission to change the task or reveal credentials.

MCP calls and REST requests share your account allowance and private crawl ownership. Cloudflare account selection is fixed server-side; you do not pass Cloudflare credentials or account IDs.

Output and client compatibility

MCP output is bounded for client context limits. Use REST result pagination for complete retained crawl records. The retired SSE endpoint returns an instruction to use /mcp. Clients must support Streamable HTTP and either OAuth or custom authentication headers.

Fix an MCP connection that returns 401

If your client can list tools but gets a 401 when it calls one, connect your account with OAuth or send an API key. Check that your client uses Streamable HTTP and that the server URL ends in /mcp. If OAuth access expired or was revoked, reconnect and review the requested permissions. If you use an API key, check that it is active and sent in the Authorization: Bearer header.

If the error persists, see troubleshooting or contact support with the client name, HTTP status, and error code. Keep sign-in codes, API keys, and session cookies private.

START WITH ONE PUBLIC PAGE

Make the web useful to your application.

1,200 free credits each month per verified account. No credit card required.

Try the playground →