S22 Web Agent MCP Server
Provides MCP tools for web page scanning, data extraction, local storage, markdown report generation, and browser inspection using Playwright on a Samsung S22.
README
S22 Web Agent
A mobile-first web automation and MCP portfolio project running on a Samsung S22 using Termux, Node.js, SQLite, Express, MCP, and Debian proot Playwright.
This project explores whether an Android phone can act as a lightweight AI automation development environment, local tool server, and browser automation node.
Project Goal
The goal of this project is to build a practical AI automation agent that runs from a Samsung S22 instead of a VPS or laptop.
It demonstrates how a phone can host:
- CLI automation
- HTTP API tools
- MCP tools
- SQLite-backed local memory
- Markdown report generation
- Browser inspection through Chromium and Playwright inside Debian proot
Why Samsung S22?
This project is intentionally built on Samsung S22 through Termux.
Instead of using a VPS or laptop as the main runtime, the phone acts as the local development and execution environment.
This makes the project useful as a portfolio demonstration for:
- AI automation engineering
- MCP tool development
- Applied AI workflow prototyping
- Mobile Linux experimentation
- Browser automation with constrained hardware
Current Features
- Scan a webpage URL from CLI
- Scan a webpage URL through HTTP API
- Normalize simple domain inputs such as
example.comintohttps://example.com/ - Extract page title, description, headings, and links
- Save scan result into SQLite
- List saved scan records
- Show full scan detail by ID
- Delete unwanted scan records
- Generate markdown report from saved scan data
- Run an MCP server
- Expose scan/list/page/report functions as MCP tools
- Inspect browser-rendered pages through MCP using a Debian proot Playwright worker
- Track development progress using Git
Tech Stack
- Samsung S22
- Termux
- Debian proot
- Node.js
- npm
- Cheerio
- Express
- SQLite
- MCP SDK
- playwright-core
- Chromium
- Git
Architecture
Current working flow:
ChatGPT / MCP Inspector
|
v
MCP Server on Samsung S22
|
v
HTTP API Server on port 3001
|
v
Scanner + SQLite database
Browser inspection flow:
MCP browser_inspect_url
|
v
Debian proot Playwright worker on port 3002
|
v
Chromium headless browser
The CLI and HTTP API share the same scanner module.
CLI scan -> src/scanner.js
API POST /scan -> src/scanner.js
The browser inspection tool uses a separate Playwright worker running inside Debian proot.
CLI Usage
Install dependencies:
npm install
Scan a webpage:
node src/index.js scan https://example.com
Simple domain input is also supported:
node src/index.js scan example.com
List saved scans:
node src/index.js list
Show scan detail:
node src/index.js show 1
Delete scan record:
node src/index.js delete 1
Generate markdown report:
node src/index.js report 1
Show help:
node src/index.js help
Example CLI Flow
node src/index.js scan example.com
node src/index.js list
node src/index.js show 1
node src/index.js report 1
HTTP API Server
The project includes an Express-based HTTP API server running inside Termux on the Samsung S22.
Start the server:
npm run server
Default API port:
3001
Available endpoints:
GET /health
GET /pages
GET /pages/:id
POST /scan
GET /report/:id
Example health check:
curl http://localhost:3001/health
Example scan request:
curl -X POST http://localhost:3001/scan \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
Simple domain input is also supported:
curl -X POST http://localhost:3001/scan \
-H "Content-Type: application/json" \
-d '{"url":"example.com"}'
Example LAN access from PC:
http://<S22-IP>:3001/health
http://<S22-IP>:3001/pages
This confirms the S22 can act as a local network-accessible tool server.
MCP Tools
The project includes an MCP server that exposes the scanner and browser inspection features as tools.
Tested MCP tools:
job_radar_scanjob_radar_list_pagesjob_radar_get_pagejob_radar_get_reportbrowser_inspect_url
Start the MCP server:
npm run mcp
Example MCP Inspector usage:
npx @modelcontextprotocol/inspector npm run mcp
Debian Proot Playwright Worker
Some websites require browser-rendered inspection instead of static HTML scanning.
For that case, the project uses a Debian proot worker running Chromium through Playwright.
Default worker port:
3002
The proot Playwright setup is documented here:
docs/proot-playwright.md
Worker source files are stored here:
tools/proot-playwright-worker
URL Normalization
The scanner supports simple domain input.
Example:
example.com
is normalized to:
https://example.com/
This works through:
- CLI
- HTTP API
- MCP tool calls
Documentation
Additional project notes:
docs/progress.md
docs/portfolio-polish.md
docs/proot-playwright.md
Limitations
- Some websites may block simple HTTP requests with 403 Forbidden.
- The CLI and HTTP API scanner currently use static HTML extraction.
- JavaScript-heavy websites require the separate Debian proot Playwright worker.
- The browser worker must be started separately inside Debian proot.
- Termux or proot may slow down when the phone screen is off.
- The project is built for learning and portfolio demonstration, not production use.
Roadmap
Planned improvements:
- Add architecture diagram image
- Add screenshots for GitHub demo
- Add
.env.example - Add license file
- Add sample scan output
- Add screenshot capture metadata from Playwright
- Improve classifier scoring notes
- Improve error handling for failed scans
- Save browser inspection result to database
- Add portfolio demo report export
Portfolio Summary
Built a Samsung S22-hosted web automation and MCP prototype using Termux, Node.js, SQLite, Express, Debian proot, Chromium, and Playwright.
The system scans web pages, extracts structured page data, stores results locally, exposes results through CLI, HTTP API, and MCP tools, and generates markdown reports.
This demonstrates practical AI automation workflow development without relying on VPS infrastructure.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。