🔶 AI2Web:让任何网站与所有 AI Agent 协同工作的开放协议
英文标题:🔶 AI2Web: Open protocol to make any website work with every AI agent
AI2Web 是一项开放互操作协议,让网站只需描述一次功能,即可通过 MCP、ACP、REST、GraphQL 等协议被所有 AI Agent 访问。它提供统一验证、监控与管理仪表板,解决了网站主需分别对接不同 AI 门户的碎片化问题。协议开源免费,支持多种语言和平台,内置安全确认机制,并能显著降低带宽与计算能耗。对开发者而言,这意味着无需为每个 AI 生态重写后端,即可安全加入 AI 驱动的交互与交易。
44.6 KB
中文
开放协议 · ai2w · 面向所有 AI 的一层
让你的网站与每个 AI 协同工作——从一个地方管理。
AI2Web 是面向 AI 赋能网站的互操作层。只需描述一次你的网站,AI2Web 就能自动通过你的客户当前使用的 AI 协议——MCP、ACP、REST 和 GraphQL——暴露其功能,并时刻准备迎接未来出现的任何新协议。你可以在同一处进行验证、监控和管理。
别重蹈搜索控制台的覆辙
网站主已经在 Google Search Console、Bing Webmaster Tools、Yandex、百度、社交分享工具和一大堆验证器之间疲于应付——每个都有各自的门户和规则。大多数企业主从未学会其中任何一个。AI 时代正走向同样的道路,充斥着 MCP、ACP、A2A、发现清单、身份验证配置文件和协商。其实不必如此。
MCP、ACP、A2A、discovery manifests、auth profiles、negotiation、product feeds、per-assistant dashboards
→
AI2Web
协议解决互操作性。AI2Web 解决了易用性、采用、治理和运营。 它对 AI 协议的意义,就像搜索控制台本应为搜索所做的那样:一个统一的层,而非十几个支离破碎的门户。
一次描述,处处可用。
网络是为人类构建的。Agent 不应该非得抓取 HTML 并猜测表单。你只需声明一次功能;AI2Web 就能通过任何助手理解的协议将其暴露出去。
一次描述
一份涵盖内容、商务、动作、事件和身份验证的功能清单。无需为每个助手重建。
生成一切
AI2Web 从单一事实源生成 MCP、ACP、REST、GraphQL、OpenAPI 和信息流。新协议出现?只需添加适配器,无需重写。
即刻可用
后端优先、API 驱动。一个 MCP 端点现在就能在 Claude 和 ChatGPT 连接器中工作,无需供应商先行采用。
支持任何技术栈,包括原生 JavaScript 和 React
从 TypeScript、原生 JavaScript 或 React,以及 PHP、Python、Go、.NET 和 WordPress 中使用 AI2Web。JavaScript 包以标准 ESM 形式发布,并附带类型定义,因此可在 JS 中直接运行,无需修改。@ai2web/react 提供了 hooks 和一个可嵌入的 AI 就绪徽章,而一个无需构建的 <ai2w-badge> Web 组件可直接插入任何 HTML 页面,无需打包工具。
出于设计,更环保
让每个 AI 都抓取并渲染整个网页会浪费计算资源和能源,而 AI 已经消耗了大量能源。共享的功能层发送的是几千字节的结构化数据,而不是几兆字节的 HTML:更少的解析、更少的带宽、更少的能耗。这是将绿色互联网的理念应用于 AI,每一个避免渲染页面的请求都节省了计算和碳排放。
一站式管理你的 AI 存在
配置一次你的 AI 功能,AI2Web 就能在不断演变的生态系统中保持它们正确地暴露、验证和监控——无论哪种协议或助手最终胜出。
- ✓ 在几分钟内启用 AI 功能
- ✓ 验证 你的实现并打分
- ✓ 监控 跨助手的兼容性
- ✓ 了解 Agent 实际使用了哪些功能
- ✓ 接收 关于下一步该暴露什么功能的建议
- ✓ 从统一仪表板管理 一切,无需面对十几个门户
开箱即用的支持——用户只需开口询问
价值最高的时刻是售后。客户询问他们的助手;AI2Web 通过 MCP、结账传输(ACP)或品牌自己的 Agent 处理订单追踪、退货和退款。涉及资金变动的操作始终要求用户先确认。
“我的订单在哪儿?”
→ AI2Web 调用 track_order(一次读取操作,已授权用户账户)并即时回答——无需确认。
“DPD - 已发货,预计明天 ~12:00 送达。”
“到货时已损坏——请退款。”
→ report_issue 记录问题并附带照片,然后 request_refund——一项高风险操作——返回一个 预览 供用户批准。仅在批准后才执行退款,并附上审计参考。
“退款 £20.00 至原支付方式? ✓ 已批准 · 审计号 aud_01H8”
能力模型就是产品
一切皆基于一个原语。框架从中生成,发现网络据此索引,分析在此基础上衡量。
能力模型 → 框架 → 发现网络 → 分析
发现网络已上线
Agent 可在此发现已为 AI 准备好的网站。在 /ai2w 发布一份清单,注册之后,你的网站就会出现在助手的发现和操作列表中。此列表实时取自 directory.ai2web.dev。
补充每一种协议——永不竞争
就像浏览器在统一的体验背后支持 HTTP/1.1、HTTP/2、HTTP/3、WebSockets 和 WebRTC 一样,AI2Web 在单一能力模型背后抽象了 Agent 协议。它在传输层之上定义模型,并协商使用哪种协议——因此任何协议的成功都是顺风。
AI Assistant
│
▼
AI2Web
├── MCP
├── ACP
├── REST APIs
├── GraphQL
├── OpenAPI
├── WordPress / CMS abilities
├── Webhooks
└── Future protocols
它并非“网站的 MCP”
AI2Web 是面向 AI 赋能网站的互操作层——一个跨协议的通用发现与能力模型,外加协议规范有意省略的治理、分析、验证和工具链。发现机制也是可插拔的:如果出现了一个中立标准,AI2Web 将依托于它,而非与之竞争。
常见问题
什么是 AI2Web?
AI2Web 是一个开放的互操作层,能让任何网站被 AI Agent 理解和操作。你描述一次你网站的能力,AI2Web 就能跨 AI 助手和协议(MCP、ACP、REST、GraphQL 等)将其暴露出来,并从一个地方进行验证、监控和管理。
AI2Web 会取代 MCP 或 ACP 吗?
不会——它是对它们的补充。MCP 和 ACP 等协议解决互操作性问题;AI2Web 则在其之上提供了一个通用的能力模型,外加协议规范有意省略的验证、监控和管理工具。当某个协议胜出时,AI2Web 直接生成它即可。
我需要 OpenAI 或 Anthropic 来支持 AI2Web 吗?
不需要。清单、信息流和端点如今已可直接使用,并且一个 MCP 端点已经可以与现有的 Claude 和 ChatGPT 连接器配合工作。AI2Web 同时提供网站端和 Agent 端的连接器,因此不依赖于任何厂商率先采用。
AI 可以在未经我批准的情况下购买或退款吗?
不可以。AI2Web 在设计上就是安全的。如订单追踪这类读取操作即时执行,但任何涉及资金变动的操作——购买、退款、取消——均属高风险,且在执行前总是返回一个预览供你批准,并附带审计追踪。
AI2Web 的费用是多少?
协议、规范和 SDK 均为免费且开源(代码采用 MIT 许可,规范采用 CC-BY 4.0)。可选的托管端点、功能分析及企业级功能是商业层。
AI2Web 支持哪些平台?
任何网站。提供 WordPress 和 WooCommerce 插件,针对 TypeScript、PHP、Python、Go 和 .NET 的 SDK,React 绑定,以及用于原生 JavaScript 的无框架 Web 组件,还有一个与框架无关的服务器,可运行在 Node.js 或 Cloudflare Workers 上。
如何让我的网站为 AI 就绪?
使用插件或 SDK 在 /ai2w 添加 AI2Web 能力清单,然后验证它,获得你的 AI 就绪评分。Agent 会发现它、协商功能并安全地操作——对于任何敏感操作都需要批准。
AI 就绪验证器
粘贴一份 AI2Web 清单(或加载一个示例)。其评分方式与 npx ai2web validate 完全一致——即 SDK 中附带的相同逻辑。
清单 JSON
Validate Load example
帮助构建 AI 就绪的网络
AI2Web 是开源的、由社区驱动。协议和规范采用 CC-BY 4.0,代码采用 MIT 许可。无论你是写代码、开网店还是维护 CMS,都有参与的方式。
添加适配器
将新的协议或平台映射到能力模型中。适配器的契约很小,并由一致性测试强制执行。
改进 SDK
TypeScript、PHP、Python、Go 和 .NET 都遵循同一个一致性契约。优化其中一个,或将其移植到新语言。
编写文档与示例
真实的清单、框架指南和集成示例将帮助下一位开发者在几分钟内交付。
English / 原文
Open protocol · ai2w · one layer for every AI
Make your website work with every AI - from one place.
AI2Web is the interoperability layer for AI-enabled websites. Describe your website once, and AI2Web automatically exposes its capabilities through the AI protocols your customers use today - MCP, ACP, REST and GraphQL - while staying ready for whatever comes next. Validate, monitor and manage it from one place.
Don't repeat the Search Console mistake
Website owners already juggle Google Search Console, Bing Webmaster Tools, Yandex, Baidu, social sharing tools and a dozen validators - each with its own portal and rules. Most business owners never learned any of them. The AI era is heading the same way, with MCP, ACP, A2A, discovery manifests, auth profiles and negotiation. It doesn't have to.
MCPACPA2Adiscovery manifestsauth profilesnegotiationproduct feedsper-assistant dashboards
→
AI2Web
Protocols solve interoperability. AI2Web solves usability, adoption, governance and operations. It's to AI protocols what Search Console should have been for search: one unified layer instead of a dozen fragmented portals.
Describe once. Works everywhere.
The web was built for humans. Agents shouldn't have to scrape HTML and guess forms. You declare your capabilities once; AI2Web exposes them through whichever protocols an assistant understands.
Describe once
One capability manifest for content, commerce, actions, events and auth. No per-assistant rebuilds.
Generate everything
AI2Web emits MCP, ACP, REST, GraphQL, OpenAPI and feeds from one source of truth. New protocol? Add an adapter, not a rewrite.
Works today
Backend-first and API-driven. An MCP endpoint works in Claude and ChatGPT connectors right now, with no vendor adoption required.
Any stack, including plain JavaScript and React
Use AI2Web from TypeScript, plain JavaScript or React, plus PHP, Python, Go, .NET and WordPress. The JavaScript packages ship as standard ESM with bundled types, so they run unchanged in JS. @ai2web/react adds hooks and an embeddable AI Readiness badge, and a build-free <ai2w-badge> web component drops into any HTML page with no bundler.
Greener by design
Making every AI scrape and render a full web page wastes compute and energy, and AI already consumes a great deal of it. A shared capability layer sends a few kilobytes of structured data instead of megabytes of HTML: less parsing, less bandwidth, less energy. It is the green-internet argument applied to AI, where every request that avoids rendering a page is compute and carbon saved.
One place to manage your AI presence
Configure your AI capabilities once, and AI2Web keeps them correctly exposed, validated and monitored across the evolving ecosystem - whichever protocols or assistants win.
- ✓ Enable AI capabilities in minutes
- ✓ Validate your implementation and score it
- ✓ Monitor compatibility across assistants
- ✓ Understand which capabilities agents actually use
- ✓ Receive recommendations on what to expose next
- ✓ Manage everything from one dashboard, not a dozen portals
Support that just works - the user only has to ask
The highest-value moment is after the sale. A customer asks their assistant; AI2Web handles order tracking, returns and refunds - via MCP, a checkout transport (ACP), or the brand's own agent. Money-moving actions always ask the user to confirm first.
“Where's my order?”
→ AI2Web calls track_order (a read, authorised to the user's account) and answers instantly - no confirmation needed.
“DPD - out for delivery, arriving tomorrow ~12:00.”
“They arrived damaged - refund please.”
→ report_issue logs it with the photo, then request_refund - a high-risk action - returns a preview for the user to approve. Only after approval does it refund, with an audit reference.
“Refund £20.00 to original payment? ✓ Approved · audit aud_01H8”
The capability model is the product
Everything hangs off one primitive. The framework generates from it, the discovery network indexes by it, the analytics measure against it.
Capability Model→ Framework→ Discovery Network→ Analytics
The Discovery Network is live
Agents find AI-ready websites here. Publish a manifest at /ai2w, register it, and your site appears for assistants to discover and act on. This list is pulled live from directory.ai2web.dev.
Complements every protocol - never competes
Like a browser supporting HTTP/1.1, HTTP/2, HTTP/3, WebSockets and WebRTC behind one experience, AI2Web abstracts agent protocols behind one capability model. It defines the model above the transports and negotiates which to use - so any protocol's success is a tailwind.
AI Assistant
│
▼
AI2Web
├── MCP
├── ACP
├── REST APIs
├── GraphQL
├── OpenAPI
├── WordPress / CMS abilities
├── Webhooks
└── Future protocols
It's not "the MCP for websites"
AI2Web is the interoperability layer for AI-enabled websites - a common discovery and capability model across protocols, plus the governance, analytics, validation and tooling that protocol specs intentionally leave out. Discovery is pluggable too: if a neutral standard emerges, AI2Web is carried by it rather than competing.
Frequently asked questions
What is AI2Web?
AI2Web is an open interoperability layer that makes any website understandable and actionable to AI agents. You describe your site's capabilities once, and AI2Web exposes them across AI assistants and protocols - MCP, ACP, REST, GraphQL and more - from a single place to validate, monitor and manage.
Does AI2Web replace MCP or ACP?
No - it complements them. Protocols like MCP and ACP solve interoperability; AI2Web sits above them with one common capability model plus the validation, monitoring and management tooling that protocol specifications intentionally leave out. When a protocol wins, AI2Web simply generates it.
Do I need OpenAI or Anthropic to support AI2Web?
No. The manifest, feeds and endpoints are useful today, and an MCP endpoint already works with existing Claude and ChatGPT connectors. AI2Web ships both the website side and an agent-side connector, so it doesn't depend on any vendor adopting it first.
Can an AI buy or refund something without my approval?
No. AI2Web is secure by design. Reads such as order tracking happen instantly, but anything that moves money - purchases, refunds, cancellations - is high-risk and always returns a preview for you to approve before it runs, with an audit trail.
What does AI2Web cost?
The protocol, specification and SDKs are free and open source (MIT for code, CC-BY 4.0 for the spec). Optional hosted endpoints, capability analytics and enterprise features are the commercial layer.
Which platforms does AI2Web support?
Any website. There's a WordPress and WooCommerce plugin, SDKs for TypeScript, PHP, Python, Go and .NET, React bindings and a framework-free web component for plain JavaScript, and a framework-agnostic server that runs on Node.js or Cloudflare Workers.
How do I make my website AI-ready?
Add an AI2Web capability manifest at /ai2w using the plugin or an SDK, then validate it to get your AI Readiness score. Agents discover it, negotiate capabilities, and can act - safely, with approval on anything sensitive.
AI Readiness Validator
Paste an AI2Web manifest (or load an example). Scored exactly like npx ai2web validate - the same logic that ships in the SDKs.
Manifest JSON
Validate Load example
Help build the AI-ready web
AI2Web is open source and community-driven. The protocol and spec are CC-BY 4.0, the code is MIT. Whether you write code, run a store or maintain a CMS, there is a way in.
Add an adapter
Map a new protocol or platform into the capability model. The adapter contract is small and enforced by conformance tests.
Improve an SDK
TypeScript, PHP, Python, Go and .NET all reproduce one conformance contract. Sharpen one, or port to a new language.
Write docs & examples
Real manifests, framework guides and integration walkthroughs help the next developer ship in minutes.