Fetch MCP Server
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.
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.
Prerequisites: you need a modern Node.js or your preferred runtime environment to run the MCP server locally via the available start options.
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.
Fetch website content and return as HTML by requesting a URL and receiving raw HTML content.
Fetch a JSON file from a URL and return the parsed JSON content.
Fetch website content and return as plain text by stripping HTML tags, scripts, and styles.
Fetch website content and return as Markdown by converting the webpage content.