graphewayBETA

Your site opens its own door to AI agents

DOCS

Make any website agent-ready

One command to mount the surface. One command to probe a site that has not opted in. One URL to use the hosted MCP demo.

1. 60-second quickstart

npx grapheway init
# detects Next.js / Express / Hono / static, writes the config, mounts the surface

npx grapheway init --url https://your-site.com
# generates a real config from a live probe

npx grapheway audit https://your-site.com
# 0–100 agent-readiness score + exact gaps

npx grapheway badge --url https://your-site.com --out badge.svg --md
# embeddable SVG badge for your README or footer

2. Connect an agent

Local clients can launch a stdio server. Hosted clients can use the remote demo. Both expose the same graph tools and site actions.

# stdio — no hosting, no port
npx grapheway mcp --probe https://expressjs.com

# print the exact client snippet
npx grapheway mcp-config --stdio --probe https://expressjs.com

# hosted demo — swap the url for any public site
https://grapheway-mcp.usmani3923.workers.dev/mcp?url=https://expressjs.com

3. What the site exposes

RouteWhat agents get
/.well-known/agentDiscovery: protocol, capabilities, endpoints.
/graph/v1Nodes, edges, search, auditable paths and SSE updates.
/agentManifest, curated sections and declared actions.
/agent/actionRun an action over HTTP — same implementation as MCP.
/mcpStreamable HTTP MCP: graph tools, actions, markdown resources.
/graphHuman-interactive viewer of the same live graph.

4. Next.js App Router

grapheway init writes middleware.ts and one route handler. The middleware rewrites the agent surface to the handler and preserves the original path in a header.

// middleware.ts
import { NextResponse, type NextRequest } from "next/server";

export function middleware(request: NextRequest) {
  const pathname = request.nextUrl.pathname;
  const url = request.nextUrl.clone();
  url.pathname = "/api/grapheway";
  const headers = new Headers(request.headers);
  headers.set("x-grapheway-path", pathname);
  return NextResponse.rewrite(url, { request: { headers } });
}

export const config = {
  matcher: ["/.well-known/agent", "/graph", "/graph/:path*", "/agent", "/agent/:path*", "/mcp"],
};

5. FAQ

How do I make my website readable by AI agents?

Run `npx grapheway init` in your project. It detects Next.js, Express, Hono or a static host, writes grapheway.config.ts, and mounts the agent surface: discovery, a typed knowledge graph, an /agent API and an open MCP endpoint.

What is an MCP server for a website?

An MCP server exposes a site's content and actions as native tools to AI clients such as Claude Desktop, Cursor and VS Code. Grapheway gives a site graph tools (graph_node, graph_neighbors, graph_search, graph_path), its own actions, and pages as markdown resources.

Does the site owner have to opt in?

No. `npx grapheway probe <url>` converts any public site into the same graph locally, respecting robots.txt and staying same-origin. The opt-in runtime makes the surface permanent and live.

Is grapheway free?

Yes. The protocol and runtime are GPL-3.0, with no account, no API key and no paid crawler. The hosted MCP demo is rate-limited but free.

How is grapheway different from llms.txt?

llms.txt is a static, hand-maintained snapshot. Grapheway is a live graph: typed nodes and edges, search, auditable paths, actions, realtime updates over SSE, and MCP tools that agents can call.

Ready to see what agents see?

Audit any site, then mount the surface in one command. No account, no key, no paid crawler.

npx grapheway audit https://your.sitenpx grapheway init --url https://your.siteSee the readiness index →

GitHub · npm · Adoption index · Agent Readiness Index