Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Crawlemoon MCP Server

Crawlemoon MCP Server — free, AI-native web crawling for the agent era

python 3.10+ · pypi 1.1.0 · MIT · MCP-native · code style black

A free, open-source MCP server that gives any agent (Claude Code, Cursor, Windsurf, …) 55 production-grade tools for the full web-crawling stack: deep analysis, stealth, API discovery, session recording → runnable crawler, smart extraction. No proprietary API. No per-request fee.

Crawlemoon capabilities — deep analysis, stealth, record→crawler, smart extraction


Quick start

Three install paths — uvx, pipx, pip

The recommended path needs no install — uvx runs straight from PyPI:

{
  "mcpServers": {
    "crawlemoon": {
      "command": "uvx",
      "args": ["crawlemoon"]
    }
  }
}

Requires uv. Install once: curl -LsSf https://astral.sh/uv/install.sh | sh. Or use pipx run crawlemoon / pip install crawlemoon instead.

Where to put that JSON: Cursor → Settings → MCP. Claude Code → ~/.config/claude/mcp_settings.json. Windsurf → Settings → MCP Servers.


How it works

Agent → Crawlemoon → Browser/HTTP/Proxy → target web

Your agent talks to Crawlemoon over the Model Context Protocol. Crawlemoon owns a hardened browser pool, an HTTP stack with TLS fingerprinting, and a rotating proxy pool. While it fetches pages, it captures network traffic, reads scripts, and introspects schemas — so the agent gets clean structured data, not raw HTML.


What's in the box

A short list — see the source for the full set of 55 tools.

Group Tools
Deep analysis deep_analyze, discover_apis, introspect_graphql, analyze_websocket, analyze_auth, detect_protection, detect_technology
Stealth stealth_request, configure_proxies, configure_rate_limit, add_proxy, test_proxy
Record → crawler record_session, stop_recording, export_recording, generate_crawler
Extraction smart_extract, extract_article, extract_tables, extract_links, extract_forms, extract_metadata, convert_to_markdown
Page interaction take_screenshot, fill_form, wait_and_extract, compare_pages, measure_performance, check_accessibility, get_dom_tree
Sessions & cache save_session, load_session, get_cookies, get_storage, clear_cache, get_cache_stats
Advanced (opt-in) execute_js, execute_cdp, deobfuscate_js, extract_from_js, solve_captcha

Smart extraction — bring any LLM, including free ones

smart_extract works without any API key using pattern matching. Plug in any OpenAI-compatible endpoint for higher accuracy — including FREE tiers:

# OpenRouter (free models exist)
CRAWLEMOON_LLM_PROVIDER=openrouter
CRAWLEMOON_LLM_API_KEY=sk-or-v1-xxx
CRAWLEMOON_LLM_MODEL=meta-llama/llama-3.2-3b-instruct:free

# Groq (free, very fast)
CRAWLEMOON_LLM_PROVIDER=groq
CRAWLEMOON_LLM_API_KEY=gsk_xxx

# Local Ollama (no key needed)
CRAWLEMOON_LLM_PROVIDER=ollama
CRAWLEMOON_LLM_MODEL=llama3.2

Together, DeepSeek, Mistral, Fireworks, and standard OpenAI also work via CRAWLEMOON_LLM_BASE_URL.


Configuration

Variable Default Notes
CRAWLEMOON_HEADLESS true Run browser without UI
CRAWLEMOON_BROWSER chromium chromium / firefox / webkit
CRAWLEMOON_POOL_SIZE 5 Max concurrent browsers
CRAWLEMOON_NAV_TIMEOUT 30.0 Page-load timeout (s)
CRAWLEMOON_API_KEY unset If set, every tool call must include matching _api_key
CRAWLEMOON_ALLOW_DANGEROUS_JS false Required for execute_js / execute_cdp / deobfuscate_js
CRAWLEMOON_JS_MAX_LENGTH 50000 Length cap for JS payloads
CRAWLEMOON_JS_EXEC_TIMEOUT 10.0 Per-script timeout (s)
CRAWLEMOON_PROXIES unset Comma/newline separated proxy entries
CRAWLEMOON_PROXIES_FILE unset Local file with one proxy per line
CRAWLEMOON_PROXY_SCHEME http Scheme for entries without one: http, https, socks4, socks5
CRAWLEMOON_PROXY_ROTATION round_robin round_robin, random, sticky, least_used
CRAWLEMOON_PROXY_HEALTH_CHECK_INTERVAL 300 Proxy health-check interval (s)
CRAWLEMOON_PROXY_FAIL_CLOSED false Raise on startup proxy config errors instead of continuing direct

Proxy, V2ray & connection control

