Fetch URLs and YouTube transcripts via MCP endpoints for downstream clients.
Configuration
View docs{
"mcpServers": {
"egoist-fetch-mcp": {
"command": "npx",
"args": [
"-y",
"fetch-mcp"
]
}
}
}This MCP server provides endpoints to fetch arbitrary URLs and extract YouTube transcripts, making it easy for downstream clients to request content without implementing the fetch logic themselves.
Start the server in stdio mode by running npx -y fetch-mcp. This runs a self-contained MCP server that you can query from your MCP client.
To enable streaming via SSE, run npx -y fetch-mcp --sse. This starts the server with server-sent events support for continuous data delivery.
If you prefer an HTTP-based endpoint, you can start the HTTP variant with npx -y fetch-mcp --http. You may specify a custom endpoint like npx -y fetch-mcp --http /my-mcp to expose the service at a non-default path.
Use the MCP client to call the available tools you want to run, such as fetching a URL or retrieving a YouTube transcript. You can combine options as needed to fit your workflow, and you can run multiple modes (stdio, sse, http) depending on how you want to consume the data.
Prerequisites you need on your machine: you should have Node.js installed (npm comes with Node). Ensure you have an environment capable of running containers or Node-based tooling as needed by your workflow.
Install and run the MCP server using the following steps. Each command is on its own line so you can copy-paste into your terminal.
# Install prerequisites if needed (Node.js comes with npm)
# Verify Node and npm are installed
node -v
npm -v
# Start the MCP server in stdio mode
npx -y fetch-mcp
# Optional SSE mode
npx -y fetch-mcp --sse
# Optional HTTP mode (default path can be overridden)
npx -y fetch-mcp --http
npx -y fetch-mcp --http /my-mcpThe server exposes two main tools you can use through the MCP interface: fetch_url and fetch_youtube_transcript. The fetch_url tool retrieves the content at a given URL and can return HTML or Markdown by default. The fetch_youtube_transcript tool fetches transcripts for YouTube videos.
Fetch a URL and return the content, with default output as HTML or Markdown.
Fetch the transcript for a YouTube video.