This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown. Available on NPM - fetchhtml - Fetch a website and return the content as HTML - url (string, required): URL of the website to fetch - headers (object, optional): Custom headers to include in the request - maxlength (number, optional): Maximum length to fetch (default 5000
Add this skill
npx mdskills install zcaceres/fetch-mcpWell-documented MCP server with four useful web content fetching tools and clear setup instructions
1# Fetch MCP Server2345This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.67[Available on NPM](https://www.npmjs.com/package/mcp-fetch-server)89<a href="https://glama.ai/mcp/servers/nu09wf23ao">10 <img width="380" height="200" src="https://glama.ai/mcp/servers/nu09wf23ao/badge" alt="Fetch Server MCP server" />11</a>1213## Components1415### Tools1617- **fetch_html**18 - Fetch a website and return the content as HTML19 - Input:20 - `url` (string, required): URL of the website to fetch21 - `headers` (object, optional): Custom headers to include in the request22 - `max_length` (number, optional): Maximum length to fetch (default 5000, can change via environment variable)23 - `start_index` (number, optional): Used together with max_length to retrieve contents piece by piece, 0 by default24 - Returns the raw HTML content of the webpage2526- **fetch_json**27 - Fetch a JSON file from a URL28 - Input:29 - `url` (string, required): URL of the JSON to fetch30 - `headers` (object, optional): Custom headers to include in the request31 - `max_length` (number, optional): Maximum length to fetch (default 5000, can change via environment variable)32 - `start_index` (number, optional): Used together with max_length to retrieve contents piece by piece, 0 by default33 - Returns the parsed JSON content3435- **fetch_txt**36 - Fetch a website and return the content as plain text (no HTML)37 - Input:38 - `url` (string, required): URL of the website to fetch39 - `headers` (object, optional): Custom headers to include in the request40 - `max_length` (number, optional): Maximum length to fetch (default 5000, can change via environment variable)41 - `start_index` (number, optional): Used together with max_length to retrieve contents piece by piece, 0 by default42 - Returns the text content of the webpage with HTML tags, scripts, and styles removed4344- **fetch_markdown**45 - Fetch a website and return the content as Markdown46 - Input:47 - `url` (string, required): URL of the website to fetch48 - `headers` (object, optional): Custom headers to include in the request49 - `max_length` (number, optional): Maximum length to fetch (default 5000, can change via environment variable)50 - `start_index` (number, optional): Used together with max_length to retrieve contents piece by piece, 0 by default51 - Returns the content of the webpage converted to Markdown format5253### Resources5455This server does not provide any persistent resources. It's designed to fetch and transform web content on demand.5657## Getting started58591. Clone the repository602. Install dependencies: `npm install`613. Build the server: `npm run build`6263### Usage6465To use the server, you can run it directly:6667```bash68npm start69```7071This will start the Fetch MCP Server running on stdio.7273### Environment variables7475- **DEFAULT_LIMIT** - sets the default size limit for the fetch (0 = no limit)7677### Usage with Desktop App7879To integrate this server with a desktop app, add the following to your app's server configuration:8081```json82{83 "mcpServers": {84 "fetch": {85 "command": "npx",86 "args": [87 "mcp-fetch-server"88 ],89 "env": {90 "DEFAULT_LIMIT": "50000" // optionally change default limit91 }92 }93 }94}95```9697## Features9899- Fetches web content using modern fetch API100- Supports custom headers for requests101- Provides content in multiple formats: HTML, JSON, plain text, and Markdown102- Uses JSDOM for HTML parsing and text extraction103- Uses TurndownService for HTML to Markdown conversion104105## Development106107- Run `npm run dev` to start the TypeScript compiler in watch mode108- Use `npm test` to run the test suite109110## License111112This project is licensed under the MIT License.113
Full transparency — inspect the skill content before installing.