/webmcp-browser-agents:webmcp-securityfrom webmcp-browser-agents
Implements WebMCP security best practices including permission model, data minimization, honest descriptions, input validation, fingerprinting prevention, and fraud mitigation. Use when auditing or hardening WebMCP tool implementations.
Ships in webmcp-browser-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://webmachinelearning.github.io/webmcp/ for security-related sections of the specificationwebmcp security privacy permission model for security architecture detailssite:github.com mcp-b security for polyfill security guidelineswebmcp fingerprinting data minimization for privacy best practicesWebMCP's security model is permission-first:
destructiveHint, readOnlyHint) inform browser permission decisions| Threat | Description | Mitigation |
|---|---|---|
| Deceptive tool descriptions | Tool named "addToCart" actually charges the user | Honest descriptions; browser/audit verification |
| Agent hallucination | Agent calls wrong tool or passes bad parameters | Schema validation; user confirmation for high-risk tools |
| Over-parameterization | Tool requests excessive personal data from agent | Data minimization; server-side session lookups |
| Fingerprinting | Tool parameters reveal user attributes | Minimal input schemas; avoid asking for identity data |
| Rapid automation abuse | Agent makes rapid repeated transactions | Server-side rate limiting; CAPTCHA for bulk operations |
| Cross-origin data leak | Tool exposes data from another origin | Same-origin enforcement; browser sandboxing |
| Session hijacking | Tool's session exploited by malicious agent | Standard CSRF protection; secure cookie flags |
| Prompt injection | Malicious content in tool results manipulates agent | Output sanitization; structured JSON responses |
Tool descriptions are a critical security surface:
addToCart that actually calls placeOrderMinimize the data tools request from agents:
Bad — over-parameterized:
// DON'T: asking agent to supply user's personal data
inputSchema: {
properties: {
userId: { type: "string" },
email: { type: "string" },
shippingAddress: { type: "object" },
creditCardLast4: { type: "string" }
}
}
Good — minimal, server-side lookup:
// DO: only take what's needed, look up user data server-side
inputSchema: {
properties: {
productId: { type: "string" },
quantity: { type: "integer" }
}
}
// execute callback uses session cookies to identify the user server-side
Always validate tool input:
execute is calledProtect against agent abuse:
Log all agent interactions:
requestUserInteraction for financial actionsdestructiveHint set on all financial/irreversible toolsrequestUserInteraction used for purchases, deletions, and account changesclearContext() called on logoutFetch the specification for the latest security requirements, permission model details, and browser enforcement behavior before auditing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin webmcp-browser-agents14 skills in this plugin
/webmcp-authenticationImplement WebMCP authentication patterns — browser session inheritance, cookie-based auth, role-gated tool registration, and conditional tool exposure. Use when managing which tools are available based on user authentication state./webmcp-commerce-toolsImplement commerce-specific WebMCP tools — product search, cart management, checkout, returns, subscriptions, and support. Use when building agentic shopping experiences on e-commerce websites./webmcp-context-providerImplement the WebMCP provideContext API — bulk tool registration, contextual metadata, page state sharing, and dynamic context updates. Use when providing rich context and multiple tools to agents simultaneously.Other plugins' skills for the same job