An application that integrates the Model Context Protocol (MCP) with an AI-powered chat interface. LoopCraft serves as an MCP client with MCP-UI integration, allowing AI assistants to interact with external tools and resources through MCP servers while rendering interactive UI components.
- Natural language conversations with MCP tool integration
- User-configurable AI models and providers, including local Ollama
- Interactive MCP-UI component rendering with bidirectional communication
- User-specific MCP servers managed through Settings UI
- Support for stdio, SSE, and HTTP transports
- Dynamic tool registration and resource handling
Visual tool for creating UI resources following the official MCP-UI specification
- 3 Content Types: rawHtml (default), externalUrl, remoteDom
- Companion Mode
- Create UI-only servers that call tools from existing MCP servers
- Select target server and choose which tools to expose via UI
- Auto-generates tool call snippets for selected tools
- Visual distinction with orange theme and puzzle icon
- Recommended for FastMCP format (lightweight, declarative)
- Auto-Deployment
- One-click deployment with 6-step automated process
- Action Snippets Library: 13 code snippets across 5 action types
- Tool, Prompt, Link, Intent, Notify actions
- "Insert at Cursor" functionality for Monaco editor
All 5 action types fully implemented for bidirectional communication:
- Tool - Execute MCP tools (form submissions, data creation)
- Prompt - Send message to AI (context-aware help requests)
- Link - Open external URL (documentation, dashboards)
- Intent - Trigger app actions (navigation, settings)
- Notify - Show notification (success/error feedback with auto-variant detection)
- Node.js 18+ and npm
- Docker and Docker Compose
- Ollama or other model (for AI functionality)
# Development
npm run dev # Start dev server with Turbopack
npm run build # Build for production
npm start # Start production server
npm run lint # Run ESLint
# Database
docker-compose up -d # Start MySQL
docker-compose down # Stop MySQL
# Demo MCP Servers
npm run mcp:demo # Contact form demo server (port 3001)
npm run mcp:hypermemory # HyperMemory knowledge graph server- Framework: Next.js 15 with App Router and Turbopack
- UI: React 19, TypeScript, Tailwind CSS 4, Radix UI
- AI: Vercel AI SDK, @assistant-ui/react, Ollama
- MCP: @modelcontextprotocol/sdk, @mcp-ui/client, @mcp-ui/server
- Database: MySQL 8.0 with Docker, mysql2 driver
- Auth: JWT with bcrypt password hashing
- State: Zustand with persistence
Technology Stack:
- FastMCP with
@mcp-ui/serverintegration - MCP-UI compliant resource structure
- Proper error handling with uncaught exception handlers
Usage: Add to Settings > MCP Servers:
- Type:
stdio - Command:
["node", "mcp-servers/hyperface-server.ts"](or.jsif transpiled)
When you click "Auto-Deploy", LoopCraft performs these steps:
- Write Server File - Generates server code and writes to
mcp-servers/directory - Install Dependencies - Runs
npm installfor required packages - Test Server Startup - Validates the process can start successfully
- Validate MCP Protocol - Connects test server and lists tools
- Add to Database - Creates entry in
mcp_serverstable (enabled by default) - Enable and Connect - Makes server immediately available in chat
- Remote DOM Support
- Full React component support in MCP-UI
- Web Components framework integration
- Client-side hydration and state management
- Visual UI Editor
- Component library with pre-built blocks
- Analytics & Monitoring
- Custom dashboards
- MCP Orchestration
- Server chains and workflows
- Conditional tool execution
- Event-driven automation
- Extended Capabilities
- Advanced debugging tools for MCP protocol
- Webhook support for external integrations
- Marketplace & Monetization
- Server marketplace with ratings
- Platform Extensions
- Third-party integrations (Zapier, n8n, etc.)
- AI-powered template generation
MIT License - see LICENSE file for details


