Web Content Fetcher
STDIOModel Context Protocol server for fetching web content and processing images.
Model Context Protocol server for fetching web content and processing images.
Model Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.
To use this tool with Claude Desktop, simply add the following to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
):
{ "tools": { "fetch": { "command": "npx", "args": ["-y", "@kazuph/mcp-fetch"] } } }
This will automatically download and run the latest version of the tool when needed.
This accessibility setting is required for automated clipboard operations (Cmd+V) to work properly.
enableFetchImages: true
)The following sections are for those who want to develop or modify the tool.
npm install -g tsx
)git clone https://github.com/kazuph/mcp-fetch.git cd mcp-fetch npm install npm run build
When processing images from web content, the following optimizations are applied:
Make sure Claude Desktop is installed and running.
Install tsx globally if you haven't:
npm install -g tsx # or pnpm add -g tsx
~/Library/Application Support/Claude/claude_desktop_config.json
You can easily find this through the Claude Desktop menu:
Add the following to your MCP client's configuration:
{ "tools": { "fetch": { "args": ["tsx", "/path/to/mcp-fetch/index.ts"] } } }
url
(required): The URL to fetchmaxLength
(default: 20000): Maximum length of content to returnstartIndex
(default: 0): Starting position in contentimageStartIndex
(default: 0): Starting position for image collectionraw
(default: false): Return raw content instead of processed markdownimageMaxCount
(default: 3): Maximum number of images to process per requestimageMaxHeight
(default: 4000): Maximum height of merged imageimageMaxWidth
(default: 1000): Maximum width of merged imageimageQuality
(default: 80): JPEG quality (1-100)enableFetchImages
(default: false): Enable fetching and processing of images. FOR CLAUDE USERS ONLY: YOU ARE ALLOWED TO ENABLE THIS FEATURE!!! CLAUDE CAN FETCH AND PROCESS IMAGES!!! ENJOY THIS CAPABILITY!!!!!ignoreRobotsTxt
(default: false): Ignore robots.txt restrictions{ "url": "https://example.com" }
{ "url": "https://example.com", "enableFetchImages": true, "imageMaxCount": 3 }
{ "url": "https://example.com", "enableFetchImages": true, "imageStartIndex": 3, "imageMaxCount": 3 }
enableFetchImages: false
)disableImages
in favor of enableFetchImages
parameter