fetch-mcp  by zcaceres

MCP server for fetching and transforming web content

created 7 months ago
517 stars

Top 61.5% 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 months ago

Responsiveness

1 day

Pull Requests (30d)
2
Issues (30d)
0
Star History
204 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
7 more.

firecrawl by mendableai

2.1%
44k
API service for turning websites into LLM-ready data
created 1 year ago
updated 21 hours ago
Feedback? Help us improve.