Skip to main content
Glama

MCP Node Fetch

extract-html-fragment

Extract specific HTML fragments from a webpage using CSS selectors to target desired content, simplifying data retrieval for analysis or integration.

Instructions

Extract a specific HTML fragment from a webpage using CSS selectors

Input Schema

NameRequiredDescriptionDefault
anchorIdNoOptional anchor ID to locate a specific fragment
bodyNoRequest body for POST requests
followRedirectsNoWhether to follow redirects
fragmentSelectorNoCSS selector for the HTML fragment to extract (when responseType is html-fragment)
headersNoHTTP headers
methodNoHTTP methodGET
selectorYesCSS selector for the HTML fragment to extract
timeoutNoRequest timeout in milliseconds
urlYesURL to fetch

Input Schema (JSON Schema)

{ "properties": { "anchorId": { "description": "Optional anchor ID to locate a specific fragment", "type": "string" }, "body": { "description": "Request body for POST requests", "type": "string" }, "followRedirects": { "default": true, "description": "Whether to follow redirects", "type": "boolean" }, "fragmentSelector": { "description": "CSS selector for the HTML fragment to extract (when responseType is html-fragment)", "type": "string" }, "headers": { "additionalProperties": { "type": "string" }, "description": "HTTP headers", "type": "object" }, "method": { "default": "GET", "description": "HTTP method", "enum": [ "GET", "POST" ], "type": "string" }, "selector": { "description": "CSS selector for the HTML fragment to extract", "type": "string" }, "timeout": { "description": "Request timeout in milliseconds", "type": "number" }, "url": { "description": "URL to fetch", "type": "string" } }, "required": [ "url", "selector" ], "type": "object" }
Install Server

Other Tools from MCP Node Fetch

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcollina/mcp-node-fetch'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server