agent-ready-mcp

agent-ready-mcp

Enables AI agents to scan any website for agent-readiness and generate the necessary artifacts (llms.txt, WebMCP scaffold, structured data) to make it agent-ready.

Category
访问服务器

README

agent-ready

agent-ready: 100/100 npm version CI License: MIT

Make any website agent-ready in one command. Scan a site, get an agent-readiness score, and auto-generate the two things the agentic web now expects — an llms.txt and a WebMCP tool scaffold — so AI agents can understand and act on your site instead of blindly scraping it.

npx agent-readiness https://yoursite.com

No install? Scan any site in your browser at agent-ready-web.vercel.app — paste a URL, get the score + per-check breakdown, and download the generated llms.txt + WebMCP scaffold.

agent-ready — scanning https://yoursite.com

  ✗ llms.txt present (0/22)
     → Add /llms.txt so agents get a clean, token-cheap map of your site (generated below).
  ✗ WebMCP tools (document.modelContext) (0/22)
     → Expose your key actions as WebMCP tools so agents can ACT, not just scrape (scaffold generated below).
  ✔ Structured data (JSON-LD / OpenGraph) (+13/13)
  ✔ Semantic landmarks + an H1 (+13/13)
  ✔ Title + meta description (+10/10)
  ✗ robots.txt + sitemap.xml (0/8)
  ✔ Canonical URL (<link rel="canonical">) (+4/4)
  ✔ Document language (<html lang>) (+4/4)
  ✔ Image alt-text coverage (18/20, 90%) (+4/4)

  Agent-Readiness: 48/100
  pages: 17  •  forms: 2  •  inferred actions: 3
  Generated → ./agent-ready-out/llms.txt, ./agent-ready-out/webmcp.tools.js, ./agent-ready-out/structured-data.html, ./agent-ready-out/agent-ready.json

Why this exists

Chrome's Lighthouse now ships an "Agentic Browsing" audit in the default config (13.3, May 2026), and WebMCP is a W3C draft in origin trial. Millions of sites are about to see a failing agent-readiness grade with no obvious way to fix it. agent-ready is the fix: it doesn't just diagnose (every scanner does that) — it generates the artifacts and is built to run in CI.

  • llms.txt — a clean, machine-readable map of your pages (with one-line summaries) and actions, built from a multi-page crawl (the emerging standard agents read first).
  • webmcp.tools.js — a WebMCP scaffold that registers each <form> and inferred action (search / login / signup / cart / checkout / contact / subscribe) as a callable agent tool via document.modelContext.registerTool(...), so an agent can complete the signup / search / booking instead of guessing at your DOM.
  • structured-data.html — a JSON-LD + OpenGraph snippet to drop into your <head> so machines get explicit, structured meaning.

One command, one PR (the fixer)

Every other tool scans. agent-ready also fixes — and opens the fix as a pull request:

npx agent-readiness fix ./my-site --pr

It detects your framework (Next.js App/Pages Router, Vite, or plain static HTML), writes llms.txt + webmcp.tools.js into the right place, injects the <script> tag and the missing <html lang> / meta description / JSON-LD + OpenGraph into your entry HTML or layout, then branches, commits, and opens a PR with a clear before → after score:

agent-ready fix — ./my-site

  Framework: Static / plain HTML
  Score: 17/100 → 88/100

  Files:
    + llms.txt          (token-cheap site map for agents)
    + webmcp.tools.js   (WebMCP tool scaffold)
    inject → index.html (html-lang, meta-description, structured-data, webmcp-script)

  ✔ Opened pull request: https://github.com/you/my-site/pull/42
  • --dry-run — print the plan (and the exact git/gh commands) without touching anything.
  • --url https://yoursite.com — scan the live site for a richer llms.txt (multi-page) and to fill real URLs + a canonical tag.
  • --base <branch> / --branch <name> — control the PR target and head branch.
  • Injection is idempotent — re-running never duplicates a tag. --pr needs a git repo with an origin remote and the gh CLI authenticated.

Prefer to apply locally without a PR? agent-ready fix ./my-site writes + injects in place; agent-ready <url> --apply ./my-site just drops the files into public/.

Use it in CI (GitHub Action)

permissions:
  contents: read
  pull-requests: write   # so it can comment the score on the PR
steps:
  - uses: VeldinS/agent-ready@v0
    with:
      url: https://yoursite.com
      comment: true        # post a sticky agent-readiness comment on the PR (default)
      min-score: 60        # optional: fail the job if the score drops below this

On every pull request it posts (and updates) a single comment with the score and per-check breakdown. Add the badge to your README once you're green:

![agent-ready](https://img.shields.io/badge/agent--ready-100%2F100-brightgreen)

Use it from your agent (MCP server)

Run "make my site agent-ready" right inside Claude Code / Cursor / Claude Desktop. The @veldins/agent-ready-mcp server exposes two tools — scan_site (score + per-check breakdown) and generate_fixes (the llms.txt + WebMCP scaffold + structured-data contents) — over stdio, sharing the same scanner core.

claude mcp add agent-ready -- npx -y @veldins/agent-ready-mcp
{ "mcpServers": { "agent-ready": { "command": "npx", "args": ["-y", "@veldins/agent-ready-mcp"] } } }

What it checks

Check Weight
llms.txt present 22
WebMCP tools (document.modelContext) 22
Structured data (JSON-LD / OpenGraph) 13
Semantic landmarks + an <h1> 13
Title + meta description 10
robots.txt + sitemap.xml 8
Canonical URL (<link rel="canonical">) 4
Document language (<html lang>) 4
Image alt-text coverage (≥80%) 4

The score reflects the server-rendered HTML an agent first sees; heavily client-rendered SPAs will under-report content checks until they ship meaningful HTML.

Roadmap

  • [x] fix mode: write + inject the artifacts and open a PR with a before → after score
  • [x] Framework adapters (Next.js App/Pages Router, Vite, static HTML)
  • [x] GitHub Action comments the score on every PR
  • [x] Web scanner page: paste a URL → scored report + downloadable fixes (no install)
  • [x] MCP server so Claude Code / Cursor can run "make my site agent-ready" (@veldins/agent-ready-mcp)
  • [ ] Re-grade against live Lighthouse Agentic Browsing on each PR

Local dev

npm install
node bin/agent-ready.mjs examples/sample-site.html
npm test          # node --test — fixtures, generators, crawl, CLI

One runtime dependency (node-html-parser); Node ≥20.19; ESM; no build step.

MIT.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选