97UI Open the library ↗
97UI · answers for Lukas

How 97UI's MCP works.

Every one of your questions, answered the way I'd say it on camera, with the details under each one: screen recordings of the real product, the real calls between an agent and the MCP server, and the code that matters.

347 pieces7 MCP toolsReact · TypeScript · TailwindLive at 97ui.dev
00 · Quick demo

The whole thing in a minute.

Say it

Here's 97UI end to end: you find a piece, make it yours, sign in, and your agent drops it into your project. Then the same goes for your launch video and your mockups.

Silent, at 1.5× speed. Click a step to jump to it; each part is also below, at full speed, next to the question it answers.

01 · Quick intro

The short version.

1What is 97UI, in one or two sentences?

Say it

97UI isn't just a component library. It's a whole ecosystem for builders: you build your product with our components, your landing page with our sections, you edit your launch video right in the browser, and you show it all off in premium 3D mockups. And your AI agent puts every piece straight into your project.

The details

  • Components to build the product itself: 180 of them, from buttons to charts, all with real motion.
  • Sections to build the landing page: 43 heroes, sections and footers.
  • Launch videos you edit in the browser: 119 video elements and whole launch films, exported as MP4.
  • Premium 3D mockups: iPhone, MacBook Pro, Studio Display and a browser, modelled and lit like a product shoot, with your app or site on the screen.
  • All in React, TypeScript and Tailwind, installed by your agent through MCP.
The library: 180 components, 43 hero sections, sections and footers, 119 video elements and 5 device mockups. Here, the hero sections, then one of them, Launch Pass.

2Why build an MCP instead of a copy-paste library or templates?

Say it

Because that's where people build now: inside their agent. A copy-paste library breaks the second a piece needs its shared kit, its packages or its types. With the MCP you just say "add a launch hero with a countdown", and your agent finds it, installs it properly and sets it up with your words. No hunting through a gallery, no broken imports.

The details

  • A piece isn't one file. A hero shares a small kit with its family (the die-cut shapes, the springs that drive the motion), needs npm packages, and sometimes type packages. Copy-paste breaks on the first missing import. install_piece writes the piece and its kit into the right folder and returns the exact npm install line and import line.
  • Agents search by intent. "A launch hero with a countdown" finds Launch Pass. Nobody has to know a piece's name or scroll a gallery.
  • Every setting is a prop. The agent reads what a piece can change (words, colours, variants, a video's timing, a mockup's camera) and sets it in code. No screenshot-and-guess.
  • Some work has to happen on your machine. Exporting a video as an MP4 with sound, or a mockup as a PNG of your own site, runs in your own Chrome. A copy-paste page can't do that.
  • Access can be real. The code is handed out one piece at a time to an account that may have it. A template zip can't do that.
02 · What the MCP does

Ask in plain words. Get working code.

3In plain words, what can an agent do once someone connects it?

Say it

Once it's connected, your agent basically knows the whole library. It finds the right piece, reads what it can do, installs it, sets it up with your brand, and can even export your launch video or your mockup as a file. All from one sentence.

The details

  • Find the right piece for what you're building: "a pricing section", "a footer with a newsletter", "a 3D Studio Display for my landing page".
  • Understand it before using it: what it does, who it's made for, its variants, the packages it needs, and every setting it has.
  • Install it into your project, kit included, without overwriting a file you've changed.
  • Set it up for you: your product name, your words, your colour, through its props.
  • Open the editor for a video or a mockup with your settings already in, so you can fine-tune by eye.
  • Export a launch video as an MP4 (sound and motion blur included) or a mockup of your own site as a PNG or MP4, on your machine.
On the site, every setting is a live control: product name "Orbit", a blue stage, a light pass, then Copy code. The agent sets the same things as props.

4What happens behind the scenes when someone asks for a hero section?

Say it

It's three steps. The agent searches the library, reads the piece it picked, then installs it. Our server checks your plan, sends the files, and tells the agent exactly which packages to add and how to import it. Here's a real one.

The details

The calls and the server's answers below are real, recorded from the released 97UI server; the request and the agent's short lines between them are an example of what you'd see.

Agent ⇄ 97UI MCP server · real calls and answers
  1. Search. search_pieces("launch hero") runs on your machine against the catalog: every word must appear somewhere in a piece's name, title, description, kind, category, style or audience, and pieces whose name matches come first. 11 match; Launch Pass is first.
  2. Read. get_piece("launch-pass") returns what it does, its variants, who it's for, the import line and its 3 packages. For a video or a mockup it also lists every editor setting as a prop with its default.
  3. Install. install_piece asks 97ui.dev for the piece with the account's token. The server checks the plan and today's allowance, then streams the files, each stamped with a line naming the account it's licensed to. The connector writes them to components/library/tech/launch-pass/ (under src/ when there is one), skips any file you've changed, and hands back the npm install and import lines.
  4. Place. The agent runs the install line, imports <LaunchPass /> where you asked, and passes your words as props.
Your agent talks to the 97UI connector on your machine over stdio; the connector searches locally and fetches code from 97ui.dev, which checks the account in D1 and reads the code from a private R2 bucket. ChatGPT uses the hosted endpoint at 97ui.dev/mcp. YOUR MACHINE Your agent Claude Code · Cursor · Codex 97UI connector 97ui.mjs · MCP server stdio Your project components/library/… files written here Your Chrome MP4 and PNG exports nothing uploaded 97UI.DEV · CLOUDFLARE API · Worker account, plan, allowance HTTPS + token D1 accounts, daily counts R2, private the code, one piece at a time /mcp, hosted for ChatGPT OAuth sign-in
The result: Launch Pass installed through the MCP server into a brand-new Vite + React + Tailwind app, type-checked with Vite's strict settings, running. Nothing was edited by hand.

5What tools does the MCP expose?

Say it

Seven: search, read about a piece, install it, read its code, open it in the editor, and two exporters, one for videos and one for mockups.

The details

All seven are in the connector people run on their machine. The hosted endpoint for ChatGPT has the first four (reading code needs a sign-in).

ToolWhat it does
search_piecesFinds pieces by what they do, filtered by kind (hero, section, footer, component, video, mockup), style and audience.
get_pieceEverything about one piece: description, variants, who it's for, demo link, import line, packages, and for a video or a mockup every setting its editor has.
editor_linkA link to the video or mockup editor on the site, opened with the given settings, for adjusting by eye.
read_piece_codeThe source of every file in a piece, to study or adapt it.
install_pieceWrites a piece and its kit into the project. Returns the files written, the npm line and the import line. Never overwrites a changed file unless asked.
export_videoRenders a video element to an MP4 with sound and motion blur, a transparent .mov, or PNG frames, in the buyer's own Chrome.
export_mockupExports a device mockup as a PNG, transparent PNG, MP4 or angle sheet, with the buyer's file or their website (even localhost) on the screen.

The same connector is also a command line (search, add, export, status, pull…) for people who'd rather type than ask.

A video element (Glass Launch). Its editor's settings are exactly the props the agent sets, and export_video renders it to an MP4 on the buyer's machine.
The mockup editor: a Studio Display built in Blender from Apple's published sizes, a real-time stage, scenes, lights and camera. export_mockup does the same from the agent.
03 · How I built it

One catalog, three ways in.

6What did you build it with?

Say it

It's all TypeScript. The MCP is built on the official MCP SDK, the site and the API run on Cloudflare, and payments go through Stripe. And yes, I built it with AI coding agents next to me: I designed everything and made the calls, and the agent wrote a lot of the code.

The details

LanguageTypeScript everywhere: the pieces, the site, the MCP server, the API.
MCPThe official MCP TypeScript SDK, with every tool's input and output described in zod schemas. The connector is one bundled file (97ui.mjs, Node 20+) speaking stdio, with no library code inside.
PiecesReact 19, Tailwind v4, Motion for the springs, Three.js for the 3D mockups (devices modelled and lit in Blender).
HostingCloudflare: Workers for the site and API, D1 for accounts and daily counts, R2 (private) for the code, Email Sending for sign-in codes, Browser Rendering to photograph a buyer's site for a mockup.
PaymentsStripe Checkout and its customer portal; plans change only from Stripe's signed webhook.
ChatGPTA hosted MCP endpoint on the same site, with OAuth 2.1 + PKCE sign-in.

The AI side: I built it with AI coding agents working alongside me, the same kind of agent 97UI is made for. I designed the pieces and made the calls; the agent wrote a large part of the code, and I reviewed and steered it.

7How did you prepare the components so an agent understands them?

Say it

The secret is writing for someone who can't see. Every piece has a description of what it does and who it's for, a few tags, and every setting as a prop. Then a script turns all of that into the manifest the MCP reads.

The details

  • A description that says what it does and for whom, written for a reader who can't see it: "A launch-day hero: a die-cut pass hangs on its lanyard in front of the product's name… It counts down to launch; its tear-off stub is the sign-up."
  • Tags an agent can filter on: kind (hero, section, footer, component, video, mockup), category (Launch, AI, Dev tools, Voice…), style (Die-cut, Pixel, Hand-drawn, Glass…), audience (software or local businesses), "made for", and a variants line.
  • A manifest built by a script: for each piece, its own files plus every shared file it imports (found by walking the import graph), where each file goes in a buyer's project, its npm packages and type packages, and the name of the component to render.
  • Settings read from the real editors: at build time every video demo and every device is loaded and its controls recorded, so get_piece lists each setting with its prop name and default. The editor and the agent can't disagree.
  • Tool descriptions written as instructions: when to use each tool, which comes first, what "every word must match" means, and that pieces taken before install again for free.
// What the agent sees for one piece (get_piece, trimmed)
Launch Pass (launch-pass)
A launch-day hero: a die-cut pass hangs on its lanyard in front of the product's name…
hero · Launch · Die-cut · made for SaaS, apps, AI tools, launch pages
Variants: your product, the line on the pass, launch date, how many are on the list…
Use it: import { LaunchPass } from '@/components/library/tech/launch-pass/launch-pass'
Packages: clsx@^2.1.1, motion@^14.6.0, tailwind-merge@^3.7.0

8How long did it take from idea to a working MCP?

Say it

About three weeks to the first working MCP, and a month until the whole thing was live.

The details

  • 24 Oct 2026: first version of the library and its site.
  • 12 Nov: the MCP server, the install command and the hosted catalog. The first working MCP.
  • 17 Nov: every piece rehearsed through the released server into a fresh app.
  • 19 Nov: public launch at 97ui.dev, with accounts.
  • 23 Nov: the MCP covers the whole site: editor settings, editor links, MP4 and PNG exports, ChatGPT sign-in, and the plans.

9What was harder than expected, and what would you do differently?

Say it

Honestly, the MCP itself was the easy part. The hard part was making every single piece work in someone else's project: pieces share code, people have strict setups, and I had to keep the code private while showing everything live. If I started again, I'd write the descriptions for agents first, before designing the pages.

The details

  • Pieces depend on each other. A section carries components; a family shares a kit. The fix was one install layout that mirrors the source exactly, so relative imports work untouched, plus an import graph that knows what to bring along.
  • "Works on my machine" isn't "works in a buyer's app". Buyers' Vite setups are strict (unused variables are errors, type-only imports must say so). Only rehearsing every piece in a fresh app turned up the missing type packages and wrong export names.
  • Keeping the code private while showing it off. The site shows every piece live but never holds its readable source. The code lives in a private bucket and is handed out one piece at a time, counted, and stamped with its owner. A 3D mockup is about 27 MB, so the stamp is written while streaming, never by loading the whole file.
  • Rendering video on someone else's computer. Every video element is a pure function of time (draw it at second 3.2, in any order), so the exporter can photograph frames in the buyer's Chrome, blend them for motion blur and encode an MP4 with sound.

What I'd do differently: write the manifest and the agent-facing descriptions first, before the pages, and design every setting as a prop from day one. Retrofitting that onto existing pieces took longer than building it in would have.

10How did you test it, and in which agents?

Say it

I tested it with designers, and I built a rehearsal that buys the whole library like a real customer would: every piece goes through the MCP into a brand-new app, gets type-checked and opened in a browser. I use it day to day in Claude Code.

The details

  • With designers. I had designers try it for real.
  • The purchase, rehearsed. One command sends every piece through the released MCP server the way an agent would (get, search, read, install), installs each into a fresh Vite + React + TypeScript + Tailwind app, type-checks it with Vite's strict settings, builds it and opens every piece in a browser. About 3 minutes for the whole library.
  • 178 automated tests, including the API against a real SQLite database with the real migrations: no code without an account, no more than a plan's daily allowance even with requests arriving at once, no paid plan without Stripe's signature.
  • Every page (359 of them) opened at desktop and phone width on every change, failing on any error or sideways scroll.
  • In an agent: I use it day to day in Claude Code. Cursor and Codex connect the same way (the setup for each is on the account page), but I haven't run my own sessions in them yet.