Crawlemoon uses one rotating proxy pool for browser contexts, stealth_request, and Xray/V2ray local exits. Credentials are stored separately from normalized URLs and are masked in stats/log-style responses.

Supported proxy entry formats:

http://user:pass@31.59.20.176:6754
socks5://user:pass@127.0.0.1:1080
31.59.20.176:6754:user:pass
31.59.20.176:6754

Start the MCP server with a proxy file:

{
  "mcpServers": {
    "crawlemoon": {
      "command": "uvx",
      "args": ["crawlemoon"],
      "env": {
        "CRAWLEMOON_PROXIES_FILE": "/secure/path/proxies.txt",
        "CRAWLEMOON_PROXY_SCHEME": "http",
        "CRAWLEMOON_PROXY_ROTATION": "sticky"
      }
    }
  }
}

Proxy files can use Webshare-style lines and comments:

# host:port:username:password
31.59.20.176:6754:uusmdewb:en3w097syrxh
31.56.127.193:7684:uusmdewb:en3w097syrxh

Configure or replace proxies at runtime with the configure_proxies MCP tool:

{
  "proxies_text": "31.59.20.176:6754:user:pass\n31.56.127.193:7684:user:pass",
  "default_scheme": "http",
  "rotation_strategy": "sticky",
  "health_check_interval": 300,
  "replace_existing": true
}

Use add_proxy, remove_proxy, test_proxy, and get_proxy_stats for incremental control. get_proxy_stats returns masked proxy URLs, for example http://user:***@31.59.20.176:6754.

For V2ray/Xray, call configure_xray_subscription with either subscription_url or raw_links. Crawlemoon starts local SOCKS5 exits such as socks5://127.0.0.1:10801, registers them in the same proxy pool, and can rotate or benchmark nodes with rotate_xray_node and test_xray_nodes.

Keep proxy files out of git. They contain live credentials.


Security

execute_js, execute_cdp, and deobfuscate_js are disabled by default — they execute or operate on arbitrary code in a real browser. Enable on trusted networks with CRAWLEMOON_ALLOW_DANGEROUS_JS=true. Even then, payloads are length-capped, time-bounded, and a denylist rejects eval, new Function, dynamic import(), document.write, importScripts, and WebAssembly.{compile,instantiate}. Set CRAWLEMOON_API_KEY so MCP clients must present a matching _api_key.

These are mitigations, not a sandbox: do not expose this server to untrusted clients.


Develop

git clone https://github.com/razavioo/crawlemoon.git
cd crawlemoon
make dev-install      # editable install + dev/captcha/ocr extras + pre-commit
make test             # pytest
make lint             # ruff + mypy

Releases

This project uses Trusted Publishing (OIDC) via GitHub Actions to automate publishing releases directly to PyPI.

To release a new version:

  1. Bump the version number in pyproject.toml.
  2. Commit the change and create a git tag matching the version (e.g. v1.1.8):
    git add pyproject.toml
    git commit -m "chore: bump version to 1.1.8"
    git tag v1.1.8
    
  3. Push your branch and the tag to GitHub:
    git push origin main --tags
    

GitHub Actions will automatically run tests, build the package, and publish it securely to PyPI under the crawlemoon package space.

PRs welcome. Particularly interested in: distributed mode (Redis queue), result sinks (Postgres / S3), Prometheus metrics. See MIT License.

Made by emad.dev

Metadata

Release files for crawlemoon 1.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for crawlemoon 1.1.11
File Size Uploaded Provenance Actions
crawlemoon-1.1.11.tar.gz 170.2 kB Without provenance Details for crawlemoon-1.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crawlemoon 1.1.11
File Interpreter ABI Platform Actions
crawlemoon-1.1.11-py3-none-any.whl Python 3 none any Details for crawlemoon-1.1.11-py3-none-any.whl

Total release size: 311.4 kB

Release files / crawlemoon-1.1.11.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL crawlemoon-1.1.11.tar.gz
Size 170.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9803d481df19e7b5791f50bd603a55dc3fdd9fdc3f9313a5b97445a0867370e4
BLAKE2b-256 checksum
How to use checksums
45f6093edd1867f8f7e111e276313d8bcf853dbc1d96dcb8b16cc29ee8d19c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / crawlemoon-1.1.11-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL crawlemoon-1.1.11-py3-none-any.whl
Size 141.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0f66c21a7d32f3a7ec07ece2d4030378e806af965d8ae3d89714f03fbbec9d2
BLAKE2b-256 checksum
How to use checksums
82396a16e0238d4a06ba2cbb4487969490d7401b84930027e1de73f584f0ee1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for crawlemoon 1.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 1.1.10 2 files With provenance
  • Added 1.1.11 2 files Without provenance

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page