
nokk
io.github.koloss777由 GitHub 帳號 koloss777 發布v0.1.49a1更新於 Nov 7, 2026
Headless browser for AI agents with Chrome's fingerprint that passes Cloudflare challenges.
概覽
提供隱身無頭瀏覽器引擎的 MCP 伺服器,模擬 Chrome 指紋並通過 Cloudflare 驗證,讓助理能開啟網頁並讀取內容。
- 可以做什麼
- 開啟網頁並取得目前頁面的快照
- 讀取頁面文字、HTML 與連結清單
- 透過點擊元素與填寫表單欄位與頁面互動
- 在頁面中執行 JavaScript 並求值運算式
- 解決 Cloudflare/Turnstile 驗證、查詢驗證狀態或重設工作階段
- 適用情境
- 適合助理需要瀏覽或擷取受 Cloudflare、Turnstile 保護的網站,或希望以輕量級類 Chrome 引擎取代完整 Chromium 的情況。若需要截圖、PDF、版面渲染或完整的 Playwright/CDP 介面,則不適合。
- 執行需求
- 以本機 stdio 程序執行,使用 uvx nokk-mcp 啟動(或 pip install nokk[mcp] 後執行 python -m nokk.mcp)。預先編譯版本支援 Linux x86_64/ARM64、macOS Apple Silicon 與 Windows x64,無需下載瀏覽器。可選環境變數 NOKK_NO_AUTO_SOLVE、NOKK_PROXY、NOKK_ROTATE_FINGERPRINT 可調整行為。需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 nokk,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
A stealth headless browser engine in Rust. Passes Cloudflare without Chromium.
Real V8 and a DOM, a Chrome TLS/HTTP fingerprint (JA3/JA4) and JS-level stealth, driven over the Chrome DevTools Protocol: Puppeteer and Playwright connect as usual. Also an MCP server for AI agents.
[CI] [Release] [PyPI] [npm] [Docker] [Rust] [License: MIT OR Apache-2.0] [Status: alpha]
[curl gets 403 from a Cloudflare test page; nokk loads it, clears the challenge and prints the page behind it in about 5 seconds]scrapingcourse.com's Cloudflare test page, one run from a home connection; medians across sites are in the tables below.
The nøkk is a shapeshifting water-spirit of Norse myth that takes on a familiar shape to pass unnoticed. This one takes the shape of Chrome.
Install
No browser to download. Prebuilt for Linux (x86_64, ARM64), macOS on Apple Silicon and Windows x64; anything else builds from source.
Quick start
For AI agents, uvx nokk-mcp runs it as an MCP server.
Puppeteer, Node, sessions and the Cloudflare options are below.
Why nokk
Puppeteer and Playwright drive a real Chromium, and anti-bot systems spot it through
navigator.webdriver, CDP artifacts and a headless TLS handshake. nokk is built to
look like Chrome from the TLS handshake to the JavaScript environment, and has no
rendering engine at all.
Measured on nokk 0.1.35, an 8-core Linux box, October 2026. Cloudflare row: 8 production sites × 3 runs
through one proxy, nokk with --until-clearance, Chrome driven by a
checkbox-clicking harness; a solve counts only if the site then opens with the cookie.
Not for you if you need screenshots, PDFs, layout or paint, or the whole Playwright/CDP surface: nokk has no rendering engine by design, and its CDP coverage is the path Puppeteer and Playwright use for navigation and scripting.
Measured on public pages
Three runs per page from the CLI with --solve-challenge 30 and no proxy, on an 8-core
Linux box (October 2026). The time is the whole command, from process start to the printed
result. Run them yourself with tools/cf-check.sh.
On production sites behind Cloudflare the result is in the comparison above: 8 sites, 24 of 24 solved. Those sites are not named here.
Usage
Command line
Ad, analytics and tracker requests are dropped by default; --allow-trackers loads them.
Anti-bot vendors are never blocked, because they must run to hand out a token.
Puppeteer
Node and Python
Both packages carry the prebuilt binary and start the CDP server for you.
crawl4ai, Scrapy, Playwright MCP and other CDP tools
Anything that drives Chrome over CDP can drive nokk instead. crawl4ai, stopped by
Cloudflare with its own Chromium, gets the page behind it through nokk:
BrowserConfig(browser_mode="custom", cdp_url=server.ws_endpoint). Scrapy
(scrapy-playwright's PLAYWRIGHT_CDP_URL) and Playwright MCP (--cdp-endpoint)
work the same way. See docs/integrations.md.
For AI agents (MCP)
nokk runs as a Model Context Protocol server, so an agent such as Claude Desktop or Claude Code browses through the fingerprinted engine. With uv nothing needs installing first:
Without uv: pip install "nokk[mcp]", then "command": "python", "args": ["-m", "nokk.mcp"].
Tools: open, snapshot, read_text, read_html, click, fill, evaluate, links, solve_challenge,
challenge_state, reset.
Cloudflare challenges
nokk clears Turnstile by itself: the invisible widget, the managed interstitial and the interactive Verify you are human checkbox. Nothing is configured per site. Where a widget needs a press, the engine presses it like a person would.
--solve-challenge Nsets the time budget, and--fail-on-challengeexits3if a gate is still up.--until-clearancestops at a freshcf_clearanceand skips the heavy page behind the gate.--auto-solvedoes the same for everypage.goto()over CDP;Nokk.solveChallengedoes it on demand.- A
cf_clearancefrom a real browser can be imported, because nokk's JA4 matches Chrome 151.
Details, the CDP methods and events: docs/cloudflare.md.
Persistent sessions
--session-store ./sessions saves each named session's cookie jar, cf_clearance included,
to disk and reloads it in a new process. Warm a session once and reuse it instead of
solving the challenge on every run. See docs/sessions.md.
Rotating fingerprints
--rotate-fingerprint gives every browser context its own coherent machine: TLS emulation,
User-Agent, client hints, platform, screen and WebGL all agree. --geoip-timezone matches the
timezone and languages to the proxy's exit IP. See docs/fingerprints.md.
Builds
Prebuilt for Linux x86_64 and ARM64, macOS on Apple Silicon and Windows x64; the render build for Linux x86_64. Docker variants, the archives and building from source are in docs/install.md.
How it works
A Cargo workspace of small crates: a V8 isolate pool, a Chrome-fingerprinted HTTP client on
BoringSSL, an html5ever DOM, the stealth layer and a CDP server. Concurrency is one isolate
per thread with many contexts each, all IO runs on tokio off the isolate threads, and the
JS fingerprint and the TLS fingerprint always agree. More in docs/architecture.md.
Project status
Alpha. The engine is real and end-to-end: V8 executes page JS against a parsed DOM, the fingerprinted transport clears Cloudflare's TLS/HTTP checks, the engine solves Turnstile on live sites — invisible, managed and interactive — and Puppeteer and Playwright connect over CDP to open a page, navigate, and evaluate.
What is not done yet, and where the sharp edges are:
- JS-fingerprint hardening is ongoing. Much of the hardening is in place — native
toStringmasking, internals hidden fromObject.getOwnPropertyNames,navigator/screenas real prototype instances, an IP-coherent timezone, and per-context coherent fingerprint rotation, Web Workers, canvas/WebGL/WebGPU/audio with Chrome's pixels and samples, Trusted Types and CSP. nokk solves Cloudflare's challenges today, and the comparison against Chrome section by section is how the remaining tells get found; it is not yet a match for a dedicated fingerprinting suite like CreepJS. See the roadmap. - CDP coverage is the common path, not the whole protocol. Puppeteer and Playwright
connect over CDP: navigation,
evaluate,$/$eval/$$eval,title(),url(), new pages and CDP sessions are tested; less-common domains are not implemented yet. - Per-context cookie isolation and per-session persistence work (each browser context gets its own jar; named sessions persist across runs); per-host / per-proxy / global connection limits are not yet enforced (Phase 7).
- No rendering — screenshots, PDF, and layout/paint are out of scope by design.
See ROADMAP.md for the phased plan and the concrete hardening backlog.
Contributing
Issues and PRs are welcome — the hardening backlog in the roadmap is a good place to start. Before sending a change:
License
Licensed under either of MIT or Apache-2.0 at your option.
Unless you explicitly state otherwise, any contribution you submit for inclusion in this work, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.
來源:README.md,提交 fac0a8b
工具
0版本歷史
2- v0.1.49a1最新Nov 7, 2026
- v0.1.46a1Oct 25, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分