<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk" -->

---
title: When chatbots grow buttons: Building MCP apps with FastMCP
description: A talk from FastMCP's creator (CEO of Prefect) explains MCP apps, an official extension to the Model Context Protocol that lets MCP tools return an HTML/CSS/JS...
canonical: https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: When chatbots grow buttons: Building MCP apps with FastMCP | daily.dev
og:description: A talk from FastMCP's creator (CEO of Prefect) explains MCP apps, an official extension to the Model Context Protocol that lets MCP tools return an HTML/CSS/JS...
og:url: https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk
og:image: https://api.daily.dev/og/posts/Tqiv7WAGK.png
og:image:alt: When chatbots grow buttons: Building MCP apps with FastMCP
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# When chatbots grow buttons: Building MCP apps with FastMCP

**[Microsoft Developer](https://daily.dev/sources/microsoftdeveloper)** · 15 min read · 0 upvotes · 0 comments

## Summary

A talk from FastMCP's creator (CEO of Prefect) explains MCP apps, an official extension to the Model Context Protocol that lets MCP tools return an HTML/CSS/JS bundle rendered as an interactive UI inside a chat interface (e.g., Excalidraw embedded in a conversation), rather than just raw text or JSON for the LLM to interpret. Because FastMCP's audience is predominantly Python developers building internal enterprise tools, the team built Prefab, an open-source generative component library with a Python-first DSL that compiles to a JSON protocol and renders as a React app, offering 125+ prebuilt shadcn/react components (tables, forms, charts). Examples shown include turning a tool into an interactive sortable/filterable data table with one decorator change, adding charts via composition, safe client-side JavaScript reactivity, solving token-expensive file uploads via drag-and-drop MCP apps, community-built themes (Windows 2000, MySpace), and an upcoming spec feature where MCP apps can expose agent-callable tools (demoed via tic-tac-toe) for bidirectional human-agent interactivity.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=C81lgsW5kIA>

## Questions this post answers

### What is an MCP app and how does it differ from a regular MCP tool call?

An MCP app is an official extension to the Model Context Protocol where a tool's metadata points to a resource with a special UI prefix containing a full HTML/CSS/JavaScript bundle. The host loads that bundle into an iframe inside the chat; structured content from the tool call is sent directly to the iframe instead of only back to the LLM, and the app can call back into the MCP server as its backend.

_Teams weighing how to add interactive UI to agent chats can track MCP apps developments through daily.dev._

### How does FastMCP let Python developers build MCP app UIs without writing JavaScript?

FastMCP uses a library called Prefab, a generative component library with Python at its core built on a JSON protocol that compiles to a React app compatible with the MCP app spec. Developers compose over 125 prebuilt shadcn/React components using Python context managers as a DSL, and returning a Prefab component from a tool decorated with app=true renders it as an interactive UI, like a sortable data table or a chart, without touching HTML or JavaScript.

_Python developers deciding how to add dashboards to agent tools can follow Prefab and FastMCP updates on daily.dev._

### How can MCP apps handle file uploads without wasting LLM tokens?

Instead of having the agent write out every byte of a file as tool call parameters, an MCP app can present a file upload interface where the user drags a file directly into it, uploads it to the server, and only then asks the agent to act on the already-uploaded file. This avoids the slow, token-expensive process of the agent regurgitating an entire file's contents as text.

_Developers solving token-heavy file transfer problems in agent workflows can find practical patterns like this on daily.dev._

## Similar posts on daily.dev

- [Finally, MCP Servers Can Deliver UI-rich Experiences\!](https://daily.dev/posts/finally-mcp-servers-can-deliver-ui-rich-experiences--0hjhcck0j) · Daily Dose of Data Science \| Avi Chawla \| Substack · 53 upvotes · 0 comments
- [MCP Apps: Extending servers with interactive user interfaces](https://daily.dev/posts/mcp-apps-extending-servers-with-interactive-user-interfaces-jtfd053h0) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#generative-ui](https://daily.dev/tags/generative-ui)

[View this post on daily.dev](https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"When chatbots grow buttons: Building MCP apps with FastMCP","url":"https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk"},"datePublished":"2026-09-10T01:46:36.248Z","dateModified":"2026-09-13T18:35:38.581Z","description":"A talk from FastMCP's creator (CEO of Prefect) explains MCP apps, an official extension to the Model Context Protocol that lets MCP tools return an HTML/CSS/JS...","image":"https://i.ytimg.com/vi/C81lgsW5kIA/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/C81lgsW5kIA/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Microsoft Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Microsoft Developer","logo":"https://media.daily.dev/image/upload/s--xZzU3zUq--/f_auto/v1746714872/logos/microsoftdeveloper","url":"https://daily.dev/sources/microsoftdeveloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,ai-agents,mcp,generative-ui","timeRequired":"PT15M","video":{"@type":"VideoObject","name":"When chatbots grow buttons: Building MCP apps with FastMCP","description":"A talk from FastMCP's creator (CEO of Prefect) explains MCP apps, an official extension to the Model Context Protocol that lets MCP tools return an HTML/CSS/JS...","thumbnailUrl":"https://i.ytimg.com/vi/C81lgsW5kIA/sddefault.jpg","uploadDate":"2026-09-10T01:46:36.248Z","duration":"PT15M","url":"https://api.daily.dev/r/Tqiv7WAGK","embedUrl":"https://www.youtube.com/embed/C81lgsW5kIA"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Microsoft Developer","item":"https://daily.dev/sources/microsoftdeveloper"},{"@type":"ListItem","position":3,"name":"When chatbots grow buttons: Building MCP apps with FastMCP"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/when-chatbots-grow-buttons-building-mcp-apps-with-fastmcp-tqiv7wagk#faq","mainEntity":[{"@type":"Question","name":"What is an MCP app and how does it differ from a regular MCP tool call?","acceptedAnswer":{"@type":"Answer","text":"An MCP app is an official extension to the Model Context Protocol where a tool's metadata points to a resource with a special UI prefix containing a full HTML/CSS/JavaScript bundle. The host loads that bundle into an iframe inside the chat; structured content from the tool call is sent directly to the iframe instead of only back to the LLM, and the app can call back into the MCP server as its backend. Teams weighing how to add interactive UI to agent chats can track MCP apps developments through daily.dev."}},{"@type":"Question","name":"How does FastMCP let Python developers build MCP app UIs without writing JavaScript?","acceptedAnswer":{"@type":"Answer","text":"FastMCP uses a library called Prefab, a generative component library with Python at its core built on a JSON protocol that compiles to a React app compatible with the MCP app spec. Developers compose over 125 prebuilt shadcn/React components using Python context managers as a DSL, and returning a Prefab component from a tool decorated with app=true renders it as an interactive UI, like a sortable data table or a chart, without touching HTML or JavaScript. Python developers deciding how to add dashboards to agent tools can follow Prefab and FastMCP updates on daily.dev."}},{"@type":"Question","name":"How can MCP apps handle file uploads without wasting LLM tokens?","acceptedAnswer":{"@type":"Answer","text":"Instead of having the agent write out every byte of a file as tool call parameters, an MCP app can present a file upload interface where the user drags a file directly into it, uploads it to the server, and only then asks the agent to act on the already-uploaded file. This avoids the slow, token-expensive process of the agent regurgitating an entire file's contents as text. Developers solving token-heavy file transfer problems in agent workflows can find practical patterns like this on daily.dev."}}]}
```

