Uiverse MCP Tool

Uiverse MCP Tool

FastMCP-based tool for extracting UI component code from Uiverse.io, supporting HTML/CSS, React, Vue, Svelte, and Lit frameworks.

Category
Visit Server

README

Uiverse MCP Tool

<p align="center">English | <a href="README_zh.md">δΈ­ζ–‡</a>

A FastMCP-based code extraction tool for Uiverse.io, supporting component code extraction from Uiverse website for various frontend frameworks.

Features

  • 🎨 Support for multiple frontend framework code extraction
  • πŸš€ Built on FastMCP, supporting both stdio and SSE transport methods
  • πŸ”§ Easy integration with AI workflows
  • πŸ“¦ Uses Playwright for web content extraction

Supported Frameworks

  • HTML/CSS
  • React
  • Vue
  • Svelte
  • Lit

System Requirements

  • Python >= 3.12
  • uv package manager

Installation

1. Clone or download the project

git clone https://github.com/YBMecho/Uiverse_MCP.git
cd Uiverse_MPC

2. Install dependencies

Using uv to install dependencies:

uv sync

3. Install Playwright browsers

uv run playwright install

Configuration

This tool supports two MCP configuration methods: stdio and SSE. Please add one of the following configurations to your MCP configuration file (such as Cursor's mcp.json).

Method 1: stdio configuration (recommended)

{
  "mcpServers": {
    "uiverse-MCP-tool-stdio": {
      "name": "Uiverse MCP Tool",
      "type": "stdio",
      "description": "Uiverse MCP Tool",
      "isActive": true,
      "command": "uv",
      "args": [
        "--directory",
        "D:\\YBMecho\\Desktop\\Uiverse_MPC",
        "run",
        "app.py"
      ]
    }
  }
}

Note: Please replace D:\\YBMecho\\Desktop\\Uiverse_MPC with your actual project path.

Method 2: SSE configuration

{
  "mcpServers": {
    "uiverse-MPC-tool-SSE": {
      "name": "Uiverse MCP Tool",
      "type": "sse",
      "description": "Uiverse MCP Tool",
      "isActive": true,
      "url": "http://127.0.0.1:8000/sse"
    }
  }
}

Note: An HTTP server must be started before using the SSE method.

Usage

Available Tools

1. parse_and_extract

Extract component code from Uiverse links.

Input format: <framework> <link>

Examples:

HTML https://uiverse.io/Na3ar-17/evil-dragon-24
React https://uiverse.io/username/component-name
Vue https://uiverse.io/username/component-name
Svelte https://uiverse.io/username/component-name
Lit https://uiverse.io/username/component-name

Usage rules:

  • Links must start with https://uiverse.io/
  • Links must contain a specific component path (not just the domain)
  • Framework names are case-insensitive

2. list_supported_frameworks

List all currently supported frameworks.

Returns: List of supported frameworks (Markdown format)

Using with AI Assistants

After configuration, you can use it directly in MCP-supporting AI assistants (like Cursor):

Please extract HTML code from https://uiverse.io/Na3ar-17/evil-dragon-24

or

Use React framework to extract code from https://uiverse.io/username/component-name

The AI assistant will automatically call the parse_and_extract tool to retrieve the code.

Project Structure

Uiverse_MPC/
β”œβ”€β”€ app.py                  # FastMCP main application
β”œβ”€β”€ browser.py              # HTML/CSS extractor
β”œβ”€β”€ browser_React.py        # React extractor
β”œβ”€β”€ browser_Vue.py          # Vue extractor
β”œβ”€β”€ browser_Svelte.py       # Svelte extractor
β”œβ”€β”€ browser_Lit.py          # Lit extractor
β”œβ”€β”€ pyproject.toml          # Project configuration
β”œβ”€β”€ build_exe.spec          # PyInstaller configuration
β”œβ”€β”€ dist/                   # Executable output directory
β”‚   └── UiverseExtractor.exe
└── README.md

Building Executable

The project includes PyInstaller configuration to build a standalone Windows executable:

pyinstaller build_exe.spec

The generated UiverseExtractor.exe will be located in the dist/ directory.

Dependencies

  • mcp[cli] >= 1.16.0 - MCP protocol support
  • fastmcp >= 2.0.0 - FastMCP framework
  • playwright >= 1.55.0 - Browser automation

Development Notes

Local Running

Run in stdio mode:

uv run app.py

Adding Support for New Frameworks

  1. Create a new browser_<Framework>.py file
  2. Implement the extract_<framework>_code(url: str) -> str async function
  3. Import and add it to the _dispatch_extract function in app.py
  4. Update the SUPPORTED_FRAMEWORKS list

License

Please add the appropriate license information according to your needs.

Contributions

Issues and Pull Requests are welcome!

Contact

For questions or suggestions, please provide feedback through Issues.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured