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": {
"imageFetch": {
"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
)~/Downloads/mcp-fetch/YYYY-MM-DD/
directory when processedThe 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": {
"imageFetch": {
"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!!!saveImages
(default: true): Save processed images to local filesreturnBase64
(default: false): Return base64 encoded images for AI displayignoreRobotsTxt
(default: false): Ignore robots.txt restrictions{
"url": "https://example.com"
}
{
"url": "https://example.com",
"enableFetchImages": true,
"imageMaxCount": 3
}
{
"url": "https://example.com",
"enableFetchImages": true,
"returnBase64": true,
"imageMaxCount": 3
}
{
"url": "https://example.com",
"enableFetchImages": true,
"imageStartIndex": 3,
"imageMaxCount": 3
}
~/Downloads/mcp-fetch/YYYY-MM-DD/
with filename format hostname_HHMMSS_index.jpg
fetch
to imageFetch
to avoid conflicts with native fetch functions.fetch
to imageFetch
to avoid conflicts~/Downloads/mcp-fetch/YYYY-MM-DD/
by defaultsaveImages
parameter (default: true) to control file savingreturnBase64
parameter (default: false) for AI image displayenableFetchImages: false
)disableImages
in favor of enableFetchImages
parameterExecute SQL queries and manage databases seamlessly with Timeplus. Leverage powerful tools to interact with your data, Kafka topics, and Iceberg tables efficiently. Enhance your data workflows with a user-friendly interface and robust backend capabilities.
A Model Context Protocol (MCP) server that provides tools for fetching Reddit content, including frontpage posts, subreddit information and hot posts, post details, and comments.
A cli tool to control Tuya devices based on tinytuya