Uwarp

io.github.sherotree由 GitHub 账号 sherotree 发布v1.0.0更新于 Oct 24, 2026

WCAG contrast checks, HSL palettes with :root CSS, and search of 500+ free Uwarp UI tools.

已验证STDIO仅桌面开发者工具媒体与设计

概览

AI 生成的概览

Uwarp 的本地 MCP 服务器,可检查 WCAG 对比度、生成带 :root CSS 的 HSL 调色板,并检索内置的 UI 工具目录。

可以做什么
  • 检查两种十六进制颜色之间的 WCAG 2.x 对比度,并给出普通文字与大号文字的 AA/AAA 判定
  • 生成 HSL 和谐配色(类似色、互补色、三角色、单色),输出颜色名称与可直接粘贴的 :root CSS
  • 按关键词检索内置的 Uwarp UI 工具目录,可按分类筛选并限制返回数量
适用场景
适合在 Cursor 或 Claude Desktop 等编辑器中做界面开发或评审时,快速做无障碍对比度检查、生成配色方案,或在不离开对话的情况下查找 Uwarp 工具条目。
运行要求
需要 Node.js 18 或更高版本;以 stdio 方式在本机运行,通常通过 npx 或构建后的 dist 入口启动。无需 API 密钥或账号;UWARP_API_KEY 变量为预留项,目前被忽略。
安装前请注意
工具检索只读取内置的少量示例目录(约 28 条),运行时不会访问 uwarp.design,因此结果有限且可能过时。对比度与配色计算完全在本机完成,目前不索取任何凭据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Uwarp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

uwarp-mcp

[sherotree/uwarp-mcp MCP server]

MCP server for Uwarp — a directory of 500+ free browser UI tools.

This package exposes three local tools you can use from Cursor or Claude Desktop. No paid API key is required. Most Uwarp listings are third-party embeds; this server does not scrape or wrap them. Contrast and palette math run entirely on-device; search_tools reads a bundled local catalog (data/tools.json).

ToolPurpose
check_contrastWCAG 2.x contrast ratio + AA/AAA flags
generate_paletteHSL harmony palettes + :root CSS
search_toolsSearch the local Uwarp tool catalog

Author / context: Sherotree · https://uwarp.design · MIT


Install via npx

No clone needed. Add to your MCP client config (Cursor mcp.json, Claude Desktop, etc.):

json
{  "mcpServers": {    "uwarp": {      "command": "npx",      "args": ["-y", "uwarp-mcp"]    }  }}

Requirements

  • Node.js 18+

Install & build

bash
cd /path/to/uwarp-mcpnpm installnpm run build

Test

bash
npm test

Includes a check that black-on-white contrast ≈ 21.

Run locally (stdio)

bash
npm start# or during development:npm run dev

The process speaks MCP over stdio (JSON-RPC on stdin/stdout). Log noise goes to stderr.

Optional env stub

VariableNotes
UWARP_API_KEYReserved for a future Uwarp API. Ignored today — no paid key needed.

Cursor (mcp.json)

Add to your Cursor MCP config (e.g. ~/.cursor/mcp.json or project .cursor/mcp.json). Point args at the built entry after npm run build:

json
{  "mcpServers": {    "uwarp": {      "command": "node",      "args": ["/ABSOLUTE/PATH/TO/uwarp-mcp/dist/index.js"]    }  }}

Example if the project lives at ~/code/uwarp-mcp (use the absolute path):

json
{  "mcpServers": {    "uwarp": {      "command": "node",      "args": ["/Users/you/code/uwarp-mcp/dist/index.js"]    }  }}

Restart Cursor (or reload MCP servers) after saving.


Claude Desktop

Edit the Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{  "mcpServers": {    "uwarp": {      "command": "node",      "args": ["/ABSOLUTE/PATH/TO/uwarp-mcp/dist/index.js"]    }  }}

Restart Claude Desktop after saving.


Tool reference

check_contrast

Input

FieldTypeDescription
foregroundstringHex #RGB / #RRGGBB
backgroundstringHex #RGB / #RRGGBB

Output

json
{  "ratio": 21,  "aa_normal": true,  "aa_large": true,  "aaa_normal": true,  "aaa_large": true}

Uses WCAG 2.x relative luminance and contrast ratio thresholds (AA normal ≥ 4.5, AA large ≥ 3, AAA normal ≥ 7, AAA large ≥ 4.5).

generate_palette

Input

FieldTypeDefaultDescription
seedstring—Seed hex
harmonyanalogous | complementary | triadic | monoanalogousHarmony mode
countnumber6Colors, 3–12

Output

json
{  "colors": [{ "name": "Mid Blue", "hex": "#3b82f6" }],  "css": ":root {\n  --color-1: #3b82f6; /* Mid Blue */\n}"}

search_tools

Input

FieldTypeDefaultDescription
querystring—Search text
categorystring—Optional filter (e.g. color, svg-generators)
limitnumber8Max results, 1–20

Output

json
{  "tools": [    {      "name": "Contrast Checker",      "summary": "…",      "url": "https://uwarp.design/tools/contrast-checker",      "category": "color"    }  ]}

Note: search_tools uses the local catalog in data/tools.json (sample entries for development). It does not scrape uwarp.design at runtime.


Project layout

uwarp-mcp/├── data/tools.json          # Local Uwarp catalog (~28 samples)├── src/│   ├── index.ts             # MCP stdio entry│   └── tools/│       ├── check_contrast.ts│       ├── generate_palette.ts│       └── search_tools.ts├── tests/├── dist/                    # After npm run build├── package.json├── tsconfig.json├── LICENSE└── README.md

License

MIT © Sherotree / Uwarp

来源:README.md,提交 2788dee

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Oct 15, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分