MCP UI by Flowbite 标志

MCP UI by Flowbite

组织
themesberg

MCP UI components to build MCP apps for Claude, ChatGPT, Gemini based on Flowbite and Skybridge

发布者themesberg
代码仓库mcp-ui-components
语言TypeScript
复刻数
4
星标数
15
可用工具
0
传输类型streamable-http
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    MCP UI by Flowbite 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 15 个星标和 4 个复刻。

MCP UI by Flowbite

Build apps for ChatGPT, Gemini, Claude and any MCP clients (Cursor, Windsurf)

This is an open-source library of UI components, widgets and examples that you can use to build MCP apps that can work as ChatGPT apps, Gemini apps, Claude apps, and any other MCP client like Cursor or Windsurf. The examples include basic text components, radio, checkbox selection prompts, charts, e-commerce examples, qr code generation, tables, and more.

The components are based on the Flowbite UI framework and the SkyBridge framework for building MCP apps.

https://github.com/user-attachments/assets/ae139fb3-a2ec-436b-b4a6-9b25064918cd

MCP UI components

This is the full list of open-source components and widgets available:

  • Basic text
  • Radio group
  • Checkbox group
  • Line chart
  • E-commerce products
  • QR code
  • Table data

Getting Started

To start developing locally, you need to have Node and Ngrok installed.

Prerequisites

  • Node.js 24+
  • HTTP tunnel such as ngrok

Local Development

Getting started locally is as easy as running the install command with your favourite package manager.

1. Install the local packages:

bash
npm install

You can also use bun, pnpm or yarn.

2. Start a local server by running the following command:

bash
npm run dev

This command starts an Express server on port 3000. This server packages:

  • an MCP endpoint on /mcp (the app backend)
  • a React application on Vite HMR dev server (the UI elements to be displayed in the host)
  • a set of widget examples built with Flowbite UI components

3. Create a connector with Ngrok

Using Ngrok you need to create an accessible connector:

bash
ngrok http 3000

This will create a NGROK_FORWARDING_URL like this:

https://3785c5ddc4b6.ngrok-free.app/mcp

Note: make sure you add the /mcp folder to the URL when registering an app.

4. Connect to AI clients like ChatGPT, Gemini, and Claude

Check out the following guides to learn how to integrate with each AI client:

  1. Navigate to Settings > Connectors
  2. Scroll down and click on Advanced Settings
  3. Enable Developer mode
  4. Go back to the Settings > Connectors page, and click on Create in the Browser Connectors section
  5. Add a custom connector with the MCP Server URL: [NGROK_FORWARDING_URL]/mcp
  6. Click on Create to add the MCP server as a Connector
  7. To use your newly created connector in the chat, click + then More and select it.
  1. Navigate to Settings > Connectors
  2. Locate the Connectors section
  3. Click Add custom connector at the bottom of the section
  4. Add your connector's remote MCP server URL: [NGROK_FORWARDING_URL]/mcp
  5. Finish configuring your connector and click Add
  6. To enable connectors, use the Search and tools button on the lower left of the chat.

Option 1 — Configure via the Gemini CLI

Run the following command in your terminal:

bash
gemini mcp add --transport http <server-name> "[NGROK_FORWARDING_URL]/mcp"

Use /mcp in the Gemini CLI terminal to view your recently added MCP server status and discovered tools.

Option 2 — Configure via settings.json directly

MCP servers used by Gemini CLI are configured in settings.json. More details here.

  1. Open ~/.gemini/settings.json (user) or .gemini/settings.json (project).
  2. Add your server under mcpServers:
json
{
  "mcpServers": {
    "<server-name>": {
      "httpUrl": "[NGROK_FORWARDING_URL]/mcp"
    }
  }
}
  1. Restart the Gemini CLI (or start a new session), then run /mcp to confirm it's connected.

Cursor stores MCP servers configuration through a mcp.json file. More details here.

  1. Open (or create) your mcp.json file.
  2. Add this MCP server right under mcpServers:
json
{
  "mcpServers": {
    "<server-name>": {
      "type": "http",
      "url": "[NGROK_FORWARDING_URL]/mcp"
    }
  }
}
  1. Once saved, Cursor Agent automatically uses this MCP server tools when relevant.

