Home / Servers / Web and Network / extract_links

Extract links

An MCP tool from the Web and Network server, hosted on mcp.hjlabs.in.

Fetch a web page and list the links on it, split into internal and external, with anchor text and rel=nofollow flags, plus counts. Honours robots.txt. Up to 500 links.

Name on the gateway: web__extract_links · read-only.

Parameters

NameTypeDescription
url requiredstringFull URL of the page.
limitintegerMost links to return (default 200, max 500).
external_onlybooleanOnly links to other hosts.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "web__extract_links",
  "arguments": {
    "url": "…"
  }
}

Or connect the Web and Network server directly, which lists 22 tools including this one:

Run in your terminal
claude mcp add --transport http hj-web https://mcp.hjlabs.in/mcp/web \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the extract links tool with url set to ….

More from Web and Network