npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

designparser-mcp

v2.3.0

Published

Design rules as an MCP server — color, typography, spacing, UX laws, and more. By designparser.

Downloads

406

Readme

designparser-mcp

Design rules as an MCP server. Connect Claude, Cursor, or Windsurf to a structured, evidence-backed design knowledge base — and get design guidance directly in your AI workflow.

By designparserParsed, not guessed.


What it does

77 design rules across 14 categories, available as AI tools. Every rule has a TL;DR, practical guidance with concrete values, key numbers, and verifiable sources.

Example:

"I'm designing a mobile navigation. What rules apply?" → returns touch-target minimums, Miller's Law, Hick's Law, WCAG navigation requirements — prioritized, with practical CSS values and sources

Categories: color · typography · spacing · layout · shadows · ux-laws · interaction · icons · visual · motion · forms · navigation · media · print


Install — Claude Desktop

Add to your claude_desktop_config.json:

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

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Windows (Store): %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

Restart Claude Desktop. Done.


Install — Cursor / Windsurf

Add a new MCP server: command npx, args ["-y", "designparser-mcp"].


Install — Local / Development

git clone https://github.com/designparser/designparser-mcp
cd designparser-mcp
npm install
npm run build
npm run validate

Point Claude Desktop to your local build:

{
  "mcpServers": {
    "designparser": {
      "command": "node",
      "args": ["/absolute/path/to/designparser-mcp/dist/src/index.js"]
    }
  }
}

Tools

| Tool | Description | |---|---| | list_rules | Browse all rules — filter by category, priority, or tags | | get_rule | Full rule — deep dive, key numbers, sources, video links | | get_rules_batch | Full deep-dive for multiple rules in one call (max 8) | | search_rules | Fuzzy search across all rules and content | | suggest_rules_for_context | Describe your design task → get the relevant rules with practical guidance | | evaluate_design | Describe a UI or paste HTML/CSS → prioritized audit checklist with fixes |

All tools are read-only (readOnlyHint: true) — no side effects.


Getting the best results

Claude sometimes answers design questions from training data instead of the MCP — especially for well-known topics like WCAG or typography basics.

To force Claude to always use the knowledge base, add this to your Claude Desktop system prompt (Settings → Custom Instructions):

For any question about design, typography, color, spacing, contrast, accessibility, or UX — always use the designparser MCP tools (search_rules, get_rule, suggest_rules_for_context) to answer. Always cite the rule ID.

How to tell if the MCP was used: Claude will show tool calls in the response and cite rule IDs like wcag-contrast or touch-target. If it answers without any tool badges, it used training data.


Usage examples

// Browse all critical rules
"What are the most important rules I should never break?"
→ list_rules priority="critical"

// Browse by category
"Show me all typography rules"
→ list_rules category="typography"

// Browse by tag
"Show me all accessibility rules"
→ list_rules tags=["accessibility"]

// Lookup
"What are the WCAG contrast requirements?"
→ get_rule "wcag-contrast"

// Batch lookup — get multiple rules at once
→ get_rules_batch ids=["wcag-contrast", "touch-target", "millers-law"]

// Search
"What does research say about touch targets?"
→ search_rules "touch target"

// Context-aware — returns rules with practical guidance inline
"I'm designing a mobile navigation bar. What rules apply?"
→ suggest_rules_for_context "mobile navigation bar"

// Evaluate
"Here's my button CSS — what am I getting wrong?"
[paste CSS]
→ evaluate_design

// Focused audit
"I'll describe what I see in this dashboard screenshot — audit accessibility"
→ evaluate_design focus="accessibility"

How suggest_rules_for_context works

Describe what you're designing and the tool returns the most relevant rules — ranked by priority, with TL;DR, practical guidance (→), and key numbers inline. No follow-up get_rule calls needed for most tasks.

suggest_rules_for_context example — mobile checkout form


How evaluate_design works

Describe the design (or paste HTML/CSS) — the tool returns a prioritized checklist sorted critical → high → medium → low. Each item includes the rule ID, what to check, the practical fix, and the key number where applicable.

Claude applies the checklist to your actual design. The MCP provides the knowledge; the AI does the evaluation. No fake scoring.

evaluate_design example — mobile app audit


Rules

All rules are in rules/<category>/<rule-id>.md. Each rule includes:

| Field | Description | |---|---| | id | Kebab-case identifier | | title | Rule name | | category | One of 14 categories | | priority | critical / high / medium / low | | tldr | One-sentence summary | | tags | Platform and context tags for better search and filtering | | related_rules | IDs of related rules | | sources | Verifiable references with year | | Body sections | The Rule · Why · When It Breaks · In Practice · Key Numbers |


Contributing

This is a community project. The code is open, the rule content is curated by designparser.

Ways to contribute:

  • Suggest a rule — open an issue with the "Suggest a rule" template
  • Report an error — open a "Bug report" issue with the rule ID
  • Submit a rule — copy RULE_TEMPLATE.md, follow the checklist, open a PR
  • Improve the code — search, tools, CI — open an issue first for larger changes

Every PR runs automated validation — schema errors block merging, so check locally first with npm run validate.

See CONTRIBUTING.md for full details.


License

Code: MIT Rule content: © designparser — see LICENSE

Rules may be used freely in your own projects. They may not be republished as standalone datasets.


Made by designparser