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
| Name | Type | Description |
|---|---|---|
url required | string | Full URL of the page. |
limit | integer | Most links to return (default 200, max 500). |
external_only | boolean | Only 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:
{
"name": "web__extract_links",
"arguments": {
"url": "…"
}
}Or connect the Web and Network server directly, which lists 22 tools including this one:
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 ….