This repository demonstrates how to integrate MCP Apps with CopilotKit. It uses the Three.js example from the official Model Context Protocol organization on GitHub.
Screen.Recording.2026-01-15.at.12.18.09.PM.mov
- Node.js 20+
- pnpm
- OpenAI API Key
- Install dependencies:
pnpm i- Set up your OpenAI API key:
cd apps/web
echo 'OPENAI_API_KEY=your-openai-api-key-here' > .env.local- Start the server:
# Using pnpm
pnpm devThe following scripts can also be run using your preferred package manager:
dev- Starts both UI and agent servers in development modebuild- Builds the Next.js application for productionstart- Starts the production serverlint- Runs ESLint for code linting
The main UI component is in src/app/page.tsx. You can:
- Modify the theme colors and styling
- Add new frontend actions
- Customize the CopilotKit sidebar appearance
- CopilotKit Documentation - Explore CopilotKit's capabilities
- Next.js Documentation - Learn about Next.js features and API
- MCP Apps Documentation - Learn more about MCP Apps and how to use it
Feel free to submit issues and enhancement requests! This starter is designed to be easily extensible.
This project is licensed under the MIT License - see the LICENSE file for details.