Morlock Logo

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.

$npm install @morlock/core

The Problem

01

Vision Models

Screenshot the page

Expensive, slow, and degrades with complex layouts. Costs 10× more per interaction.

02

DOM Scraping

Parse the HTML

Fragile. Breaks on every redesign. Semantic meaning gets lost in the noise.

03

Browser Automation

Simulate a human

Resource-heavy and brittle. Built for testing, not production agent use.

The Solution

Two sides. One protocol.

site-owner / server.tsServer
// 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.

ApproachAuto-discoveryTyped interfaceZero server changesInteractive
Morlock
DOM Scraping
llms.txt
OpenAPI / REST
MCP

Make your site agent-native.

Open protocol. MIT licensed. Built for the agentic web.