# polite-crawler

> polite-crawler is an MCP server for web search and scraping. Polite web fetching for agents: obeys robots.txt, stores pages, verifies quotes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Website:** https://mark1russell7.github.io/crawler/
- **Repository:** https://github.com/mark1russell7/crawler/tree/HEAD/packages/polite-crawler-mcp
- **MCP Registry name:** io.github.mark1russell7/polite-crawler
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

The crawler reads each page once and keeps the response in a local store with a capture log, so later questions come from disk instead of another request. A full-text index returns ranked passages, hybrid ranking can add meaning-based search with a local embedder, and a quote check returns the exact span to cite.

It follows RFC 9309, honours Retry-After, stops at a challenge, 401, 402 or 403, sends one request at a time to each site, and identifies itself as PoliteCrawler with a link for site owners. It reads JSON-LD, visible text and links without a browser and only uses headless Chromium for pages that need JavaScript, if you install it.

Fetched text arrives wrapped as untrusted web content. Environment variables control the store folder, a contact address, private-address access and signed requests (Web Bot Auth). The README suggests `--tools quote` to load only four tools.

## Features

- **Fetch once, reuse:** A stored page answers later questions with no new request and reports its age.
- **Ranked passage search:** Full-text and optional hybrid search over stored pages.
- **Quote verification:** Finds an exact quote in a document and returns the span to cite.
- **Field value checks:** Checks values the assistant proposes against a stored page.
- **Site discovery:** Lists up to 1,000 URLs from sitemaps and crawls a few linked pages.
- **Version comparison:** Compares two stored versions of a document.

## Good for

- Cite a standard with a verified quote
- Research one source repeatedly without re-fetching
- Detect changes to a page over time
- Read opening hours or prices with their source

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add polite-crawler -- npx -y polite-crawler-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "polite-crawler": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polite-crawler-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add polite-crawler -- npx -y polite-crawler-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.polite-crawler]
command = "npx"
args = ["-y", "polite-crawler-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user polite-crawler npx -- -y polite-crawler-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "polite-crawler": {
      "command": "npx",
      "args": [
        "-y",
        "polite-crawler-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

From the tool list in its README, going by the names, 3 of 8 tools read data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `crawl_fetch` (name suggests: reads): Fetch pages into the local store.
- `crawl_find` (name suggests: reads): Search stored pages for ranked passages.
- `crawl_read` (name suggests: reads): Read a range of a stored document.
- `crawl_verify`: Find a quote and return its exact span.
- `crawl_extract`: Check proposed field values against a page.
- `crawl_discover`: List a site's page URLs from sitemaps and feeds.
- `crawl_site`: Fetch a few linked pages of a site.
- `crawl_diff`: Compare two stored versions of a document.

## FAQ

### Does polite-crawler respect robots.txt?

Yes, as RFC 9309 specifies, and it stops at challenges and 401, 402 or 403 responses.

### Does polite-crawler need a browser?

Not by default; install Playwright's Chromium and add playwright-core to render JavaScript pages.

### How do I reduce token cost?

Start it with `--tools quote` for four tools.

### Where is data kept?

In a local store; the default folder is ~/.polite-crawler.

### How do I add polite-crawler to Claude Code?

Run this command in your terminal: claude mcp add polite-crawler -- npx -y polite-crawler-mcp

### What are the best alternatives to polite-crawler?

The closest alternatives to polite-crawler are Scrapling MCP Server, Codebase Memory, XERJ, Firecrawl MCP Server and Claude Code Ultimate Guide.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Douyin_TikTok_Download_API](https://ai-powered.com/mcp/douyin-tiktok-download-api): Douyin_TikTok_Download_API is an open-source MCP server for web search and scraping.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/polite-crawler
