@birdycom/omniacss-mcp

中文文档
0.14.3发布于 2026/11/05MITES Module构建来源已验证近 30 天下载 2314

MCP server for OmniaCSS: lets AI assistants (Claude, Cursor, Copilot …) check, look up and search OmniaCSS classes, variants, color tokens, OmniaUI components and blocks (with their HTML) and docs, and convert Tailwind classes.

原始使用文档
文档目录3 节
  1. Tools
  2. Setup
  3. In code

@birdycom/omniacss-mcp

An MCP server for OmniaCSS. AI assistants such as Claude, Cursor, VS Code Copilot, Windsurf and Zed use it to check OmniaCSS classes before they write them, instead of guessing from Tailwind.

The server is read-only: it never changes your files. Only read_docs goes on the network, and only to omniacss.eu and omniaui.eu.

Tools

ToolWhat it does
getting_startedInstall (CDN, npm + PostCSS/Vite, CLI), dark mode and the rules for writing OmniaCSS markup
lookup_classesChecks classes, variants included (md:hover:…), and OmniaUI oc-* classes. Returns the exact CSS, or the closest correct name for a typo
search_utilitiesFinds classes by name or by CSS ("anchor", "grid cols", "position-area")
list_variantsLists every variant prefix, or shows the selector or at-rule that one variant produces
color_tokensLists the theme tokens (--oc-primary …) with their light and dark colors, and the palette colors (--color-*) with their hex value
convert_tailwindGives the native OmniaCSS class for a Tailwind class, or the CSS that the migrate plugin generates for it
list_componentsFinds OmniaUI components (modal, tabs …) and blocks (pricing, hero, dashboard …) by name or description
get_componentThe reference HTML of one component or block, the packages it needs, and the npx omniaui add command for HTML, React, Vue or Blade
search_docs / read_docsFinds documentation pages and sections on omniacss.eu and omniaui.eu, and reads one as text with its code examples

The class index is the same one the OmniaCSS IntelliSense editor extension uses, built from the same OmniaCSS version. The OmniaUI components and blocks ship with the server, with their HTML. When the project has its own OmniaUI packages installed, those versions are used.

OmniaUI Pro blocks and Pro components are listed by name and description, with the label the docs site shows (Pro, or Free + Pro for a free component with a Pro addition). Their HTML and classes appear only when the project has @birdycom/omniaui-pro installed, which comes with a Pro licence.

Setup

Node.js 22 or newer. The server runs with npx, so there is nothing to install first.

Claude Code

claude mcp add omniacss -- npx -y @birdycom/omniacss-mcp

Claude Desktop, Cursor, Windsurf (claude_desktop_config.json, .cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json)

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

VS Code (.vscode/mcp.json)

{
  "servers": {
    "omniacss": { "type": "stdio", "command": "npx", "args": ["-y", "@birdycom/omniacss-mcp"] }
  }
}

Start the server in your project folder. Most clients do that by default; then OmniaUI packages installed in the project are found.

To pin the server to the OmniaCSS version your project uses, put a version in the package name, for example @birdycom/[email protected].

Once it is connected, ask your assistant something like "Build a pricing card with OmniaCSS; check the classes with the omniacss tools".

In code

import { load } from "@birdycom/omniacss-mcp/knowledge";
const kb = await load();
kb.lookup(["p-1", "md:flx"]);   // [{ token: "p-1", known: true, css: ".p-1 { padding: 1rem; … }" }, { …, hint: 'did you mean "md:flex"?' }]

Docs: https://omniacss.eu/docs/ · MIT

版本与发布记录

@birdycom/omniacss-mcp 共发布 13 个版本,首次发布于 2026/10/30;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.14.3latest2026/11/053 天前
0.14.22026/11/053 天前
0.14.12026/11/044 天前
0.14.02026/11/034 天前
0.13.02026/11/035 天前
0.12.62026/11/025 天前

关于 @birdycom/omniacss-mcp 的常见问题

@birdycom/omniacss-mcp 是什么?

MCP server for OmniaCSS: lets AI assistants (Claude, Cursor, Copilot …) check, look up and search OmniaCSS classes, variants, color tokens, OmniaUI components and blocks (with their HTML) and docs, and convert Tailwind classes.

如何安装 @birdycom/omniacss-mcp?

在项目目录运行 npm install @birdycom/omniacss-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 omniacss-mcp,可以用 npx omniacss-mcp 直接运行。

@birdycom/omniacss-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/birdycom__omniacss-mcp 是否存在。

@birdycom/omniacss-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@birdycom/omniacss-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@birdycom/omniacss-mcp 可以商用吗?

@birdycom/omniacss-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@birdycom/omniacss-mcp 的下载量有多少?

根据 npm 官方下载统计,@birdycom/omniacss-mcp 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,314 次,日均约 77 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@birdycom/omniacss-mcp 还在维护吗?

最新版本 0.14.3 发布于 2026/11/05(3 天前);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/10/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。