mcp-npx-fetch
3.6
The Fetch MCP Server is designed to fetch and transform web content into various formats such as HTML, JSON, plain text, and Markdown. It supports custom headers and is built with tools like JSDOM for HTML parsing and TurndownService for conversion.
Fetch MCP Server
Components
Tools
- fetch_html: Fetch website content as HTML.
- fetch_json: Fetch JSON from a URL.
- fetch_txt: Fetch website content as plain text.
- fetch_markdown: Fetch website content as Markdown.
Resources
No persistent resources provided; fetches and transforms web content on demand.
Getting started
- Clone the repository
- Install dependencies
- Build the server
Usage
Run the server using npm start
to start the Fetch MCP Server on stdio.
Usage with Desktop App
Configuration example provided to integrate the server with a desktop app.
Features
- Fetches web content using modern fetch API
- Supports custom headers
- Provides content in HTML, JSON, plain text, and Markdown
- Utilizes JSDOM and TurndownService
Development
npm run dev
starts TypeScript compiler in watch modenpm test
runs the test suite
License
Licensed under the MIT License.