MCP Glue Code Generator
This is an MCP tool that can map messy API JSON data to Vue or React design system components, generate Zod schemas, and preview the UI effect in real - time through MCP - UI.
rating : 2 points
downloads : 6.6K
What is the UI Glue Code Generator?
This is a two-stage intelligent front-end integration automation system. It can understand the messy JSON data returned by the back-end API, automatically analyze your Vue or React design system components, and then generate precise data mapping schemes and validation rules. Most amazingly, it can also render the final UI effect in real-time in the chat interface, allowing you to immediately see the visual results after data conversion.How to use the UI Glue Code Generator?
It's very simple to use: Just paste your API response example and component code in an AI chat tool that supports MCP (such as the Roo Code extension in VS Code or Claude Desktop), and the system will automatically complete the mapping and display the results. There's no need to manually write complex conversion logic throughout the process.Use cases
When you need to quickly integrate a new back-end API into an existing front-end system; when the data structure returned by the API does not match the format expected by the front-end components; when you want to verify whether the data conversion logic is correct; when the team needs a unified data mapping specification.Main Features
Intelligent Data Mapping
Automatically analyze the API JSON structure and component props requirements, intelligently match fields, and generate conversion logic
Zod Schema Generation
Automatically generate TypeScript Zod validation schemas to ensure the correctness and security of data types
Real-time UI Preview
Render the final component effect directly in the chat interface through mcp-ui, what you see is what you get
Dual Framework Support
Support design system components of both Vue and React, the two mainstream front-end frameworks
MCP Protocol Integration
Based on the Model Context Protocol, it can be seamlessly integrated with various AI assistants and development tools
Advantages
Significantly reduce the time for manually writing data conversion code
Reduce the risk of bugs caused by data format mismatch
Provide real-time visual feedback to quickly verify conversion logic
The generated Zod schemas ensure type safety
Seamlessly integrate with the existing development toolchain
Limitations
Clear API response examples and component code need to be provided
Manual adjustment may be required for extremely complex data structures
Currently mainly supports API responses in JSON format
Requires MCP client support (such as Roo Code, Claude Desktop, etc.)
How to Use
Installation and Configuration
First, install Node.js dependencies and build the server, then configure the server address in your MCP client
Configure the MCP Client
Add server configuration in the Roo Code/Cline extension in VS Code or Claude Desktop
Use the Tool
In the AI chat interface, use the generate_ui_schema tool and provide API data and component code
View the Results
The system will generate a Zod schema and directly display the rendered UI component in the chat
Usage Examples
Order Card Data Mapping
Map the order API data from the e-commerce back-end to the order card components in the design system
User Profile Component Integration
Map the data from the user management API to the React user profile component
Frequently Asked Questions
Do I need to know programming to use this tool?
Which front - end frameworks are supported?
What is the quality of the generated code?
How to install it in my development environment?
Is this tool free?
Related Resources
GitHub Repository
Source code and the latest version
MCP Official Documentation
Technical specification of the Model Context Protocol
Zod Documentation
Official documentation of the Zod validation library
Smithery MCP Market
Discover and install other MCP servers
Demo Video
Complete usage demonstration of the UI Glue Code Generator

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
18.6K
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
31.5K
5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
22.0K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
62.0K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
27.2K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
57.1K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
19.5K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
84.5K
4.7 points
