@adobe/design-data-mcp

中文文档
1.9.6发布于 2026/11/07Apache-2.0ES Module构建来源已验证近 30 天下载 2157

MCP server for Spectrum design tokens, component schemas, and design guidelines (embedded, offline)

原始使用文档
文档目录8 节
  1. Install in Claude Desktop (Extension)
  2. Setup via npx (Cursor / Claude Desktop manual config)
  3. Cursor
  4. Claude Desktop (manual config)
  5. Staying current
  6. Tools
  7. Testing guideline content
  8. License

@adobe/design-data-mcp

MCP server for Adobe Spectrum design tokens, component schemas, and design guidelines. Runs fully in-process via an embedded Spectrum snapshot — no network access, no CLI binary, and no configuration required.

Install in Claude Desktop (Extension)

Download the latest design-data.mcpb from the releases page and drag it into Claude Desktop → Settings → Extensions.

No API keys or configuration needed. The extension installs and runs offline.

Setup via npx (Cursor / Claude Desktop manual config)

Cursor

Add to .cursor/mcp-servers.json in your project root:

{
  "mcpServers": {
    "design-data": {
      "command": "npx",
      "args": ["-y", "@adobe/design-data-mcp@latest"]
    }
  }
}

Claude Desktop (manual config)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "design-data": {
      "command": "npx",
      "args": ["-y", "@adobe/design-data-mcp@latest"]
    }
  }
}

Staying current

The embedded Spectrum snapshot is baked into the wasm at build time and travels with the package version — there's no separate data update to run. Pin @latest (as above) so npx fetches the newest published version rather than reusing whatever it last cached; -y alone only skips the install confirmation, it doesn't force a re-fetch. Call design-data-primer and check provenance.designDataVersion to see which dataset version is embedded. design-data-primer also does a best-effort check against the latest published @adobe/spectrum-design-data version — if the embedded dataset is behind, it adds a provenance.datasetStatus field and logs a one-line warning to stderr. This is silent on any network failure (offline/air-gapped use is unaffected); set DESIGN_DATA_SKIP_VERSION_CHECK=1 to disable the check entirely.

Tools

ToolDescription
design-data-primerSession-start overview: token count, mode-sets, components, guidelines, provenance
design-data-queryFilter tokens by query expression (component=button, property=color-*)
design-data-suggestNatural-language token suggestions with Jaccard similarity confidence scores
design-data-componentFull component schema (variants, sizes, states, props) by kebab-case ID
design-data-component-searchSearch components by name, description, or docs text; returns id, category, snippet
design-data-resolveResolve a token's concrete value for a mode context (colorScheme, scale, contrast)
design-data-guideline-listList available Spectrum design guideline pages, optionally filtered by category
design-data-guidelineFull guideline document by slug ID (purpose, rules, accessibility, examples)

Testing guideline content

Run moon run design-data-mcp:test. For the content contracts only, after moon run sdk-wasm:build, run:

pnpm --filter @adobe/design-data-mcp exec ava test/bundle-smoke.test.js test/ensure-bundle.test.js

The smoke suite generates a fresh, private MCPB staging tree for each run and calls the guideline tools over stdio with a minimal environment. Import guards reject ESM imports and CommonJS requires outside that tree. Catalog assertions compare against the current canonical manifest, not a fixed guideline count; every guideline response must equal its checked-in JSON. Helper tests seed stale data and verify that regeneration replaces it and removes orphan files. The tests remove all private staging trees afterward.

These tests check transport, packaging, and content delivery. They do not assess how a model interprets the guidance.

License

Apache-2.0 — see the project repository for details.

版本与发布记录

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

版本发布日期距今
1.9.6latest2026/11/07今天
1.9.52026/11/07今天
1.9.42026/11/052 天前
1.9.32026/11/052 天前
1.9.22026/11/052 天前
1.9.12026/11/052 天前

其他发布通道:beta → 1.8.0-beta.2,size-token-taxonomy → 0.0.0-size-token-taxonomy-20261029173424。

关于 @adobe/design-data-mcp 的常见问题

@adobe/design-data-mcp 是什么?

MCP server for Spectrum design tokens, component schemas, and design guidelines (embedded, offline)

如何安装 @adobe/design-data-mcp?

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

@adobe/design-data-mcp 支持 TypeScript 吗?

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

@adobe/design-data-mcp 支持 ESM 还是 CommonJS?

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

@adobe/design-data-mcp 需要什么版本的 Node.js?

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

@adobe/design-data-mcp 可以商用吗?

@adobe/design-data-mcp 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@adobe/design-data-mcp 的下载量有多少?

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

@adobe/design-data-mcp 还在维护吗?

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