scrapling-net
# scrapling-net
エージェント向けの、ページ取得とブラウザ操作の MCP サーバーです。
An MCP server for agents that fetches pages (escalating from plain HTTP to stealth browsers only when a page blocks) and can run simple browser actions before fetching.
- 壁に当たった時だけ重い手段へ登ります(http → stealth → browser → nodriver → byparr)。登る順番はホストごとの成績から学びます。
- 返りの頭に `状態: 成功 / 失敗 / 未確認` の札を付けます。ログイン画面へ飛ばされた取得や、検索の0件を成功と言いません。
- 「送った」と「効いた」を分けます。操作(`act`)の判定は 変わった/変わらない/分からない の三つです。
## 起動
```
./setup.ps1 # Windows
./setup.sh # Linux / macOS
uv run --frozen scrapling-net-mcp
```
## 環境変数
- `SCRAPLING_NET_HOME`: 成績やプロファイルの置き場(既定 `~/.scrapling_net`)
- `AGENT_BROWSER_BIN`: agent-browser の実行ファイル(`act` を使う時に要ります)
- `SCRAPLING_NET_BYPARR_URL`: Byparr の口(既定 `http://127.0.0.1:8191`)
- `SCRAPLING_NET_DETOUR_LEARN=0`: 順番の学習を止めます
MCP クライアントの設定例は `mcp.example.json` にあります。
## 必要な物
- `uv` と Python 3.11 以上
- `act` を使うなら `npm` と Chrome(setup が `agent-browser` を入れます)
- `setup` はブラウザも落とします。大きさは Scrapling の版と機体で変わります
- `mode=byparr` は Byparr を別に立てた時だけ使えます
## License
MIT(`LICENSE`)。
TDQS
Scored across 1 tool
There is only one tool, so an agent cannot mis-select between tools. The ambiguity is internal: mode (http/stealth/browser/nodriver/byparr/auto) and act semantics overlap, and the description notes that act only works in mode=http, which the agent must infer rather than have stated clearly.
A single name cannot be internally inconsistent, and snake_case with a server prefix is readable. However, 'scrapling_net' is a bare noun/product name that does not follow the verb_noun convention (e.g. fetch_page), so it does not convey an action.
One tool is defensible for a single-purpose page-fetching server. Still, that one tool hides five or more distinct fetching backends plus an action DSL behind parameters, effectively bundling several operations into one surface, which feels thin and overloaded at once.
Fetching a page, extracting elements by CSS; returning body text; and scripted actions (do/target/text/dialog) cover the core scraping lifecycle. Minor gaps remain: no documented controls for headers, cookies, waits, or forms beyond the generic act list.