deco-cx/deco-create
If you are the rightful owner of deco-create and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Deco MCP app is a full-stack template designed for building Model Context Protocol (MCP) servers with a modern React frontend.
Deco MCP template app
A full-stack template for building Model Context Protocol (MCP) servers with a modern React frontend.
This template provides a complete development environment where your MCP server not only exposes tools and workflows to AI agents but also serves a beautiful web interface built with React and Tailwind CSS.
š Development History
This repository uses Specstory to track the history of prompts that were used to code this repo. You can inspect the complete development history in the folder.
⨠Features
- š¤ MCP Server: Cloudflare Workers-based server with typed tools and workflows
- āļø React Frontend: Modern React app with Vite, TanStack Router, and Tailwind CSS
- šØ UI Components: Pre-configured shadcn/ui components for rapid development
- š§ Type Safety: Full TypeScript support with auto-generated RPC client types
- š Hot Reload: Live development with automatic rebuilding for both frontend and backend
- āļø Ready to Deploy: One-command deployment to Cloudflare Workers
š Quick Start
Prerequisites
- Node.js ā„22.0.0
- Deco CLI:
npm i -g deco-cli
Setup
# Install dependencies
npm install
# Configure your app
npm run configure
# Start development server
npm run dev
The server will start on http://localhost:8787
serving both your MCP endpoints
and the React frontend.
š Project Structure
āāā server/ # MCP Server (Cloudflare Workers + Deco runtime)
ā āāā main.ts # Server entry point with tools & workflows
ā āāā deco.gen.ts # Auto-generated integration types
āāā view/ # React Frontend (Vite + Tailwind CSS)
āāā src/
ā āāā lib/rpc.ts # Typed RPC client for server communication
ā āāā routes/ # TanStack Router routes
ā āāā components/ # UI components with Tailwind CSS
āāā package.json
š ļø Development Workflow
npm run dev
- Start development with hot reloadnpm run gen
- Generate types for external integrationsnpm run gen:self
- Generate types for your own tools/workflowsnpm run deploy
- Deploy to production
š Frontend ā Server Communication
The template includes a fully-typed RPC client that connects your React frontend to your MCP server:
// Typed calls to your server tools and workflows
const result = await client.MY_TOOL({ input: "data" });
const workflowResult = await client.MY_WORKFLOW({ input: "data" });
š Learn More
This template is built for deploying primarily on top of the Deco platform which can be found at the deco-cx/chat repository.
Documentation can be found at https://docs.deco.page
Ready to build your next MCP server with a beautiful frontend? Get started now!