What should I pack for Lisbon?
Here is a list. Tick things off as you pack.
Weekend in Lisbon
- Passport
- Phone charger
- Walking shoes
- Sunscreen
2 of 4 packed
When people ask an AI assistant such as Claude for something, it can answer with your app: a chart, a list to tick, a booking form. It appears right in the conversation, ready to use.
An animated demonstration with three short stories. Someone asks how sales went this quarter, and the assistant answers with a bar chart of sample data where the best month is highlighted. Someone asks what to pack for Lisbon, and the assistant answers with a packing list where two of four items get ticked. Someone asks to book a table for Friday at 8, and the assistant answers with a choice of times; 8:00 is picked and the booking is confirmed.
An agent that can only write text stops at words. With an MCP App it acts on something you built, and the person in the chat acts on it too: one interface, shared by the agent and the user, turn after turn.
The agent decides when a chart, a form or a list says it better than text, calls your tool, and your app appears in the conversation with the data it chose.
In the next turns it adds data, marks a value, changes the view, through the tools of your server. The app already on screen follows: no new window, no copy and paste.
A tap in the app reaches the agent as context. "Why is this one so high?" means the value just selected, without describing it.
The agent acts only through the tools your MCP server exposes, and the app checks every piece of data before showing it. You decide what it can do.
These are MCP Apps: small web pages that a chat host such as Claude shows when the model
calls a tool. ngx-mcp-apps lets you write one as a normal Angular application,
and builds it into the single HTML file that hosts expect.
ng add ngx-mcp-apps-builder
Get started
The connection, the tool result, the host theme and the display mode are signals. A template reads them like any other state.
The app side of the protocol is implemented in the library: about 5 kB gzipped, with no runtime dependencies.
ng buildThe builder runs Angular's own application builder, then inlines scripts, styles, fonts and images of the CSS. If something cannot fit in one file, the build fails and says what.
Each major is checked with a new application: installed, built, opened in a browser.
A small web page that a chat host shows inside the conversation when the model calls a tool of an MCP server. It is defined by the MCP Apps extension of the Model Context Protocol: the page runs in a sandboxed frame and talks to the host with messages.
It lets you write that page as a normal Angular application. The library speaks the protocol with the host and exposes the connection, the tool data, the host theme and the display mode as signals. The builder turns the application into the single HTML file that hosts expect.
Angular 18, 19, 20, 21 and 22, for both packages. Each version is checked automatically with a new application that uses Angular Material.
It has been tried in Claude: claude.ai on the web and the Claude app for Android. The library follows the MCP Apps specification, so other hosts that implement it should work, but they have not been tried.
Yes. Lazy routes, @defer blocks and dynamic import() are merged
into the single file by the builder: they work, but everything is loaded with the app. Web
workers are not supported.
No. It is an unofficial community library under the MIT licence, not affiliated with or endorsed by Anthropic, OpenAI or the Model Context Protocol project.
Version 0.4.0. MIT licence. Unofficial community library, not affiliated with or endorsed by Anthropic, OpenAI or the Model Context Protocol project.