by zcaceres
fetch-mcp is a flexible HTTP fetching server designed to retrieve web content in various formats. It acts as a server that can fetch HTML, JSON, Markdown, or plaintext from specified URLs, enabling on-demand fetching and transformation of web content.
fetch-mcp is a flexible HTTP fetching Model Context Protocol (MCP) server designed to retrieve web content in various formats. It acts as a server that can fetch HTML, JSON, Markdown, or plaintext from specified URLs.
To use fetch-mcp, you first need to clone the repository, install dependencies (npm install
), and build the server (npm run build
). You can then run the server directly using npm start
. For integration with a desktop application, you can configure it by adding a JSON snippet to your app's server configuration, specifying the command and arguments to run the dist/index.js
file.
fetch-mcp offers the following key features:
fetch_html
, fetch_json
, fetch_txt
, and fetch_markdown
for targeted content retrieval.fetch-mcp is ideal for scenarios requiring on-demand fetching and transformation of web content. Potential use cases include:
Q: What types of content can fetch-mcp retrieve? A: fetch-mcp can retrieve HTML, JSON, plain text, and Markdown content.
Q: Does fetch-mcp support custom headers for requests? A: Yes, you can include custom headers in your fetch requests.
Q: How does fetch-mcp handle HTML parsing? A: It uses JSDOM for efficient HTML parsing and text extraction.
Q: Can fetch-mcp convert HTML to Markdown? A: Yes, it uses TurndownService to convert HTML content to Markdown format.
Q: Does fetch-mcp store any persistent resources? A: No, fetch-mcp is designed to fetch and transform web content on demand and does not provide any persistent resources.
This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
fetch_html
url
(string, required): URL of the website to fetchheaders
(object, optional): Custom headers to include in the requestfetch_json
url
(string, required): URL of the JSON to fetchheaders
(object, optional): Custom headers to include in the requestfetch_txt
url
(string, required): URL of the website to fetchheaders
(object, optional): Custom headers to include in the requestfetch_markdown
url
(string, required): URL of the website to fetchheaders
(object, optional): Custom headers to include in the requestThis server does not provide any persistent resources. It's designed to fetch and transform web content on demand.
npm install
npm run build
To use the server, you can run it directly:
npm start
This will start the Fetch MCP Server running on stdio.
To integrate this server with a desktop app, add the following to your app's server configuration:
{
"mcpServers": {
"fetch": {
"command": "node",
"args": [
"{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
]
}
}
}
npm run dev
to start the TypeScript compiler in watch modenpm test
to run the test suiteThis project is licensed under the MIT License.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by firecrawl
Adds powerful web scraping, crawling, and search capabilities to LLM clients through a Model Context Protocol (MCP) server.
by mendableai
Firecrawl MCP Server is an official Model Context Protocol (MCP) server implementation that integrates with Firecrawl to provide powerful web scraping capabilities to Large Language Models (LLMs). It acts as a bridge between LLMs and the web, allowing them to access and process web content for various tasks.
by tavily-ai
Provides real-time web search, intelligent data extraction, site mapping, and crawling capabilities via MCP tools.
by iFurySt
RedNote-MCP is an MCP server designed to access content from RedNote (XiaoHongShu, xhs), a popular Chinese social media and e-commerce platform. It enables programmatic interaction with RedNote for data retrieval and automation.
by apify
An MCP server for Apify Actors, allowing AI assistants to use any of the 3,000+ pre-built cloud tools for web scraping and automation.
by openbnb-org
The mcp-server-airbnb is an MCP (Multi-Cloud Platform) server designed to interact with Airbnb. It provides tools for searching Airbnb listings and retrieving detailed information about specific listings.
by cnych
A free SEO tool MCP (Model Control Protocol) service based on Ahrefs data, offering features like backlink analysis, keyword research, and traffic estimation.
by tinyfish-io
AgentQL MCP Server is a Model Context Protocol (MCP) server that integrates AgentQL's data extraction capabilities, enabling AI agents to get structured data from the unstructured web.
by oxylabs
Bridge AI models and the internet, delivering clean, structured data from any website through a single API.