Fetch with Images MCP server

Integrates web scraping and image processing capabilities to fetch, extract, and optimize web content.
Back to servers
Provider
kazuph
Release date
Jan 08, 2025
Language
TypeScript
Package
Stats
5.5K downloads
19 stars

This MCP server allows Claude Desktop or other MCP clients to fetch web content and process images for viewing directly in your client. It extracts web content as markdown and can handle images with various optimization options.

Installation

To use this tool with Claude Desktop, add it to your Claude Desktop configuration file:

  1. Open your configuration file located at: ~/Library/Application Support/Claude/claude_desktop_config.json

  2. Add the following to the configuration:

{
  "tools": {
    "fetch": {
      "command": "npx",
      "args": ["-y", "@kazuph/mcp-fetch"]
    }
  }
}

This automatically downloads and runs the latest version when needed.

Required Setup

You must enable Accessibility for Claude:

  1. Open System Settings
  2. Go to Privacy & Security > Accessibility
  3. Click the "+" button
  4. Add Claude from your Applications folder
  5. Turn ON the toggle for Claude

This accessibility setting is required for automated clipboard operations to work properly.

Usage

The MCP server provides several parameters you can configure:

Basic Parameters

  • url (required): The URL to fetch
  • maxLength (default: 20000): Maximum length of content to return
  • startIndex (default: 0): Starting position in content
  • raw (default: false): Return raw content instead of processed markdown

Image Processing Parameters

  • enableFetchImages (default: false): Enable fetching and processing of images
  • imageStartIndex (default: 0): Starting position for image collection
  • imageMaxCount (default: 3): Maximum number of images to process per request
  • imageMaxHeight (default: 4000): Maximum height of merged image
  • imageMaxWidth (default: 1000): Maximum width of merged image
  • imageQuality (default: 80): JPEG quality (1-100)

Other Options

  • ignoreRobotsTxt (default: false): Ignore robots.txt restrictions

Usage Examples

Basic Content Fetching (No Images)

{
  "url": "https://example.com"
}

Fetching with Images Enabled

{
  "url": "https://example.com",
  "enableFetchImages": true,
  "imageMaxCount": 3
}

Paginating Through Images

{
  "url": "https://example.com",
  "enableFetchImages": true,
  "imageStartIndex": 3,
  "imageMaxCount": 3
}

Controlling Content Length

{
  "url": "https://example.com",
  "maxLength": 10000,
  "startIndex": 5000
}

Features

  • Web Content Extraction: Automatically extracts and formats web content as markdown
  • Article Title Extraction: Extracts and displays the title of the article
  • Image Processing: Optional processing of images from web pages with optimization
  • Pagination Support: Supports pagination for both text and images
  • JPEG Optimization: Automatically optimizes images as JPEG for better performance
  • GIF Support: Extracts first frame from animated GIFs

System Requirements

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later