VS Code stores MCP servers configuration in a mcp.json file. More details here.

  1. Open (or create) your .vscode/mcp.json file.
  2. Add this MCP server under servers:
json
{
  "servers": {
    "<server-name>": {
      "type": "http",
      "url": "[NGROK_FORWARDING_URL]/mcp"
    }
  }
}
  1. Once you have added the MCP server, you can use its tools in the Chat view (⌃⌘I).

MCP servers added to Claude Code are stored in ~/.claude.json. More details here.

To install this MCP server, run the following command in your terminal:

bash
claude mcp add --transport http <server-name> "[NGROK_FORWARDING_URL]/mcp"

In the Claude Code terminal UI, use /mcp to view actively connected MCP servers. You should see your recently connected MCP server and can use it right away.

  1. Open the side panel and expand Intelligence > Connectors
  2. Click + Add Connector on the right side of the page
  3. In the MCP Connectors directory, click the Custom MCP Connector tab
  4. Enter a Connector Name and the following Connector Server URL: [NGROK_FORWARDING_URL]/mcp
  5. Finish configuring your connector and click Create
  6. To use the connector, click the Tools button below the chat input and enable it in the Connectors section.

MCP configuration for Codex is stored in ~/.codex/config.toml and is shared between the CLI and the IDE extension.

Option 1 — Configure via the Codex CLI

Run the following command in your terminal:

bash
codex mcp add <server-name> --url "[NGROK_FORWARDING_URL]/mcp"

Option 2 — Modify the Codex config file directly

  1. Open ~/.codex/config.toml.
  2. Add the following snippet to your config.toml file:
toml
[mcp_servers."<server-name>"]
url = "[NGROK_FORWARDING_URL]/mcp"

In the Codex terminal UI, use /mcp to view actively connected MCP servers. You should see your recently connected MCP server and can use it right away.

Theming

Flowbite theming allows you to update the appearance of the UI components by updating the index.css styles.

Here are a couple of predefined styles (default, minimal, enterprise, playful, and mono) from Flowbite:

css
/* choose one of the following */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import "flowbite/src/themes/default";

/* MINIMAL THEME
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import "flowbite/src/themes/minimal";
*/

/* ENTERPRISE THEME
@import url('https://fonts.googleapis.com/css2?family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import "flowbite/src/themes/enterprise";
*/

/* PLAYFUL THEME
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap');
@import "flowbite/src/themes/playful";
*/

/* MONO THEME
@import "flowbite/src/themes/mono";
*/

Resources

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "themesberg-mcp-ui-starter": {
      "command": "",
      "args": []
    }
  }
}

将 MCP UI by Flowbite MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 MCP UI by Flowbite 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 在 TypingMind 中,您可以使用远程托管的 MCP 服务器的 URL 连接此 MCP 服务。

添加 MCP 服务器 URL

如果 MCP UI by Flowbite 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 您的服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 您的服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 MCP UI by Flowbite 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接处于可用状态。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认列表中的 MCP UI by Flowbite 连接显示为可用状态。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 MCP UI by Flowbite 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 MCP UI by Flowbite 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MCP UI by Flowbite 帮我完成这项任务吗?
MCP UI by Flowbite
当然,我看过了。
以下是我使用 MCP UI by Flowbite 得到的结果。

常见问题

MCP UI by Flowbite MCP 服务器有什么用途?

MCP UI by Flowbite 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 MCP UI by Flowbite MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 MCP UI by Flowbite。

为什么在 TypingMind 中使用 MCP UI by Flowbite MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 MCP UI by Flowbite 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 MCP UI by Flowbite MCP 连接到 TypingMind?

要连接 MCP UI by Flowbite,请在 TypingMind 中添加该远程 MCP 服务器的 URL。如果您希望在 TypingMind 工作区中使用远程 MCP 连接,这种方式很适合。

MCP UI by Flowbite MCP 在 TypingMind 中提供哪些工具?

MCP UI by Flowbite 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 MCP UI by Flowbite MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 MCP UI by Flowbite 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