Every website, an open door.
Grapheway turns any site into a live knowledge graph and MCP server. Agents can search it, read it, and act on it. No scraping, no account, no API key.
Detects your framework, writes one config, and mounts the surface.
- 0runtime dependencies
- 170tests passing
- GPL-3.0open source
/.well-known/agent/graph/v1/mcp/agent/actions$ npx grapheway init
✓ grapheway.config.ts
✓ middleware.ts
✓ app/api/grapheway/route.ts
Next:
Run your dev server (e.g. `npm run dev`)
Open http://localhost:3000/graph to see the live graph
Point any MCP client at http://localhost:3000/mcp- Claude
- Cursor
- VS Code
- any MCP client
Scraping guesses. A graph cites.
An assistant that needs an answer still downloads the HTML, strips the markup, guesses what matters, and repeats for every page. Your site already knows its own structure. Grapheway lets it say so.
- Downloads the HTML
- Strips the markup
- Guesses what matters
- Repeats for every page
- Asks for the graph
- Reads typed nodes and edges
- Cites the path and the snapshot
- Crawls again on demand
One probe. A whole agent surface.
Real commands, real output. The exact format the CLI writes. Point it at any public site and the same graph, MCP server and actions appear.
$ npx grapheway probe https://expressjs.com
Probed Express.js (https://expressjs.com)
pages: 25
headings: 521
edges: 1927 (1361 extracted, 566 inferred)
api: 12 endpoints (https://expressjs.com/openapi.json)
Serving "Express.js" as an agent surface:
discovery http://localhost:4321/.well-known/agent
graph http://localhost:4321/graph/v1
events http://localhost:4321/graph/v1/events (realtime SSE)
MCP http://localhost:4321/mcp
# That legacy site is now an MCP server. Point Claude Desktop
# or Cursor at localhost:4321/mcp and its docs become tools.Everything an agent needs, already on your site.
Six subpath exports, one package. The core is pure TypeScript and the runtime is four fields in, four fields out. Mount only what you need.
Graph
Pages and sections become typed nodes. Links become edges with provenance. Agents call node, neighbors, search and path instead of scraping HTML.
src/core/graph.ts4 graph operationsMCP
An MCP server over streamable HTTP, aligned to the spec. Claude, Cursor, VS Code and any MCP client get the graph and your actions as native tools.
src/web/mcp.ts7 methodsProbe
Point it at any public URL. It crawls only within the site's own origin, respects robots.txt, extracts nav, headings, links and OpenAPI, then serves or exports the graph.
src/probe/25 pages from Express.jsActions
Expose what your site can already do as callable tools over HTTP and MCP. One implementation, both surfaces.
src/web/actions.tsHTTP + MCPDiscovery
An agent card in the A2A style at a path every agent already knows tells any agent what you offer, how, and where. Discovery is a URL, not a partnership.
src/core/manifest.tsOne URLRuntime
Pure TypeScript with zero dependencies. Node, Bun, Deno and edge runtimes. Express, Hono, Next.js, node:http or a static host.
src/web/adapters.ts0 runtime depsA default probe of expressjs.com returned 25 pages, 521 headings, 1,927 edges and 12 OpenAPI endpoints.
Technical referenceOr hand it to your agent.
Open your project in Claude Code, Cursor, Codex or any coding agent. Paste one prompt. It inspects the framework, mounts the surface, verifies the endpoints and reports back.
- 01Inspect the framework and the project layout.
- 02Run init, mount the surface, start the app.
- 03Verify discovery, graph and MCP, then run the audit.
Set up grapheway for this website. Use the environment and tools available to you.
1. Inspect the project and detect the framework: Next.js, Express, Hono, plain Node, or a static host.
2. Run:
npx -y grapheway@latest init
If npx is unavailable, use:
npm exec --yes --package=grapheway@latest -- grapheway init
bunx grapheway@latest init
or install the package locally.
3. If the framework is unsupported, run:
npx -y grapheway@latest init --url <site URL>
and follow the printed steps.
4. Start the app and verify:
/.well-known/agent
/graph/v1
/mcp
5. Run the audit on the app URL and fix failed checks:
npx -y grapheway@latest audit <app URL>
6. Report the files you changed, the audit score, and the exact MCP URL.
Use your own judgment for the environment and the project's existing conventions.Use this with any coding agent. It works with the environment and conventions already in your project.
No install. Point any MCP client at this URL.
Open the door.
One command. No account. No API key. Your site stays yours.