Fetch web pages and extract exactly the content you need. Select elements with CSS and retrieve co…
A Model Context Protocol (MCP) server for making HTTP requests and extracting data from web pages.
fetch_urlFetch a URL and return basic information about the page.
Parameters:
url (string): The URL to fetchReturns: Status code, headers, content type, title, and description
extract_elementsExtract specific elements from a web page using CSS selectors.
Parameters:
url (string): The URL to fetchselector (string): CSS selector (e.g., 'img', '.class', '#id')attribute (optional string): Specific attribute to extract (e.g., 'href', 'src')limit (number, default: 10): Maximum number of elements to returnReturns: Array of extracted elements with their attributes
get_page_metadataExtract comprehensive metadata from a web page.
Parameters:
url (string): The URL to analyzeReturns: Title, description, Open Graph tags, Twitter card data, canonical URL, and more
userAgent (string): Custom User-Agent header (default: "Fetch-MCP-Server/1.0")timeout (number): Request timeout in milliseconds (default: 10000)followRedirects (boolean): Follow HTTP redirects (default: true)# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run buildThis server is designed to be deployed on Smithery as a remote MCP server.
MIT