by zcaceres
Fetches web content and returns it in HTML, JSON, plain‑text, or Markdown formats, optionally applying custom request headers.
Fetch MCP Server provides a set of tools for retrieving web resources and converting them into convenient data formats. It supports fetching raw HTML, parsing JSON endpoints, extracting plain text from pages, and converting HTML to Markdown, all via the Model Context Protocol.
git clone https://github.com/zcaceres/fetch-mcp.git
cd fetch-mcp
npm install
npm run build
npm start
fetch_html
) by sending an MCP request with the required url
and optional headers
fields.fetch
API for HTTP requestsfetch_html
, fetch_json
, fetch_txt
, fetch_markdown
Q: Do I need to run a separate server process?
A: The server runs on standard input/output; you can start it with npm start
and interact via MCP.
Q: Can I add my own headers (e.g., authentication tokens)?
A: Yes, each tool accepts an optional headers
object that will be merged into the request.
Q: Is there a persistent state or storage? A: No, the server is stateless and only fetches/transform content on demand.
Q: How do I integrate the server with a desktop application?
A: Add the following configuration to your app’s MCP server list, pointing to the built dist/index.js
file:
{
"mcpServers": {
"fetch": {
"command": "node",
"args": ["{ABSOLUTE PATH TO FILE HERE}/dist/index.js"]
}
}
}
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.
{ "mcpServers": { "fetch": { "command": "node", "args": [ "{ABSOLUTE PATH TO FILE HERE}/dist/index.js" ] } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
A Model Context Protocol server that provides web content fetching capabilities.
by microsoft
Provides fast, lightweight browser automation using Playwright's accessibility tree, enabling LLMs to interact with web pages through structured snapshots instead of screenshots.
by firecrawl
Provides powerful web scraping capabilities for LLM clients such as Cursor, Claude, and others, enabling content extraction, crawling, search, and batch processing through a Model Context Protocol server.
by tinyfish-io
Extract structured data from any web page by invoking AgentQL's extraction tool through a Model Context Protocol server, enabling AI assistants to retrieve and format web information on demand.
by cyberchitta
Fetches HTML or markdown from bot‑protected websites, delivering plain‑text content that AI assistants can process.
by xxxbrian
Provides realistic browser-like HTTP request capabilities with accurate TLS/JA3/JA4 fingerprints, enabling LLMs to bypass anti-bot measures and retrieve web content, plus conversion of PDF and HTML to Markdown for easier LLM processing.
by djannot
Scrape webpages and convert them to well‑formatted markdown, automatically handling cookies, captchas, paywalls and other interactive elements using AI‑driven vision analysis.
by Dumpling-AI
Provides comprehensive MCP services that integrate Dumpling AI’s data APIs, web scraping, document conversion, AI agents, knowledge‑base management, and secure JavaScript/Python execution.
by webscraping-ai
Provides Model Context Protocol tools for extracting, rendering, and querying web page content via WebScraping.AI services.