polite-crawler

v0.8.1
io.github.mark1russell7/polite-crawler Checked 12 hours ago Published 2 days ago

A polite crawler for agents: obeys robots.txt, fetches each page once, finds and verifies quotes.

Values you need

VariableWhat it is
POLITE_CRAWLER_DIRoptional The folder of the store. The default is ~/.polite-crawler.
POLITE_CRAWLER_CONTACToptional An email address or URL for the From header of each request.
POLITE_CRAWLER_ALLOW_PRIVATEoptional Set it to 1 to let the crawler fetch loopback, private and link-local addresses. The default refuses them.
POLITE_CRAWLER_ALLOW_USER_PROVIDEDoptional Set it to 1 to let user_provided read a page that refuses AI input when the client cannot ask the user to confirm.
POLITE_CRAWLER_SIGN_KEYoptional The file of an Ed25519 private key (PKCS#8 PEM or JWK). The crawler signs each request with it (Web Bot Auth). It needs POLITE_CRAWLER_SIGNATURE_AGENT.
POLITE_CRAWLER_SIGNATURE_AGENToptional Where a site finds the public key of POLITE_CRAWLER_SIGN_KEY: the https origin of the key directory, or the URL of a JSON Web Key Set.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add polite-crawler -- npx -y polite-crawler-mcp@0.8.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "polite-crawler": {
      "args": [
        "-y",
        "polite-crawler-mcp@0.8.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "polite-crawler": {
      "args": [
        "-y",
        "polite-crawler-mcp@0.8.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "polite-crawler": {
      "args": [
        "-y",
        "polite-crawler-mcp@0.8.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.polite-crawler]
command = "npx"
args = ["-y", "polite-crawler-mcp@0.8.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: crawl_fetch, crawl_find, crawl_read, crawl_verify, crawl_extract, crawl_discover, crawl_site, crawl_diff, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json