TemplatesMCP App with React Widgets

MCP App with React Widgets

An MCP server with React widgets and Tailwind CSS styling using MCP Apps

MCP App with React Widgets preview

Build styled React widgets for MCP applications using Tailwind CSS.

Features

  • React component tools with Tailwind CSS v4 styling
  • PostCSS configuration included
  • CSP and domain metadata support for secure widget embedding
  • HTTP transport
  • Example tool: weather widget with Tailwind styling

Getting Started

1. Create the project

2. Install & run

The MCP server will start with HTTP transport at http://localhost:3001.

Project Structure

Creating Styled Tools

Create a .tsx file in src/tools/ using Tailwind classes:

The _meta.ui field configures CSP policies and embedding behavior for your widget.

Deploy

Learn More

Other templates

One framework to rule them all