Atlas / MCP servers / donaldrichard19-lvd / pattern-mcp

pattern-mcpBLOCK

mcp/donaldrichard19-lvd/pattern-mcp

Pattern checks a coding agent's UI decisions against your own design system before it builds, whether that lives in code or in Figma. It helps the agent reuse what the product already has and build only what is actually missing. An opt-in enforcement boundary can make that check required, and every

Verdict
BLOCK
Grade
D
Trust score
66 /100
Exposed tools
1 1r · 0w · 0d
Transport
stdio
License
MIT
Stars
9
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/donaldrichard19-LVD/pattern-mcp/actions/workflows/publish.yml) [](https://www.npmjs.com/package/pattern-mcp) [](https://www.npmjs.com/package/pattern-mcp) [](./LICENSE)

Pattern checks a coding agent's UI decisions against your own design system before it builds, whether that lives in code or in Figma. It helps the agent reuse what the product already has and build only what is actually missing. An opt-in enforcement boundary can make that check required, and every decision is recorded in an auditable ledger you can verify later.

Website · npm · Report an issue

Contents (click to expand)

  • Install · What Pattern Does · How it works · Quick Start · Recommended workflow · Try it · Validation examples
  • Enforcement boundary: hook + CI gate (require the call, don't just log it)
  • Core tools (on by default -- see Tool tiers): register_design_system · recommend_component · extract_requirements · verify_component · record_component_decision
  • Advanced tools (PATTERN_TOOLS=full): get_figma_evidence · read_ledger · [report_build_cost](#tool-report_bu
Read from source at commit e08425db2c67OBSERVED · 2026-10-10
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add pattern-website --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env FIGMA_ACCESS_TOKEN=${FIGMA_ACCESS_TOKEN} --env FIGMA_FILE_KEY=${FIGMA_FILE_KEY} --env GITHUB_TOKEN=${GITHUB_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "pattern-website": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
        "FIGMA_ACCESS_TOKEN": "${FIGMA_ACCESS_TOKEN}",
        "FIGMA_FILE_KEY": "${FIGMA_FILE_KEY}",
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}
03

Exposed tools (1)

1 read · 0 write · 0 destructive.

ToolRiskDescription
Buttonread
04

Trust audit

BLOCKgrade D · trust 66/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (4 observation(s))
Network
declared (10 observation(s))
Shell
declared (7 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (15)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
scripts/verify-gate-workflow.mjs:60
const many = exec(["src/A.tsx", ".github/workflows/pattern-gate.yml", ".pattern/receipts/x.json", "website/components/B.tsx"].join("\n"));
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
scripts/verify-gate-workflow.mjs:67
const evil = exec([`src/a$(touch ${pwned}).tsx`, "src/b;touch " + pwned + ".tsx", "src/ok name.tsx"].join("\n"));
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMFilesystem / path · fs.system_paths · CWE-22, CWE-59
scripts/verify-design-system-registration.mjs:326
arguments: { replace: true, project_id: "escape-project", manifest_path: "/etc/hosts" },
MEDIUMFilesystem / path · fs.system_paths · CWE-22, CWE-59
scripts/verify-ledger-file-path-attach.mjs:136
for (const bad of ["/etc/passwd", "../outside.tsx", "   "]) {
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/verify-cli-doctor.mjs:63
const env = { ...process.env, FIGMA_API_URL: `http://127.0.0.1:${srv.address().port}`, FIGMA_ACCESS_TOKEN: GOOD, HOME: home };
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/verify-client-connect.mjs:56
PATTERN_ANTHROPIC_URL: "http://127.0.0.1:9",
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/verify-client-connect.mjs:109
env: { ...process.env, PATTERN_TELEMETRY: "1", PATTERN_POSTHOG_HOST: "http://127.0.0.1:1" },
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/verify-client-connect.mjs:132
env: { ...process.env, PATTERN_TELEMETRY: "1", PATTERN_POSTHOG_HOST: "http://127.0.0.1:1" },
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/verify-design-system-figma.mjs:101
for (const id of u.searchParams.get("ids").split(",")) images[id] = `http://127.0.0.1:${figmaStub.address().port}/img/${encodeURIComponent(id)}.png`;
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/design-system-jev-eval.mjs:115
const key = `${sys}/${f.file}:${createHash("sha1").update(f.content).digest("hex").slice(0, 10)}`;
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/design-system-summaries.ts:32
return createHash("sha1").update(content).digest("hex").slice(0, 10);
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
scripts/verify-design-system-registration.mjs:334
arguments: { replace: true, project_id: "escape-project-2", directory_path: "../../etc" },
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
scripts/verify-ledger-integrity-and-provenance.mjs:246
file_path: "../../../etc/passwd",
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, @posthog/mcp, posthog-node, @types/node, typescript
Why it matters. 5 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
website/package.json
lucide-react, next, posthog-js, react, react-dom, @types/node, @types/react, @types/react-dom
Why it matters. 9 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-10 · audit v0.4.1 · source sha e08425db2c67full audit observations/trust-audit/mcp-server/donaldrichard19-lvd__pattern-mcp.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-10e08425db2c67BLOCKD66first audit
06

Questions

What is the pattern-mcp MCP server?

Pattern checks a coding agent's UI decisions against your own design system before it builds, whether that lives in code or in Figma. It helps the agent reuse what the product already has and build only what is actually missing. An opt-in enforcement boundary can make that check required, and every

What tools does pattern-mcp expose?

1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is pattern-mcp safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (66/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does pattern-mcp need?

It reads ANTHROPIC_API_KEY, FIGMA_ACCESS_TOKEN, FIGMA_FILE_KEY, GITHUB_TOKEN, NEXT_PUBLIC_POSTHOG_KEY, PATTERN_JEV_BATCH_TOKENS, PATTERN_POSTHOG_KEY and TYPESAFE_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does pattern-mcp run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as pattern-website at 0.1.0.

How current is this page?

The grade is for one exact copy of the source (e08425db2c67), read on 2026-10-10. The repository is watched and re-audited when it changes.

Advertisement