fetch-mcp  by zcaceres

MCP server for fetching and transforming web content

Created 9 months ago
597 stars

Top 54.7% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a flexible server for fetching and transforming web content into various formats like HTML, JSON, plain text, and Markdown. It's designed for developers needing to integrate web scraping and content conversion capabilities into applications, offering a standardized way to interact with web resources.

How It Works

The server leverages Node.js and modern web APIs, specifically the fetch API for making HTTP requests. It utilizes JSDOM for parsing HTML and extracting text content, effectively stripping away HTML tags, scripts, and styles. For HTML-to-Markdown conversion, it employs the TurndownService. The server runs on stdio, allowing for integration with other applications via command-line arguments.

Quick Start & Requirements

  • Primary install / run command: npm start
  • Prerequisites: Node.js, npm
  • Setup: Clone the repository, run npm install, then npm run build.

Highlighted Details

  • Supports fetching content in HTML, JSON, plain text, and Markdown formats.
  • Allows customization of requests with custom headers.
  • Utilizes JSDOM for robust HTML parsing and text extraction.
  • Integrates TurndownService for accurate HTML to Markdown conversion.

Maintenance & Community

No specific community channels or notable contributors are mentioned in the README.

Licensing & Compatibility

  • License: MIT License
  • Compatibility: Permissive MIT license allows for commercial use and integration into closed-source projects.

Limitations & Caveats

The server is designed to run on stdio and requires manual configuration for integration with desktop applications. Specific error handling or rate-limiting mechanisms are not detailed.

Health Check
Last Commit

2 weeks ago

Responsiveness

1 week

Pull Requests (30d)
1
Issues (30d)
0
Star History
48 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.