home / mcp / fetch mcp server

Fetch MCP Server

Fetch MCP Server

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "phpmac-fetch_mcp": {
      "url": "http://localhost:3000/sse"
    }
  }
}

Fetch MCP Server lets you request web content in HTML, JSON, plain text, or Markdown on demand, transforming sources as you need for your applications and workflows.

How to use

Configure your MCP client to connect to the fetch MCP endpoint and start streaming content as events. Use the provided URL for server-sent events to receive transformed content in real time. You can supply custom headers to authorize requests and tailor responses to your environment.

How to install

Prerequisites: you need a modern Node.js or your preferred runtime environment to run the MCP server locally via the available start options.

Additional sections

Configuration notes: the server exposes an HTTP MCP endpoint that streams content via SSE. You can pass Authorization headers or other custom headers to control access and behavior. This server does not keep persistent resources; it fetches and transforms content on demand.

Examples of how to start and connect are provided in the sections above. If you are integrating into a client, configure your client to use the SSE URL and include any required headers.

Troubleshooting tips: ensure the MCP URL is reachable, the Authorization header (if used) is correct, and your client supports SSE. If the connection fails, verify network access and that the server is running on the expected port.

Available tools

fetch_html

Fetch website content and return as HTML by requesting a URL and receiving raw HTML content.

fetch_json

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

fetch_txt

Fetch website content and return as plain text by stripping HTML tags, scripts, and styles.

fetch_markdown

Fetch website content and return as Markdown by converting the webpage content.