
Open Protocol · v0.1
The web, for agents.
Morlock is a drop-in protocol that gives AI agents a structured, typed interface to your site — no DOM parsing, no screenshots, no Playwright.
The Problem
Vision Models
Screenshot the page
Expensive, slow, and degrades with complex layouts. Costs 10× more per interaction.
DOM Scraping
Parse the HTML
Fragile. Breaks on every redesign. Semantic meaning gets lost in the noise.
Browser Automation
Simulate a human
Resource-heavy and brittle. Built for testing, not production agent use.
The Solution
Two sides. One protocol.
// npm install @morlock/core import { createMorlock } from "@morlock/core/server"; const morlock = createMorlock({ name: "Acme Store", baseUrl: "https://acme.com", commands: { search: { description: "Search products", params: { q: { type: "string", required: true }, }, handler: async ({ q }) => db.search(q), }, }, }); // Express / Next.js / Cloudflare / Bun app.use(morlock.express());
How It Works
Dead simple by design.
01 / INSTALL
Drop in the middleware
One npm install. One function call. Works with Express, Next.js, Cloudflare Workers, Bun, and Deno. No config files.
02 / DISCOVER
Agents find you automatically
Your manifest is served at /.well-known/morlock. Any Morlock-aware agent discovers your capabilities without being told.
03 / INTERACT
Typed commands, structured data
Agents call commands by name with typed params. You get structured results. No DOM. No screenshots. No guessing.
Positioning
How Morlock fits.
| Approach | Auto-discovery | Typed interface | Zero server changes | Interactive |
|---|---|---|---|---|
| Morlock | ✓ | ✓ | ✓ | ✓ |
| DOM Scraping | ✓ | ✗ | ✓ | ✗ |
| llms.txt | ✓ | ✗ | ✓ | ✗ |
| OpenAPI / REST | ✗ | ✓ | ✗ | ✓ |
| MCP | ✗ | ✓ | ✗ | ✓ |
Make your site agent-native.
Open protocol. MIT licensed. Built for the agentic web.