Skip to content
Nijjwol23Public

About

The open standard for agent-readable websites. agents.json — like robots.txt, but for AI agents.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

W2A — Web2Agent Protocol

The open standard that makes any website agent-readable.

License: Apache 2.0 Spec A2A Compatible PRs Welcome Website

MCP   Agent ↔ Tools     modelcontextprotocol.io
A2A   Agent ↔ Agent     a2a-protocol.org
W2A   Agent ↔ Web       w2a-protocol.org        ← this repo

For agent developers — use the SDK

Python

pip install w2a
from w2a import discover

site = await discover("stripe.com")
for skill in site.public_skills:
    print(skill.id, "—", skill.intent)

JavaScript / TypeScript

npm install w2a-client
import { discover } from 'w2a-client'

const site = await discover('stripe.com')
console.log(site.skills.map(s => s.intent))

MCP — Claude Desktop / Cursor / Cline

{
  "mcpServers": {
    "w2a": {
      "command": "npx",
      "args": ["w2a-mcp", "--url", "https://yoursite.com"]
    }
  }
}

LangChain

from w2a.integrations.langchain import W2ATool

tools = await W2ATool.from_url("w2a-protocol.org")
agent.add_tools(tools)

For website owners — add agents.json

Generate your manifest in 30 seconds: w2a-protocol.org/tools

Or create /.well-known/agents.json manually:

{
  "w2a": "1.0",
  "site": {
    "name": "Acme Store",
    "type": "ecommerce"
  },
  "skills": [
    {
      "id": "search_products",
      "intent": "Find products by keyword or category",
      "action": "GET /api/search",
      "input": { "q": "string", "category": "string?" },
      "output": { "items": "Product[]", "total": "int" },
      "auth": "none"
    }
  ],
  "policies": {
    "rate_limit": "60/min",
    "allowed_agents": ["*"]
  }
}

Validate it:

curl -X POST https://w2a-protocol.org/api/validate \
  -H "Content-Type: application/json" \
  -d @.well-known/agents.json

Check any site:

curl "https://w2a-protocol.org/api/check?url=yoursite.com"

The problem

Every AI agent visiting a website today crawls it blind — 40–50 HTTP requests just to understand what a site does. No standard. No map. Pure waste, multiplied by thousands of agents hitting every site daily.

robots.txt   →  what not to crawl    (1994)
sitemap.xml  →  where pages are      (2005)
agents.json  →  what a site can do   (2026)

Repository structure

spec/
└── v0.1.md                    The W2A protocol specification

sdk/
├── python/                    pip install w2a
├── javascript/                npm install w2a-client
└── mcp/                       npx w2a-mcp

integrations/
└── langchain/                 LangChain W2ATool

ADOPTERS.md                    Sites running W2A
GOVERNANCE.md                  How the spec evolves

Current adoption

Site Status
w2a-protocol.org ✓ enabled · 6 skills · A2A compatible
your site here Add yours →

Governance

W2A is maintained by Nijjwol Lamsal and open to contributions. The goal is a protocol no single company controls — the same model as A2A under the Linux Foundation.

Spec changes require two independent reviewers. Major changes go through a public discussion period. See GOVERNANCE.md.


Links

Apache 2.0 — same license as A2A. Intentionally.

About

The open standard for agent-readable websites. agents.json — like robots.txt, but for AI agents.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages