Prefab
A generative UI framework for Python
Details
- External ID
- 47697566
- Source
- HN
- Company
- —
- Product
- Prefab
- Website domain
- prefect.io
- Launched
- April 8, 2026
- Cohort
- —
- Upvotes
- 5
- Upvotes percentile
- 0.11182519280205655
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Hi HN,I'm the author of FastMCP, the most popular Python framework for building MCP servers. I've been really excited about MCP Apps for a while. I think letting a server ship a fully interactive UI directly into the conversation is one of the most compelling additions to the protocol.I wanted to make this a first-class experience in FastMCP, but I kept getting stuck on what it actually means for a Python framework to integrate with a frontend feature. The JavaScript ecosystem has extraordinary tooling for this. I didn't want to build a worse version of it just to stay in Python.What changed my thinking was looking at how MCP is actually deployed. Most people think of it as a way to reach customers, but what we overwhelmingly see is companies using MCP internally — replacing dashboards, workflows, and internal tools. And for that, Python developers don't need the full JS ecosystem and its polished, branded, custom frontends. What they need is a way to compose the right components and data bindings.So we built Prefab. It's a generative UI framework with 100+ shadcn components that you compose using Python context managers. It serializes to a JSON protocol that renders as a real React application, with full client-side interactivity, reactive state, actions, and no JavaScript required. And because context managers have no closing tags, a partial Prefab script is already a valid UI, which means an agent can stream an interface to the renderer as it generates, without waiting for the full program to complete.Prefab is built right into FastMCP 3.2, but Prefab Apps can also run standalone or against any REST backend (like FastAPI).Docs: https://prefab.prefect.ioTry the playground (no install required): https://prefab.prefect.io/docs/playgroundGitHub: https://github.com/PrefectHQ/prefab
Enrichment
- Theme
- browser automation and scraping for AI
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Commercial product
- Normalized one-liner
- generative ui framework for python
- Manually corrected
- False
Could you build this?
Yes Prefab is a Python generative UI framework for MCP apps, generating standard web UI specifications from Python code that MCP clients can render.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one — 61 launches clear the similarity bar, closest 8 shown.
Attention rank: #55 of 62 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 158 days after the earliest competitor.
- Full Python GUI apps in the browser · hn · 2026-05-07 · 29 upvotes · similarity 0.44
- Docora · ph · 2026-09-25 · 5 upvotes · similarity 0.40
- Webmcp-react · hn · 2026-03-05 · 5 upvotes · similarity 0.39
- PyTogether, open-source lightweight real-time Python IDE for teachers · hn · 2025-11-03 · 5 upvotes · similarity 0.39
- Calling tools w/ Python improves LLM perf. vs MCP (77.1% on BrowseComp) · hn · 2025-12-16 · 10 upvotes · similarity 0.38
- Myjs An accidental pure-Python JavaScript interpreter · hn · 2026-09-05 · 7 upvotes · similarity 0.38
- Polymcp · hn · 2026-01-24 · 23 upvotes · similarity 0.38
- BustAPI · hn · 2025-12-21 · 5 upvotes · similarity 0.37
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.