Fetch MCP Server provides functionality to retrieve web content in various formats including HTML, JSON, plain text, and Markdown. It offers four tools: fetch_html for raw HTML content, fetch_json for parsed JSON data, fetch_txt for plain text with HTML tags removed, and fetch_markdown for content converted to Markdown format. Built with TypeScript using the Model Context Protocol SDK, JSDOM for HTML parsing, and TurndownService for Markdown conversion, this implementation is particularly useful for workflows requiring web content extraction and transformation without leaving the conversation interface.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Fetch a website and return the content as HTML. Input: url (string, required), headers (object, optional). Returns the raw HTML content of the webpage.
Fetch a JSON file from a URL. Input: url (string, required), headers (object, optional). Returns the parsed JSON content.
Fetch a website and return the content as plain text (no HTML). Input: url (string, required), headers (object, optional). Returns the text content of the webpage with HTML tags, scripts, and styles removed.
Fetch a website and return the content as Markdown. Input: url (string, required), headers (object, optional). Returns the content of the webpage converted to Markdown format.