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_markdownQ: 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 installnpm run buildTo 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"
]
}
}
}claude mcp add fetch node {ABSOLUTE PATH TO FILE HERE}/dist/index.jsExplore 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 web scraping, crawling, search, and structured data extraction for LLM clients through a Model Context Protocol server.
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 brightdata
Provides real-time web access for AI models, delivering search, markdown‑ready scraping, and optional browser automation while bypassing geo‑restrictions, rate limits, and CAPTCHAs.
by tavily-ai
Provides real‑time web search, intelligent data extraction, structured website mapping, and systematic crawling through an MCP server, ready to be integrated with AI coding assistants and other tools.
by hyperbrowserai
Provides tools to scrape, extract structured data, crawl webpages, and access general‑purpose browser agents such as OpenAI CUA, Anthropic Claude Computer Use, and lightweight Browser Use via 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 oxylabs
Enables AI models to access, render, and extract clean, structured data from any website through a single API.