list_palettes
列出配色库中的配色,可按平台(app / web / miniapp)与标签过滤。返回名称、slug、主色、场景与标签。
taglimitplatform
io.github.yang7206由 GitHub 帳號 yang7206 發布v1.3.0更新於 Oct 24, 2026
Curated app, web and mini program color palettes with WCAG contrast and CSS variables.
PaletteGet 為助理提供經 WCAG 檢核的 UI 配色庫,可查角色色值、對比度,並產生可直接貼上的 CSS 或各平台程式碼。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.yang7206%2Fpaletteget/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"paletteget": {
"type": "http",
"url": "https://paletteget-mcp.y7206062.workers.dev/mcp"
}
}
}An MCP server for the PaletteGet color palette library: 100 palettes across App, Web and Mini App UIs, each organized into 10 design roles and checked against WCAG contrast requirements.
It exists so your AI coding tool stops inventing hex values. Instead of guessing, the model calls a tool and gets the real role colors, the measured contrast ratios, and the pairing advice that ships with the palette.
No API key, no sign-up.
ChatGPT: Settings → Connectors → Add custom connector → paste the URL.
The hosted server embeds the dataset at deploy time, so it never depends on the site being reachable and answers in a few milliseconds.
Behind a proxy, set PALETTEGET_PROXY=http://127.0.0.1:7897 in the server's env block.
The stdio server fetches live data from the public JSON endpoints and caches it for 10 minutes.
Example call and result:
Behind a firewall, Node's built-in fetch ignores the usual proxy variables, so set
PALETTEGET_PROXY explicitly.
The smoke test speaks the MCP stdio protocol directly and exercises every tool against a local
fixture, so it runs offline. Point PALETTEGET_API at the live site to test against production.
The worker (worker.mjs) is a hand-written, stateless subset of MCP Streamable HTTP
(initialize, tools/list, tools/call, ping) with no SDK dependency, which keeps it small and
Workers-native.
build-data.mjs reuses the site's own i18n modules through alias-hooks.mjs, so names, scenes and
advice stay identical to the published site. data/ is generated at build time and never committed.
Code is MIT (see LICENSE). Palette data comes from paletteget.com and
may be reused freely in personal and commercial projects; a credit link is appreciated.
Machine-readable forms of the same data, if you would rather skip MCP entirely:
https://paletteget.com/api/index.jsonhttps://paletteget.com/palette-list/{platform}/{slug}/index.jsonhttps://paletteget.com/palette-list/{platform}/{slug}/index.csshttps://paletteget.com/llms.txt來源:README.md,提交 cf70d2b
列出配色库中的配色,可按平台(app / web / miniapp)与标签过滤。返回名称、slug、主色、场景与标签。
taglimitplatform取某一套配色的完整数据:角色色值(主色 / 功能色 / 中性色)、对比度、人工搭配建议。
slug必填platform按自然语言关键词推荐配色(中英文均可),例如「护眼的深色记账 App」「清新博客」。会说明每个结果命中了什么。
limitquery必填platform取一套配色的 CSS 自定义属性(可直接粘进项目),含语义化变量名。
slug必填platform算两个颜色之间的 WCAG 对比度,并同时给出正文级(4.5 / 7)与大字级(3 / 4.5)两套判定。适合在把配色写进代码前先验一遍。
background必填foreground必填给一个背景色,返回一组可读的文字色候选(同色相的极浅与极深版 + 纯黑白参照),按对比度降序,标出推荐项与 AA / AAA 判定。
limitbackground必填取一套配色的可直接粘贴代码片段,按目标平台生成:Android colors.xml、iOS UIColor、Flutter Color、小程序 wxss、CSS 变量、SCSS 变量、Tailwind 配置。
langslug必填target必填platform从一个基准色生成 50 到 900 的 10 级色阶(500 等于基准色本身),每阶附白字与黑字的实测对比度;format 可取 list / json / css / tailwind。
color必填format把一套浅色配色推导成深色版本:按固定规则重排明度与饱和度,并返回每对颜色的实测对比度。可用 slug 取库里配色,也可直接传 roles。
slugrolesplatform已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在儲存庫或註冊中心條目中宣告授權條款。
https://paletteget-mcp.y7206062.workers.dev/mcp{ "mcpServers": { "paletteget": { "type": "http", "url": "https://paletteget-mcp.y7206062.workers.dev/mcp" } }}npx -y paletteget-mcp{ "mcpServers": { "paletteget": { "command": "npx", "args": ["-y", "paletteget-mcp"] } }}git clone https://github.com/yang7206/paletteget-mcp.gitcd paletteget-mcpnpm install{ "mcpServers": { "paletteget": { "command": "node", "args": ["/absolute/path/to/paletteget-mcp/index.mjs"] } }}suggest_palette { "query": "dark finance dashboard", "limit": 2 }
- Ink Blue Night / 墨蓝夜(app,分 94) slug: mo-lan-ye 主色: #4c8df6 场景: Finance & analytics apps (dark mode) 命中: 标签:dark, 场景:financenpm run smoke# 1. Regenerate the embedded dataset (run both locales)SITE_URL=https://paletteget.com SITE_LOCALE=zh node --import ./alias-loader.mjs build-data.mjsSITE_URL=https://paletteget.com SITE_LOCALE=en node --import ./alias-loader.mjs build-data.mjs
# 2. Local checknpx wrangler dev # POST JSON-RPC to http://127.0.0.1:8787/mcp
# 3. Deploy (needs CLOUDFLARE_API_TOKEN with Workers Scripts:Edit)npx wrangler deploy