Skip to content
MCP server

polite-crawler

Polite web fetching for agents: obeys robots.txt, stores pages, verifies quotes

Runs locally

polite-crawler is an MCP server for web search and scraping. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Self-hosted
Runs
Locally
Version
0.7.12
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "polite-crawler": {
      "command": "npx",
      "args": [
        "-y",
        "polite-crawler-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • POLITE_CRAWLER_DIRThe folder of the store. The default is ~/.polite-crawler.
  • POLITE_CRAWLER_CONTACTAn email address or URL for the From header of each request.
  • POLITE_CRAWLER_ALLOW_PRIVATESet it to 1 to let the crawler fetch loopback, private and link-local addresses. The default refuses them.
  • POLITE_CRAWLER_ALLOW_USER_PROVIDEDSet 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_KEYThe 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_AGENTWhere 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.

About polite-crawler

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.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

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_fetchName suggests: reads
Fetch pages into the local store.
crawl_findName suggests: reads
Search stored pages for ranked passages.
crawl_readName 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.

What it does

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

polite-crawler 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.

How AIPoweredBot checks servers