PB

polvallverdu/base-ui-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

10 stars 3 forks 质量 82 趋势 26Apache-2.0

向AI助手提供Base UI上下文的MCP服务器——无样式的React组件库.

概览

向AI助手提供Base UI上下文的MCP服务器——无样式的React组件库. 或添加到~/.codex/config.toml(全局) /.codex/config.toml(项目): cursor — 在~/.cursor/ mcp.json(全球)或.cursor/mcp.json(项目)中添加: VS代码——加入.vscode/mcp.json(工作空间)或运行: 更喜欢换跑道? 交换 npx -y @polvallverdu/ base-ui-mcp 用于: 对于JSON/TOML配置,将跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑跑 与任何支持stdio的MCP客户端合作. 所有工具都是唯读和一能的. 服务器根据要求直接从 [[T0] 获取内容—— 任何内容都不是缓存服务器侧.

概述(AI 翻译)

向AI助手提供Base UI上下文的MCP服务器——无样式的React组件库.

□ 安装

克劳德代码 :

代码 CLI :

或向[T0/[T1:

光标 — 添加到 [ [T2] (全球) 或 [ [T3] (项目):

VS代码——添加到 [[T4] (工作空间)或运行 MCP:开放用户配置:

opencode — 添加到 [[T5] :

更喜欢换跑道? 交换[T6]:

  • 运行者 命令 * |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- npx -y @polvallverdu/base-ui-mcp。 [T8] (中文(简体) ). yarn dlx @polvallverdu/base-ui-mcp的线条 [T10] (中文(简体) ).

对于JSON/TOML配置,将跑取器分为[T11]+args。

与任何支持stdio的MCP客户端合作.

□ 工具与资源

{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你说什么? |--------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- - - - - – - - - – - - - - - - - - - - - - - – - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - – - - - - - - - - - - -

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

@polvallverdu/base-ui-mcp

MCP server that gives AI assistants context about Base UI — the unstyled React component library.

Install

Claude Code:

claude mcp add base-ui -- npx -y @polvallverdu/base-ui-mcp

Codex CLI:

codex mcp add base-ui -- npx -y @polvallverdu/base-ui-mcp

Or add to ~/.codex/config.toml (global) / .codex/config.toml (project):

[mcp_servers.base-ui]
command = "npx"
args = ["-y", "@polvallverdu/base-ui-mcp"]

Cursor — add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "base-ui": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@polvallverdu/base-ui-mcp"]
    }
  }
}

VS Code — add to .vscode/mcp.json (workspace) or run MCP: Open User Configuration:

{
  "servers": {
    "base-ui": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@polvallverdu/base-ui-mcp"]
    }
  }
}

opencode — add to opencode.json:

{
  "mcp": {
    "base-ui": {
      "type": "local",
      "command": ["npx", "-y", "@polvallverdu/base-ui-mcp"],
      "enabled": true
    }
  }
}

Prefer a different runner? Swap npx -y @polvallverdu/base-ui-mcp for:

Runner Command
npm npx -y @polvallverdu/base-ui-mcp
pnpm pnpm dlx @polvallverdu/base-ui-mcp
yarn yarn dlx @polvallverdu/base-ui-mcp
bun bunx @polvallverdu/base-ui-mcp

For JSON/TOML configs, split the runner into command + args (e.g. "command": "pnpm", "args": ["dlx", "@polvallverdu/base-ui-mcp"]).

Works with any MCP client that supports stdio.

Tools & resources

Kind Name Purpose
Tool base_ui_list_docs Fetches the Base UI docs index (llms.txt) and lists every page as an identifier you can pass to base_ui_get_doc.
Tool base_ui_get_doc Fetches a single Base UI docs page by path identifier (e.g. react/components/accordion.md).
Resource base-ui://{+path} Same content as base_ui_get_doc, exposed as an MCP resource for clients that prefer resources over tools. Includes list() for discovery.

All tools are read-only and idempotent. The server fetches content directly from https://base-ui.com on demand — nothing is cached server-side.

Remote (legacy)

在 GitHub 查看完整 README

安装

npx -y @polvallverdu/base-ui-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "base-ui": { "type": "stdio", "command": "npx", "args": ["-y", "@polvallverdu/base-ui-mcp"] } } }