AI2Web
AI2Web JavaScript/TypeScript framework (@ai2web/*)
The reference framework for the AI2Web protocol. Describe your website's capabilities once; generate the manifest, routes, and adapters.
TypeScript, JavaScript, or React. The packages are authored in TypeScript but published as standard ESM JavaScript with bundled type declarations, so they run unchanged in plain JS. @ai2web/react adds hooks and an embeddable badge for React apps, and a framework-free <ai2w-badge> web component works in any HTML page with no build step. See examples/.
Packages
Package | Status | Purpose |
| ✅ scaffolded | Types, capability model, fluent manifest builder, validation + AI Readiness scoring, discovery client, export projections ( |
| ✅ scaffolded |
|
| ✅ scaffolded | Framework-agnostic |
| ✅ scaffolded | Expose declared capabilities as an MCP server (usable in Claude/ChatGPT today). |
| ✅ scaffolded | Project the declared model as a GraphQL schema (SDL + resolvers); GET actions become Query fields, writes become Mutations. |
| ✅ scaffolded | Drive a site's advertised ACP checkout transport (RFC-0005 Profile 1); the payment step stays approval-gated. |
| ✅ scaffolded | Drive a site's advertised AP2 (Agent Payments Protocol) merchant transport: create a signed Cart Mandate, settle a Payment Mandate; the payment step stays approval-gated. |
| ✅ scaffolded | Query a site's advertised NLWeb (nlweb.ai) |
| ✅ scaffolded | Describe the declared actions as an OpenAPI 3.1 document; auth becomes security, risk/approval become |
| ✅ scaffolded | Agent-side connector: one MCP server that fronts the Discovery Network and acts on sites. |
| ✅ scaffolded | React bindings: |
| ✅ scaffolded | Hono middleware: |
| ✅ scaffolded | Astro integration (auto-wires the routes) + a |
| ✅ scaffolded | Nuxt module: add |
The executing adapters (MCP, GraphQL, ACP) derive their surface from the same manifest and run through the one executeOperation in @ai2web/core, so none can expose an undeclared capability or drift on the security contract; the OpenAPI adapter is descriptive but likewise describes only declared actions and preserves their auth/risk semantics. Conformance is enforced in CI by scripts/adapter-conformance.ts (MCP), scripts/adapter-graphql-acp.ts (GraphQL + ACP), and scripts/adapter-openapi.ts (OpenAPI).
Related MCP server: agentify-desktop
Try the validator now (zero-dependency)
Before the TypeScript build, a runnable mirror lives at scripts/validate.mjs:
node scripts/validate.mjs ../ai2web-spec/examples/ecommerce.json # → AI Readiness Score 100/100
node scripts/validate.mjs https://some-site.com # fetches /ai2w with well-known fallbackDescribe a site once (builder)
import { ai2web } from "@ai2web/core";
const manifest = ai2web({ name: "Example Store", url: "https://example.com", type: "ecommerce" })
.capability("content")
.capability("commerce", { endpoint: "/ai2w/products", checkout: true })
.transports({ mcp: { enabled: true, endpoint: "/ai2w/mcp" }, rest: { enabled: true, base: "/ai2w" } })
.auth({ methods: ["none", "oauth2"], oauth2: { pkce: true, scopes: ["read_products", "checkout"] } })
.consent({ requires_user_approval_for: ["purchase", "payment"] })
.events({ endpoint: "/ai2w/events", types: ["order.shipped", "price.drop"] })
.build();Build (once dependencies are installed)
npm install
npm run build # tsc --build across workspacesLicence
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn any public website into an MCP server for agents to search, read and navigate.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
AlicenseDqualityDmaintenanceAn MCP server that enables AI clients like Cursor, Windsurf, and Claude Desktop to access web content in markdown format, providing web unblocking and searching capabilities.238 npm60MIT
agentify-desktopofficial
AlicenseNot gradedqualityCmaintenanceMCP server that enables AI tools to control local browser sessions for ChatGPT, Claude, and other AI services, supporting querying, navigation, file uploads, and artifact management.34 npm566Mozilla Public 2.0- FlicenseNot gradedqualityDmaintenanceEnables tool-calling LLMs to search the internet, capture website images, extract webpage text, and more via a local MCP server.15-
- FlicenseDqualityDmaintenanceA local MCP server providing free network access capabilities including HTTP requests, web search, webpage content extraction, and optional screenshots, designed for integration with Claude Desktop or Claude Code.6-