04 · Getting it out there

Sign in, paste one line, ask.

11How do people install it?

Say it

Sign in with your email, paste one line in your terminal, add it to your agent. That's it. Then you just ask for what you want.

The details

  1. Sign in at 97ui.dev/account with their email. A six-digit code arrives; there is no password.
  2. Paste one line in the terminal. It fetches the 97UI connector and opens the account page to approve it, like signing in a TV.
  3. Add it to their agent, once.
# 1 · sets up the connector and signs it in
mkdir -p ~/97ui && curl -fsSL https://97ui.dev/api/app -o ~/97ui/97ui.mjs && node ~/97ui/97ui.mjs login

# 2 · Claude Code (Cursor and Codex: the same command in their config)
claude mcp add 97ui -- node ~/97ui/97ui.mjs mcp

Then they ask in plain words: "Add the pricing section from 97UI."

Signing in with the emailed code, the welcome, then the two setup lines.

13Have you listed it anywhere, like Claude's connector directory?

Say it

Not yet, it just launched. The ChatGPT app is built and ready to submit, and Claude's directory is next.

The details

  • ChatGPT: the app is built and packaged: a hosted MCP endpoint at 97ui.dev/mcp with OAuth sign-in, a listing and its review test cases. It has to be submitted by a verified OpenAI organization, so it's ready but not sent.
  • Claude: nothing submitted to the connector directory yet. The hosted endpoint speaks the same standard sign-in Claude's custom connectors use, but I haven't tried it there.
05 · For other designers

Your work, where people build.

14If a designer wants to turn their work into an MCP, what are the first 3 steps?

Say it

One: turn your designs into real code, with the things people change as settings. Two: write a short description of each one for someone who can't see it. Three: wrap it in a tiny MCP server and try it in your own agent.

The details

  1. Make each design a piece of code with settings. One folder per component, with the things people change (words, colours, variants) as props with good defaults. If it only exists in Figma, an agent can't install it.
  2. Write a catalog for a reader who can't see. One entry per piece: a name, one or two sentences on what it does and who it's for, a few tags, the import line and its packages. This is most of the work, and most of the quality.
  3. Wrap it in a small MCP server and try it in your own agent. Three tools: search, read, and install (or just "read the code"). Then ask your agent for things in plain words, in an empty project, and fix whatever it gets wrong.

15What's the minimum for a basic version?

Say it

Honestly? A folder of components, a JSON file that describes them, and about forty lines of code. No hosting, no accounts. Here it is.

The details

// server.mjs: npm i @modelcontextprotocol/sdk zod
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
import { z } from 'zod'
import { readFileSync } from 'node:fs'

// [{ name, description, tags, file }]: one entry per component
const catalog = JSON.parse(readFileSync(new URL('./catalog.json', import.meta.url)))
const server = new McpServer({ name: 'my-library', version: '1.0.0' })

server.registerTool('search_components', {
  description: 'Find components by what they do. Use it whenever the user asks for a UI piece.',
  inputSchema: { query: z.string() },
}, async ({ query }) => {
  const words = query.toLowerCase().split(/\s+/)
  const hits = catalog.filter((c) => words.every((w) => `${c.name} ${c.description} ${c.tags}`.toLowerCase().includes(w)))
  return { content: [{ type: 'text', text: hits.map((c) => `${c.name}: ${c.description}`).join('\n') || 'Nothing found.' }] }
})

server.registerTool('get_component_code', {
  description: 'The source of one component, to put into the user\'s project.',
  inputSchema: { name: z.string() },
}, async ({ name }) => {
  const c = catalog.find((x) => x.name === name)
  return { content: [{ type: 'text', text: c ? readFileSync(new URL(c.file, import.meta.url), 'utf8') : 'No such component.' }] }
})

await server.connect(new StdioServerTransport())
# connect it
claude mcp add my-library -- node /full/path/to/server.mjs
Then grow it in this order: an install tool that writes files and reports packages; settings as props in your catalog; a rehearsal that installs everything into an empty project; and only then accounts and payment.

97UI · 97ui.dev · The tool calls and answers above are recorded from the released server; the recordings are the live product.