Skip to main content
Glama
Uiverse MCP Tool
by YBMecho

Uiverse MCP Tool

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

Related MCP server: design-copier

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).

{
  "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.

Available Tools

2 tools
list_supported_frameworksA

ๅˆ—ๅ‡บๅฝ“ๅ‰ๆ”ฏๆŒ็š„ๆก†ๆžถๅ็งฐๅˆ—่กจ๏ผˆMarkdown๏ผ‰ใ€‚

Inputs: no named parameters. Returns: result

parse_and_extractA
่ง„ๅˆ™๏ผš่พ“ๅ…ฅๆ ผๅผไธบ โ€œๆก†ๆžถ+็ฉบๆ ผ+้“พๆŽฅโ€๏ผŒไพ‹ๅฆ‚๏ผš
HTML https://uiverse.io/Na3ar-17/evil-dragon-24

AI ่ฐƒ็”จไฟกๆฏ๏ผš
ๅฆ‚ๆžœ็”จๆˆท่พ“ๅ…ฅ็š„้“พๆŽฅ็š„ๅผ€ๅคดๆ˜ฏ โ€œhttps://uiverse.io/โ€๏ผŒ้‚ฃไนˆๅ…ˆ่ฏ†ๅˆซ่ฏฅๅ‰็ผ€ๅŽ้ขๆ˜ฏๅฆๆœ‰ๅ†…ๅฎน๏ผš
- ๆฒกๆœ‰ๅ†…ๅฎน๏ผšไธไฝฟ็”จ MCP๏ผˆๆญคๅค„่ฟ”ๅ›ž่ฏดๆ˜Ž๏ผ‰
- ๆœ‰ๅ†…ๅฎน๏ผšๆ นๆฎโ€˜ๆก†ๆžถโ€™้€‰ๆ‹ฉๅฏนๅบ”็š„ MCP ๅฎž็Žฐๆๅ–ไปฃ็ 

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    A4.2/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools serve clearly distinct purposes: one lists supported frameworks, and the other extracts code from a given link. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    Both tool names follow the same verb_noun pattern in snake_case: 'parse_and_extract' and 'list_supported_frameworks'. This is consistent and predictable.

    Tool Count3/5

    With only two tools, the server feels minimal but not absurdly under-scoped. The tools cover the core extraction workflow, though the count is on the low end of what would be expected.

    Completeness4/5

    The tool set covers the essential lifecycle: knowing which frameworks are supported and then extracting code from a Uiverse link. A minor gap is the lack of any search or discovery tool for finding components, but the stated purpose is extraction, which is well covered.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers