webmcp-forge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WebMCP Forge
Compile any website or localhost app into a verified WebMCP server,
llms.txt, and prompt-injection-auditedSKILL.mdin one command.

Prefer GIF? View
assets/demo.gif.

Why webmcp-forge?
Vision loops burn thousands of screenshot & HTML tokens on every click, while static SKILL.md files go stale and carry supply-chain prompt-injection risks. webmcp-forge crawls your live app once with Playwright, compiles every workflow into strict JSON-Schema MCP tools, verifies the pack with SkillGuard, and serves live tools over stdio or sse.
Capability | Raw Browser Scraping | Static |
|
Token Cost | Raw | Prose instructions; agent still scrapes/guesses DOM | Up to 94% token reduction ( |
Execution Determinism | Fragile LLM-guessed CSS/XPath selectors | Unverified natural-language hints | Typed JSON Schema tools + standalone |
API & Form Discovery | Blind to background XHR/fetch payloads | Manually authored & drifts fast | Auto-extracts forms, tables, buttons, routes, ARIA landmarks, and live JSON APIs |
Supply-Chain Security | Unaudited DOM text exposed to prompt injection | Zero integrity or payload checks | Built-in SkillGuard (12 static/entropy/decode rules + SHA-256 |
Developer Debugging | Trial-and-error in agent logs | Plain Markdown text | Swiss Light-Mode Visual Inspector ( |
Related MCP server: GUI2MCP
1-Line Quickstarts
Requires Node.js 20+ and Playwright Chromium (npx playwright install chromium). Listed on the Glama MCP Server Directory and testable with MCP Inspector.
Compile Any Site or Localhost Dev Server
npx webmcp-forge http://localhost:3000 --uiThat single command crawls your app, outputs webmcp.json, mcp-server.ts, llms.txt, llms-full.txt, and SHA-256-signed SKILL.md to ./agent-pack, audits them with SkillGuard, and opens the Visual Inspector at http://localhost:4173.
Plug Into Any Coding Agent in One Line
Claude Code
claude mcp add webmcp-forge -- npx -y webmcp-forge serve ./agent-pack/webmcp.json --transport stdioOpenCode
node -e "const fs=require('fs'),p='opencode.json',c=fs.existsSync(p)?JSON.parse(fs.readFileSync(p,'utf8')):{$schema:'https://opencode.ai/config.json'};c.mcp=c.mcp||{};c.mcp['webmcp-forge']={type:'local',command:['npx','-y','webmcp-forge','serve','./agent-pack/webmcp.json','--transport','stdio'],enabled:true};fs.writeFileSync(p,JSON.stringify(c,null,2)+'\n');"Cursor
node -e "const fs=require('fs');fs.mkdirSync('.cursor',{recursive:true});const p='.cursor/mcp.json',c=fs.existsSync(p)?JSON.parse(fs.readFileSync(p,'utf8')):{};c.mcpServers=c.mcpServers||{};c.mcpServers['webmcp-forge']={command:'npx',args:['-y','webmcp-forge','serve','./agent-pack/webmcp.json','--transport','stdio']};fs.writeFileSync(p,JSON.stringify(c,null,2)+'\n');"Gemini CLI
gemini mcp add webmcp-forge npx -y webmcp-forge serve ./agent-pack/webmcp.json --transport stdioAntigravity
node -e "const fs=require('fs'),os=require('os'),path=require('path'),p=path.join(os.homedir(),'.gemini','antigravity','mcp_config.json');fs.mkdirSync(path.dirname(p),{recursive:true});const c=fs.existsSync(p)?JSON.parse(fs.readFileSync(p,'utf8')):{};c.mcpServers=c.mcpServers||{};c.mcpServers['webmcp-forge']={command:'npx',args:['-y','webmcp-forge','serve','./agent-pack/webmcp.json','--transport','stdio']};fs.writeFileSync(p,JSON.stringify(c,null,2)+'\n');"Prefer HTTP/SSE transport? Run
npx webmcp-forge serve ./agent-pack/webmcp.json --transport sse --port 4174.
Gate Pull Requests with webmcp-forge audit (GitHub Action)
Drop this workflow into .github/workflows/skillguard.yml to block hidden prompt injections, Unicode smuggling, Base64 exfiltration payloads, and tampered SKILL.md manifests on every PR:
name: SkillGuard Audit
on:
pull_request:
paths:
- '**/SKILL.md'
- 'agent-pack/**'
jobs:
audit-skills:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Run SkillGuard strict audit
run: npx -y webmcp-forge audit . --strictCompiled Pack Breakdown
Every webmcp-forge scan <url> outputs five deterministic artifacts into --out <dir> (default ./agent-pack):
Artifact | What It Contains |
| Typed WebMCP manifest with crawled pages, ARIA landmarks, observed JSON APIs, token savings breakdown, SkillGuard audit summary, and executable tool definitions ( |
| Standalone TypeScript MCP server using |
| Clean, spec-aligned agent discovery index summarizing routes, tools, APIs, and pack files. |
| Complete Markdown technical reference including full JSON Schemas and field specifications for every tool. |
| Signed agent playbook carrying |
CLI Reference
webmcp-forge scan <url>
Crawl a live URL (or pass <url> directly without scan), compile the WebMCP pack, audit SKILL.md, and optionally launch the Visual Inspector.
Flag | Default | Description |
|
| Output directory for compiled agent pack |
|
| Launch the Swiss light-mode Visual Inspector after compilation |
|
| Port for the Visual Inspector HTTP server |
|
| Maximum same-origin pages to crawl |
|
| Maximum link crawl depth |
|
| Per-page navigation timeout in ms |
|
| Output scan result as JSON |
| — | Do not attempt to open the browser automatically |
webmcp-forge audit <targetPath>
Run SkillGuard static, Shannon-entropy, and SHA-256 manifest verification on a SKILL.md file or directory. Exits with code 1 on threats.
Flag | Default | Description |
|
| Output SkillGuard audit report as JSON |
|
| Exit with code |
webmcp-forge serve <manifestPath>
Start a live Playwright-backed MCP server from a compiled webmcp.json.
Flag | Default | Description |
|
| MCP transport mode: |
|
| Port for SSE transport |
Visual Inspector API (--ui)
GET /api/health— server readiness, target URL, and compiled tool countGET /api/pack— compiledmanifest,auditReport, rawartifacts, andartifactMeta(bytes,sha256)POST /api/test-tool— executes a named tool live viaPlaywrightToolExecutor({ toolName, args })POST /api/audit— runs SkillGuard on submitted{ content, filename }or re-audits the pack on disk
SkillGuard Security Scanner
SkillGuard audits SKILL.md files and agent packs across 12 deterministic rules, pinpointing exact file:line:column coordinates, decoded obfuscated payloads, and remediation steps:
Rule ID | Category | Severity | What It Catches |
|
|
| Zero-width characters ( |
|
|
| Bidirectional Trojan Source control characters ( |
|
|
| Direct prompt-override & jailbreak directives ( |
|
|
| Suspicious agent, shell, or credential directives hidden inside HTML comments ( |
|
|
| Role or chat-template delimiter spoofing ( |
|
|
| High-entropy ( |
|
|
| Explicit decode/eval obfuscation ( |
|
|
| Exfiltration capture/tunnel domains ( |
|
|
| Remote script pipes ( |
|
|
| Reverse-shell primitives ( |
|
|
| Credential & secret harvesting ( |
|
|
|
|
Programmatic API
import {
scanAndCompile,
auditTarget,
startMcpServer,
startInspectorServer,
} from 'webmcp-forge';
const compiled = await scanAndCompile('http://127.0.0.1:3456', {
outDir: './agent-pack',
crawlOptions: { maxPages: 8, maxDepth: 2, timeoutMs: 15000 },
});
const audit = await auditTarget('./agent-pack/SKILL.md');
if (audit.status !== 'CLEAN') {
throw new Error(`SkillGuard failed (${audit.score}/100)`);
}
const inspector = await startInspectorServer({ packDir: compiled.outDir, port: 4173 });
const mcp = await startMcpServer(compiled.files.webmcpJson, { transport: 'sse', port: 4174 });Local Development & Testing
git clone https://github.com/noahsh/webmcp-forge.git
cd webmcp-forge
npm install
npx playwright install chromium
npm run typecheck # Strict TypeScript check
npm run build # Bundle CLI/library (tsup) and Visual Inspector UI (vite)
npm test # Run all 4 Vitest + Playwright integration test suites
npm run demo:server # Run bundled Atelier Hardware demo store on http://127.0.0.1:3456
npm run capture:demo # Re-run real scan + Playwright/ffmpeg asset captureSee CONTRIBUTING.md and CHANGELOG.md.
License
MIT © 2026 WebMCP Forge Contributors
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Web search, structured extraction, page monitor, link check & CVE scan for AI agents over MCP.
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
Verified websites as JSON commands for AI agents over plain curl or MCP.
Related MCP Servers
- FlicenseBqualityCmaintenanceCompiles any website into typed, callable tools for AI agents, enabling discovery and invocation of live web APIs and UI actions without custom MCP servers.81-
- -licenseNot gradedqualityCmaintenanceEnables AI agents to discover and call business actions from browser-only legacy web applications as typed MCP tools, executing them through the original GUI via Playwright.-
- AlicenseNot gradedqualityBmaintenanceEnables browser automation through MCP with native Playwright operations, deterministic assertions, and natural-language grounded actions, structured extraction, and bounded agent workflows over live page elements.13Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI agents and MCP hosts to drive a persistent headless Chromium browser through Playwright, navigating pages, mapping visible fields and actions, clicking, typing, scrolling, and capturing screenshots via stdio tool calls. It also powers a local AI Test Studio dashboard that generates and runs structured end-to-end test plans with assertions, per-step timing, and screenshot evidence.41MIT