mcp-registry/fetch-mcp

    ==================
      
       /// MCP ///
      /// FET ///
        
    ==================
        
    [server:online]
    [protocol:ready]

fetch-mcp

by zcaceres

A flexible HTTP fetching Model Context Protocol (MCP) server that retrieves web content and returns it as HTML, JSON, plain-text or Markdown.

517
87
Open Source

01

fetch_html

Fetch a website and return its raw HTML content

02

fetch_json

Fetch a JSON file from a URL and return the parsed JSON content

03

fetch_txt

Fetch a website and return the page content as plain text with HTML elements removed

04

fetch_markdown

Fetch a website and return the page content converted to Markdown format

Installation

1. Prerequisites
• Node.js ≥18 and npm (or pnpm/yarn)
• git (to clone the repository)
2. Clone the repository
git clone https://github.com/zcaceres/fetch-mcp.git cd fetch-mcp
3. Install dependencies
npm install # or: pnpm install | yarn install
4. Build the TypeScript sources (optional, if you want transpiled JS)
npm run build # runs tsc or the configured build script
5. Start the development server
npm run dev # commonly invokes ts-node-dev / nodemon
or start the compiled bundle:
node dist/index.js # adjust path to compiled entry file
6. Configuration (typical env vars)
Create a `.env` file or export the variables in your shell:
MCP_PORT=8080 # Port the server should bind to MCP_ALLOWED_ORIGINS=* # CORS / security settings MCP_LOG_LEVEL=info # debug | info | warn | error
Then run the server again so it picks up the variables.
7. Docker (optional)
docker build -t fetch-mcp . docker run -p 8080:8080 fetch-mcp

Documentation

License: MIT License
Updated 7/30/2025

Table of Contents