# ashlrai/webfetch [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/ashlrai/webfetch  
**GitHub Stars:** 3  
**npm Downloads (last month):** 242  
**Views:** 13  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ashlrai-webfetch

## Description
License-first federated image search across 25 providers. Returns open/platform/editorial license tags, attribution strings, dimensions, and download-ready URLs via npx -y getwebfetch-mcp.

## Tools
Capabilities this server exposes over MCP:

- **search_images** — Federated image search across license-aware providers (Wikimedia Commons, Openverse, Unsplash, Pexels, Pixabay, iTunes, MusicBrainz CAA, Spotify, Brave). Returns concise ranked candidates with license + attribution. Does NOT auto-download — call `download_image` after. Default safe-only policy includes open, platform-license, editorial/press tags and rejects UNKNOWN. Use open-only for CC/public-domain only. For large batches, prefer CLI: webfetch batch --jsonl --continue-on-error.
- **search_artist_images** — Specialized image search for a musical artist. `kind` selects provider set + query expansion: 'portrait' (Wikimedia + Unsplash + Spotify), 'album' (MusicBrainz CAA + iTunes + Spotify), 'logo' (Wikimedia), 'performing' (Wikimedia + Pexels). Prefer this over `search_images` when building artist/band content.
- **search_album_cover** — Find canonical album artwork. Uses MusicBrainz Cover Art Archive + iTunes + Spotify. Results are EDITORIAL_LICENSED — safe for album identification UI per platform ToS; always show attribution.
- **download_image** — Download an image URL (typically from a prior search_images result) to the local disk cache. Streams with a 20MB hard cap, content-type guard, SHA-256 hash, and returns the cached file path. Host blocklist enforced.
- **fetch_with_license** — Given an arbitrary URL (image or webpage), determine its license via host heuristics + page metadata (<link rel=license>, dc.rights, og tags). Set probe: true to also download the bytes. Use when an agent already has a URL and needs a go/no-go decision before shipping.
- **find_similar** — Reverse-image-search: given a public image URL, find visually similar images. Requires SERPAPI_KEY env var and providers: ['serpapi']. Returns candidates with heuristic licenses — treat results as leads, not shippable.
- **probe_page** — Given a webpage URL, return every <img> on the page with inferred dimensions and a heuristic license per image. Respects robots.txt by default. Use to triage a candidate source page before picking.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "webfetch": {
    "command": "npx",
    "args": ["-y","getwebfetch-mcp"]
  }
}
```

## Documentation

## What ashlrai/webfetch does

ashlrai/webfetch provides an MCP interface for finding, evaluating, and retrieving images from multiple source providers. It is designed around license-aware results: candidates can include license labels, attribution text, dimensions, and download URLs, and results marked `UNKNOWN` are excluded by the default safe-only policy.

The provider set covers open and public-domain collections, stock-photo platforms, editorial image sources, music catalogs, cultural archives, and general image search. Sources named by the project include Wikimedia Commons, Openverse, Unsplash, Pexels, Pixabay, iTunes, MusicBrainz Cover Art Archive, Spotify, Brave, Flickr, NASA, the Smithsonian, Europeana, and others.

## How it works

The MCP entry point can be started with `npx -y getwebfetch-mcp`. An agent searches first, reviews the returned metadata, and then calls `download_image` when it needs a local file. Search ranking considers the license tag, metadata confidence, resolution, and provider priority. The default policy accepts open, platform-license, and editorial or press tags while rejecting `UNKNOWN`; an open-only mode narrows results to Creative Commons and public-domain material.

Specialized searches select providers and expand queries for the task. Artist searches support portrait, album, logo, and performing-image modes. Album-cover searches use MusicBrainz Cover Art Archive, iTunes, and Spotify, and return editorially licensed results intended for album-identification interfaces with attribution. Reverse-image results from `find_similar` are heuristic leads rather than ready-to-ship licensing evidence.

## Setup and configuration

Run the MCP server through the npm package with `npx -y getwebfetch-mcp`. The broader webfetch project also provides a global npm installation, Homebrew package, Docker image, and shell installer. Provider credentials are supplied through environment variables when the corresponding source is used.

Optional provider configuration includes keys for Unsplash, Pexels, Pixabay, Spotify, Brave, SerpAPI, Bing, Bright Data, Flickr, Smithsonian, Europeana, and Rawpixel. `SERPAPI_KEY` is required for the `find_similar` tool. The project also exposes a CLI and HTTP server; batch jobs can use the CLI's JSON Lines mode with continue-on-error behavior.

## Tools and capabilities

- `search_images` searches across license-aware providers and returns concise ranked candidates. It does not download files.
- `search_artist_images` searches for portraits, album artwork, logos, or performing images using an artist-focused provider selection.
- `search_album_cover` finds canonical album artwork from music-catalog sources and labels results as editorially licensed.
- `download_image` streams an image into the local disk cache, applies a 20 MB size limit and content-type check, computes a SHA-256 hash, and enforces a host blocklist.
- `fetch_with_license` examines an image or webpage URL using host heuristics and page metadata. Enabling probing also downloads the bytes.
- `find_similar` performs reverse image lookup from a public image URL through SerpAPI.
- `probe_page` lists images found on a webpage, including inferred dimensions and heuristic licensing, while respecting `robots.txt` by default.

## Limitations and notes

License labels are evidence for workflow decisions, not a replacement for checking the source's terms. General web and reverse-search providers can return heuristic or `UNKNOWN` licenses, so those results should be treated cautiously. Editorially licensed album and artist images require attribution and should be used according to the relevant platform terms.

Downloads are explicit rather than automatic, and the local downloader applies a 20 MB hard cap. Provider availability and search coverage depend on configured credentials and each provider's access rules. For large batches, the project recommends using the CLI rather than issuing many individual MCP calls.

_Full upstream README: https://allmcps.com/mcp/ashlrai-webfetch/readme_

