Web Prototyping logo

Web Prototyping

Community
llxxbb

基于 Model-Context Protocol 实现的 AI 原型设计辅助工具

Publisherllxxbb
Repositorymcp-prototype
LanguageJavaScript
Forks
1
Stars
4
Available tools
5
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Web Prototyping exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 5 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    4 stars and 1 forks from the linked repository.

MCP-Prototype

可以让 AI 基于HTML直接进行原型设计的 MCP 工具,即使没有 figma、axure也可以快速构建软件原型。

工具能力:

  • 提供导航栏。

  • 将标记与原型解耦。

  • 支持页面附加说明。

配置方法

AI MCP 配置增加下面的内容

json
{
  "mcpServers": {
    "mcp-prototype": {
      "command": "npx",
      "args": [
        "-y",
        "@llxxbb/mcp-prototype"
      ]
    }
  }
}

本地调试

json
    "mcp-prototype": {
      "command": "npm",
      "args": [
        "--prefix",
        "path/to/mcp-prototype",
        "start:mcp"
      ]
    }

AI 提示词建议

在原型设计前:

要求:

  • 请按原型工具规范进行原型设计。

  • 需求:abcd...

使用过程中,如想展示原型,直接输入:

展示原型

原型展示会启动一个后台,所以不需要多次输入指令,否则会启动多个实例。

如想关闭,可输入:

停止展示

或

关闭原型

使用规范

  • 导航栏:

    • 层级定义:与原型所在文件系统的目录结构一一对应。

    • 原型名称:来源于原型页面标签的 data-nav-name 数据属性值,如省略则使用文件名。

  • 功能注入,MCP-Prototype 会为每个 HTML 页面注入:

    • mcp-prototype-inject.js 文件,用于展示标记。
  • 标记:通过设置 UI 元素的 data-marker 数据属性来增强使用者对UI元素的理解,可选。如相关界面元素的意义已经非常明显,则不建议配置。

                         

  • 页面的附加说明,用于表达原型页面无法表达的内容,如设计理念,元素拖拽,注意事项等。markdown 格式,文件名格式为[原型页面文件名].annotation.md

具体参考:src\mcp\tool\getSpec.ts 文件

技术栈

  • nodejs, SvelteKit, Vite,ts

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "mcp-prototype": {
      "command": "npx",
      "args": [
        "-y",
        "@llxxbb/mcp-prototype"
      ]
    }
  }
}

Available Tools

  • hello_world

    Returns a greeting message

  • getSpec

    检索 MCP-Prototype 规范,ai 助手可以参考此规范来创建 html 原型页面

  • init

    提供原型根路径和展示服务的端口号,可以多次调用。注意此过程需检测并安装运行 web 服务所需的包,可能时间较长

  • start

    该工具将启动web服务并展示模型,启动后会后台运行,所以避免重复调用!

    调用成功后,请在浏览器里输入本地地址和 init 中指定的端口号进行查看。

    在调用此工具前,下面的事情需要就位,否则此工具可能无法正常工作:

    • 遵循 getSpec 工具中的指示并进行了原型创造。
    • 已经调用 init 工具进行了初始化。
  • stop

    停止展示原型,并关闭web服务器

Use Web Prototyping MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Web Prototyping is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Web Prototyping as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Web Prototyping MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "web-prototyping": {
      "command": "npx",
      "args": [
        "-y",
        "@llxxbb/mcp-prototype"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Web Prototyping MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Web Prototyping MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Web Prototyping to help me with this task?
Web Prototyping
Sure. I read it.
Here is what I found using Web Prototyping.

Frequently asked questions

What is the Web Prototyping MCP server used for?

Web Prototyping is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Web Prototyping MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Web Prototyping with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Web Prototyping MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Web Prototyping connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Web Prototyping MCP to TypingMind?

Web Prototyping runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Web Prototyping MCP provide in TypingMind?

Web Prototyping exposes 5 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Web Prototyping MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Web Prototyping requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