ngx-mcp-apps 0.4.0
GitHub npm Italiano

Your app, inside the chat

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.

See a real one running For developers

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.

Agentic apps: your interface in the agent's loop

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 opens it

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.

The agent keeps working on it

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.

The user points, the agent understands

A tap in the app reaches the agent as context. "Why is this one so high?" means the value just selected, without describing it.

Your tools, your rules

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.

For developers

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

Signals, not listeners

The connection, the tool result, the host theme and the display mode are signals. A template reads them like any other state.

About 5 kB, nothing else

The app side of the protocol is implemented in the library: about 5 kB gzipped, with no runtime dependencies.

One file out of ng build

The 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.

Angular 18 to 22

Each major is checked with a new application: installed, built, opened in a browser.

Questions

What is an MCP App?

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.

What does ngx-mcp-apps do?

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.

Which versions of Angular are supported?

Angular 18, 19, 20, 21 and 22, for both packages. Each version is checked automatically with a new application that uses Angular Material.

Which hosts does it work with?

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.

Can the app use lazy loading?

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.

Is it an official project?

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.