add-webmcp
Skill by browserbase
Adds first-party WebMCP tools to an existing web app by analyzing its source code. It then validates tool discovery and invocation with Stagehand. Built for developers who want their app agent-ready.
Install add-webmcp
Built from the published package, never by AI.
git clone --depth 1 https://github.com/browserbase/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/add-webmcp ~/.claude/skills/add-webmcpRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/browserbase/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/add-webmcp ~/.gemini/antigravity-cli/skills/add-webmcpAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
add-webmcp is an agent skill that reads an existing web application's source and identifies user-visible capabilities across routes, forms, server actions, handlers, and schemas. It then implements first-party WebMCP tools inside the codebase, reusing the app's own validators and client or service boundaries. The skill states that it does not introduce a hosted proxy or third-party runtime.
The skill designs each tool with a stable name, closed input schemas, and risk-based annotations and confirmation rules. It validates discovery and invocation with a bundled Stagehand validator, and it asks the agent to probe tools for schema closure, error honesty, and real effects. It is meant for developers who want to expose website features as WebMCP tools directly in their app, rather than generating a standalone init script from a URL.
Written from the project's SKILL.md and checked against it.
What it can do
- Capability inventoryTraces routes, forms, server actions, and schemas to pick safe user-visible tasks to expose.
- Tool contract designDerives JSON Schema from existing validators and assigns risk-based annotations to each tool.
- App integrationRegisters WebMCP tools from a client-only root using navigator or document.modelContext.
- Stagehand validationChecks tool discovery and invocation against a webmcp.e2e.json config using Stagehand.
- Adversarial verificationProbes tools with malformed inputs and checks the real application state after each call.
- Result reportLists capabilities considered, exclusions, contracts, and the probes each tool survived.
What you need
- Node.js 22.18 or newer
- Chrome or Chromium installed locally
- BROWSERBASE_API_KEY for a publicly reachable deployed preview
Try asking
- Make this codebase agent-ready by exposing its features as WebMCP tools.
- Add WebMCP tools for search and saving drafts to my web app.
- Validate my WebMCP tools with Stagehand against localhost:3000.
Good to know
- The validator refuses consequential invocations unless --allow-consequential is supplied.
- Tool annotations are hints, not security enforcement; the app must enforce permissions and validation.
- An injected init script can test the validator but does not prove the app ships its own tools.
- Browser support beyond the tested environment is not covered by the skill.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/add-webmcp/SKILL.md, skills/add-webmcp/scripts/scan-codebase.mjs, skills/add-webmcp/scripts/validate-stagehand.mjs, skills/add-webmcp/tests/fixtures/sample-next/app/api/catalog/route.ts, skills/add-webmcp/tests/fixtures/webmcp.init.js, skills/add-webmcp/tests/scan-codebase.test.mjs, skills/add-webmcp/tests/validator-safety.test.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash Read Grep Edit Write
-
.gitignore20 B -
LICENSE.txt1 KB -
SKILL.md12 KB -
evals/evals.json2 KB -
package.json845 B
Show all 23 files
-
pnpm-lock.yaml13 KB -
references/implementation-and-validation.md8 KB -
references/quality-rubric.md5 KB -
scripts/scan-codebase.mjs9 KB -
scripts/validate-stagehand.mjs10 KB -
tests/fixtures/browserbase-owned-webmcp.e2e.json938 B -
tests/fixtures/catalog-gym.e2e.json1 KB -
tests/fixtures/sample-next/app/api/catalog/route.ts194 B -
tests/fixtures/sample-next/app/checkout/page.tsx576 B -
tests/fixtures/sample-next/app/page.tsx67 B -
tests/fixtures/sample-next/package.json111 B -
tests/fixtures/support-gym.e2e.json1 KB -
tests/fixtures/webmcp.consequential.json156 B -
tests/fixtures/webmcp.e2e.json621 B -
tests/fixtures/webmcp.init.js1 KB -
tests/fixtures/webmcp.missing.json89 B -
tests/scan-codebase.test.mjs1 KB -
tests/validator-safety.test.mjs896 B
Alternatives to add-webmcp
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
add-webmcp: common questions
Does add-webmcp generate a standalone script from a URL?
No. The skill starts from source code and integrates tools into the application. The source says to use webmcp-gen when the output should be a standalone init script derived from a live URL.
Can the skill trigger purchases or other irreversible actions?
The skill says consequential tools should keep the final action behind the app's real confirmation control and must not use declarative toolautosubmit. The validator needs --allow-consequential before it invokes such tools.
Can I run the validation in CI?
Yes. Local runs are headed by default, and the source says to pass --headless for CI or unattended runs.
How do I install add-webmcp?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-webmcp free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is add-webmcp safe to use?
It scores 83 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-webmcp?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
