# pagesift [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/YOLOW92/pagesift  
**GitHub Stars:** 315  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pagesift

## Description
Self-hosted web scraper, crawler and document parser for AI agents: URLs, PDFs with OCR and Office files to clean Markdown/JSON. Firecrawl- and Jina-compatible API, MCP server, agent endpoint, Python/Node SDKs. Single Rust binary.

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

```json
"mcpServers": {
  "pagesift": {
    "command": "uvx",
    "args": ["pagesift"]
  }
}
```

## Documentation

## What pagesift does

pagesift exposes web and document processing through the Model Context Protocol. Agents can fetch individual URLs, process local files, crawl sites, map links, extract structured data, and perform browser actions. Results can include clean Markdown, HTML, raw HTML, links, images, metadata, schema-based JSON, and warnings when processing is incomplete.

Supported inputs include web pages, HTML, PDF files, scanned PDFs, Word documents, Excel workbooks, PowerPoint presentations, EPUB files, CSV files, and WARC archives. PDF OCR is available for scanned pages, and WARC files can be read without making network requests. The same project also provides a CLI, HTTP APIs compatible with Firecrawl and Jina Reader, Python and Node.js packages, and a Rust crate.

## How it works

Run `pagesift mcp` for a stdio connection used by one agent, or start `pagesift mcp http --port 3003` to provide a shared MCP endpoint. The MCP tools invoke pagesift's scraping, crawling, extraction, and interaction features. Crawls can follow sitemaps, enforce robots.txt and per-host limits, handle traps, and focus on pages related to a query.

For structured results, pagesift can use CSS selectors or a schema. Selectors may be relocated when a site changes, while a model-generated schema can be cached for later use. Browser interaction supports clicking, typing, and scrolling, with sessions that can remain available for additional actions.

When a model is configured, the agent capability can plan searches, maps, scrapes, and extractions to answer a question. It archives fetched text as evidence and returns schema-shaped JSON, sources, and warnings after checking fields against that evidence.

## Setup and configuration

Install the CLI with `cargo install pagesift --locked`, then expose MCP over stdio with:

```bash
pagesift mcp
```

For a shared service, use:

```bash
pagesift mcp http --port 3003
```

Claude can register the stdio server with `claude mcp add pagesift -- pagesift mcp`. An HTTP connection can target `http://127.0.0.1:3003/mcp`. The project also publishes a Docker image, and its supported platforms include Linux x86_64 and aarch64, macOS arm64, and Windows x86_64.

Basic HTTP examples use `PAGESIFT_API_KEYS` to configure bearer-token authentication. JavaScript pages may require an optional browser. OCR models download when first needed; OCR can run on CPU or use an NVIDIA GPU. The `/v2/agent` workflow requires a model supplied by the operator.

## Tools and capabilities

The MCP tool set includes:

- `pagesift_scrape` for fetching and parsing a page or document.
- `pagesift_batch_scrape` for processing multiple targets.
- `pagesift_crawl` and `pagesift_crawl_status` for starting and checking crawls.
- `pagesift_map` for discovering site links.
- `pagesift_interact` and `pagesift_interact_stop` for browser actions and stopping sessions.
- `pagesift_agent` and `pagesift_agent_status` when a model is configured for agent-driven research.

The underlying processing layer supports Markdown that preserves headings, lists, tables, code, and math; OCR for scanned PDFs; CSS- or schema-based JSON extraction; WARC input and crawl output; and safety controls for private networks and DNS rebinding. Incomplete results report warnings so callers can account for partial extraction.

## Limitations and notes

JavaScript rendering, OCR, and model-driven agent workflows are optional rather than required for basic HTTP, PDF, and Office processing. OCR with formula models has higher memory needs than ordinary parsing. Network controls, robots.txt handling, rate limits, and per-host limits affect crawling and fetching. The project is licensed under AGPL-3.0, with a commercial license also available.

_Full upstream README: https://allmcps.com/mcp/pagesift/readme_

