Productivity & Utilities · Automation
MDMA
Interactive, schema-validated applications generated from Markdown
MDMA extends Markdown with fenced mdma blocks for interactive, validated AI-generated applications. Its packages parse documents, validate schemas, manage state and policy, and render content across React, Vue 3, React Native, or vanilla DOM. The MIT-licensed project is self-hosted rather than a documented managed service, and includes prompts, CLI tooling, MCP integration, and an AG-UI bridge for agent workflows.
Key facts
- License
- MIT
- Main language
- TypeScript
- Maintainer
- Mobile Reality
- First released
- 2026
- Latest release
- Package tags: @mobile-reality/mdma-spec@0.4.0, @mobile-reality/mdma-runtime@0.4.0, @mobile-reality/mdma-renderer-react@0.6.0, @mobile-reality/mdma-renderer-vue@0.2.0, and related tags dated 2026-07-21; no GitHub Release entry
- GitHub stars
- 71 (as of October 2026)
What MDMA is
MDMA means Markdown Documents with Mounted Applications. It addresses the gap between conversational text and rigid JSON UI contracts: an LLM can emit familiar Markdown plus typed YAML blocks, while an application parses and validates the result before rendering it. The project defines ten component types, including forms, buttons, tasklists, tables, callouts, approval gates, webhooks, charts, thinking blocks, and host-registered custom components. This gives an AI response actionable controls without requiring a bespoke front end for every use case. The format remains Markdown-compatible, but MDMA blocks carry predictable structure, state, bindings, and actions for interactive workflows. MDMA is an open-source format and toolkit for interactive documents generated from Markdown.
How it works
The repository is a pnpm and Turborepo TypeScript monorepo built around Zod schemas, remark parsing, React, Vitest, and related web tooling. The specification package provides schemas, types, and AST definitions; the parser converts Markdown into an MDMA AST and builds binding dependencies; and the runtime manages reactive state, actions, policy, and an audit log with PII redaction. Attachables provide stateful handlers, while display-only types can render directly. The validator performs static analysis for YAML, schema conformance, identifiers, bindings, action references, sensitivity, expected components, and flow ordering, with automatic fixes and suggestions. MDMA is an open-source format and toolkit for interactive documents generated from Markdown. LLMs can emit regular Markdown alongside fenced mdma blocks containing typed, schema-validated components.
Architecture and recent releases
MDMA separates the headless document model from presentation. Official packages render documents in React, Vue 3, React Native, and framework-free DOM, with a shared theme shape and portable styling. A document can therefore move between browser frameworks or native Apple and Android interfaces without changing its specification or runtime state. Streaming support holds incomplete fences as pending blocks rather than treating them as fatal errors. The AG-UI bridge streams documents and routes submissions, approvals, task completion, and webhook events back into agent runs, including interrupt and resume behavior for human-in-the-loop flows. MDMA is an open-source format and toolkit for interactive documents generated from Markdown. LLMs can emit regular Markdown alongside fenced mdma blocks containing typed, schema-validated components.
License and pricing
The project targets authoring and integration rather than only rendering. Its prompt pack supplies model-oriented system prompts and can build custom prompts; the CLI supports prompt creation and validation; and the MCP server exposes the specification, prompts, package metadata, documentation, and validation-related tools to compatible assistants. The README describes MDMA as model-agnostic, while the project site documents tuned variants and examples. Published package tags show releases through July 2026, but GitHub's repository Releases page has no formal release entries, so the latest package tag is reported rather than a GitHub release. MDMA is an open-source format and toolkit for interactive documents generated from Markdown. LLMs can emit regular Markdown alongside fenced mdma blocks containing typed, schema-validated components.
Limitations and how it compares
MDMA is useful where an AI response must become a safe, reviewable workflow instead of remaining prose. Forms can collect structured input, approval gates can require sign-off, tables and charts can present data, and webhooks can represent integrations. Its MIT license permits self-hosting and modification, and packages are published under the Mobile Reality npm organization. The main caveat is maturity: the roadmap still lists stable API guarantees, end-to-end workflow coverage, benchmarks, migration guides, production webhook execution, and other v1 work as incomplete. Teams should evaluate API stability and operational requirements before using it for critical production flows. MDMA is an open-source format and toolkit for interactive documents generated from Markdown.
Main features
- Markdown-native interactive blocks. Fenced mdma YAML blocks extend ordinary Markdown with typed forms, actions, data displays, approvals, integrations, and custom components.
- Schema and static validation. Zod schemas and validator rules check structure, identifiers, bindings, action references, sensitivity, ordering, and expected components before rendering.
- Headless state runtime. The runtime manages reactive values, bindings, policies, dispatched actions, audit events, initial state, and automatic PII redaction.
- Multiple rendering targets. Official renderers target React, Vue 3, React Native, and framework-free DOM while sharing the same document model and theme concepts.
- Agent and streaming integration. AG-UI streams documents and returns submissions, approvals, checklist completion, webhooks, activity, interrupts, and resume signals to agent runs.
- AI authoring toolchain. Prompt packs, a prompt-building and validation CLI, and an MCP server help assistants author, inspect, validate, and document MDMA.
Self-hosting MDMA
MDMA is a library and package collection rather than a hosted SaaS, and the official pages do not document a managed cloud offering. Self-hosting means installing the required npm packages, embedding the parser and runtime in your application, and choosing a renderer or writing a host integration. You control model calls, document transport, persistence, action handlers, webhook infrastructure, authentication, and deployment. The MIT license permits modification and redistribution. The roadmap identifies production webhook execution, stable API guarantees, and compliance documentation as incomplete, so operators must supply those controls and assess security, logging, and data handling themselves.
Strengths
- The MIT license and modular packages support modification and selective adoption.
- One document model targets React, Vue, native, and vanilla renderers.
- Validation, policy, audit, and PII redaction address workflow safety.
- AG-UI, MCP, prompts, and CLI cover agent integration.
Drawbacks
- The v1 roadmap still marks stable API guarantees incomplete.
- GitHub has no formal Releases despite frequent package tags.
- Production webhook execution and compliance documentation remain incomplete.
What teams replace with it
Teams usually evaluate MDMA when they want to move off Proprietary generative UI platforms, Custom per-workflow front ends, Rigid JSON UI contracts.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to MDMA
- OpenUI
- A2UI
- json-render
- React JSONSchema Form
- MCP UI
Frequently asked questions
What is MDMA?
MDMA is an open-source format and toolkit for interactive documents generated from Markdown. LLMs can emit regular Markdown alongside fenced mdma blocks containing typed, schema-validated components. Applications parse, validate, manage, and render those documents as interactive forms, tables, approvals, charts, tasklists, webhooks, and other UI instead of showing only plain text.
Which frameworks can render MDMA?
The official integrations provides React, Vue 3, React Native, and framework-free DOM rendering packages. Parsing, state, bindings, policy, and audit remain headless, so the same document and runtime concepts can serve multiple presentation layers. Shared theme tokens and web styles are intended to make designs portable between supported renderers.
Does MDMA work with AI agents?
Yes. The AG-UI bridge streams MDMA documents into an agent-facing interface and routes user actions such as form submissions, approvals, checklist completion, and webhook triggers back into the run. Interrupt and resume behavior supports human approval gates. The MCP package exposes specification, prompts, documentation, and tooling to compatible assistants.
Is MDMA open source?
Yes. The repository includes an MIT license and is maintained by Mobile Reality. Packages are published under the @mobile-reality npm organization. The license permits use, modification, distribution, and sublicensing subject to the MIT notice and disclaimer. No hosted service or managed cloud plan was documented in the official sources.
What is MDMA's release status?
The project is active and package tags continued through July 2026. GitHub's Releases page has no formal releases, while repository tags and the changelog document package versions and dates. The roadmap still labels stable API guarantees, end-to-end workflow coverage, benchmarks, migration guides, and several production features incomplete, so it should be treated as developing software.
Sources
- Official repository README
- Official project site
- Official changelog
- Repository license
- Repository tags
- GitHub releases page
Last updated 2026-10-22.