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

@decantr/mcp-server

v2.3.0

Published

MCP server for Decantr — exposes design intelligence, packs, and verification to AI coding assistants

Readme

@decantr/mcp-server

npm version npm downloads license MCP compatible

Support status: core-supported
Release channel: stable

Design intelligence for AI-generated UI. Make Claude, Cursor, and Windsurf generate better code.

Decantr MCP demo

  • Structured design context -- gives your AI assistant patterns, layouts, component specs, Brownfield local law, and task-time context instead of letting it guess
  • Evidence-backed repair loops -- gives AI agents Project Health, Evidence Bundles, workspace health, and scoped repair prompts without uploading source
  • Drift detection -- catches when generated code deviates from your design intent
  • Zero config -- run with npx, no API keys or accounts required

Quick Setup

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "decantr": {
      "command": "npx",
      "args": ["@decantr/mcp-server"]
    }
  }
}

Restart Claude Desktop. The Decantr tools will appear automatically.

Cursor

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "decantr": {
      "command": "npx",
      "args": ["@decantr/mcp-server"]
    }
  }
}

Restart Cursor. The tools are available in Agent mode.

Windsurf

Add to your Windsurf MCP config (~/.windsurf/mcp.json):

{
  "mcpServers": {
    "decantr": {
      "command": "npx",
      "args": ["@decantr/mcp-server"]
    }
  }
}

VS Code

Create .vscode/mcp.json in your workspace (or add to your user profile mcp.json):

{
  "servers": {
    "decantr": {
      "command": "npx",
      "args": ["-y", "@decantr/mcp-server"]
    }
  }
}

MCP tools are available in VS Code Copilot Chat agent mode.

Zed

Add to your Zed settings.json:

{
  "context_servers": {
    "decantr": {
      "command": "npx",
      "args": ["-y", "@decantr/mcp-server"],
      "env": {}
    }
  }
}

Continue.dev

Create .continue/mcpServers/decantr.yaml in your workspace:

name: Decantr MCP Server
version: 0.0.1
schema: v1
mcpServers:
  - name: Decantr
    type: stdio
    command: npx
    args:
      - "-y"
      - "@decantr/mcp-server"

MCP tools are only available in Continue.dev agent mode.

Key Tools

The server exposes Decantr registry, context, benchmark, and verification tools. Highlights:

| Tool | Description | Example Input | |------|-------------|---------------| | decantr_create_essence | Generate an Essence spec skeleton from a project description | { "description": "SaaS dashboard with analytics and billing", "framework": "react" } | | decantr_read_essence | Read the current decantr.essence.json from the working directory | {} or { "path": "./custom.essence.json" } | | decantr_validate | Validate an Essence file against the schema and guard rules | { "path": "./decantr.essence.json" } | | decantr_search_registry | Search the community registry for patterns, archetypes, themes, and shells | { "query": "kanban", "type": "pattern" } | | decantr_resolve_pattern | Get full pattern details: layout spec, components, presets, code examples | { "id": "data-table", "preset": "product" } | | decantr_resolve_archetype | Get archetype details: default pages, layouts, features, suggested theme | { "id": "saas-dashboard" } | | decantr_resolve_blueprint | Get a full app composition with page structure and personality traits | { "id": "ecommerce" } | | decantr_suggest_patterns | Given a page description plus optional route/source excerpt, get ranked pattern suggestions | { "description": "recipe feed with avatars and infinite scroll", "route": "/feed" } | | decantr_check_drift | Check if generated code violates the design intent in the Essence spec | { "page_id": "overview", "components_used": ["Card", "LineChart"], "theme_used": "auradecantism" } | | decantr_get_execution_pack | Read compiled scaffold, section, page, review, or mutation execution packs, with hosted fallback when local context is missing | { "pack_type": "page", "id": "overview", "format": "json" } | | decantr_prepare_task_context | Resolve compact route/task context, local law, evidence, and changed-file impact before editing a Brownfield or Essence route | { "route": "/feed", "task": "improve recipe card loading" } | | decantr_compile_execution_packs | Compile a hosted execution-pack bundle from a local or inline essence document | { "path": "./decantr.essence.json", "namespace": "@official" } | | decantr_audit_project | Run the schema-backed Decantr project audit against essence and compiled packs, with hosted fallback when local pack artifacts are missing | { "namespace": "@official" } | | decantr_critique | Critique a file against the compiled review contract, with hosted fallback when local review packs are missing | { "file_path": "./src/pages/Overview.tsx", "namespace": "@official" } | | decantr_get_evidence_bundle | Generate the local privacy-redacted Evidence Bundle for a project | { "project_path": "apps/web" } | | decantr_workspace_health | Discover Decantr projects and return aggregate workspace health | { "workspace_root": ".", "max_projects": 100 } | | decantr_get_repair_prompt | Return the scoped repair prompt for a health finding | { "finding_id": "assertion-contract-context-pack-manifest" } | | decantr_run_health_loop | Run health, evidence, and next repair prompt in one local agent loop | { "project_path": "apps/web" } | | decantr_get_showcase_benchmarks | Read the audited showcase corpus manifest, shortlist, or verification report | { "view": "verification" } |

For the broader product surface and support policy, see the root Decantr docs and package support matrix.

Compatibility

@decantr/mcp-server is stable in the 2.x line for the documented MCP tool surface.

  • new tools may be added in compatible releases
  • existing documented tool names and envelopes should not break without a major version
  • breaking changes to established tool contracts require a major version and migration note

How It Works

An Essence spec (decantr.essence.json) captures your design intent -- archetype, theme, page structure, patterns, and guard rules -- in a single declarative file. The MCP server exposes this spec and the Decantr registry to your AI assistant, giving it concrete layout specs, component lists, and visual treatments instead of relying on the model's generic training data. The result is generated code that follows a coherent design system, and drift detection that catches deviations before they ship.

Example Workflow

Prompt: "Build me a SaaS dashboard with user analytics, a data table of recent signups, and a settings page."

The AI assistant calls these tools behind the scenes:

  1. decantr_create_essence -- generates a spec skeleton matched to the saas-dashboard archetype
  2. decantr_resolve_archetype -- pulls default pages, layouts, and features for a SaaS dashboard
  3. decantr_suggest_patterns -- recommends kpi-grid, chart-grid, data-table, and form-sections for the described pages
  4. decantr_resolve_pattern -- fetches layout specs and component lists for each pattern
  5. decantr_get_execution_pack -- loads the compiled scaffold/page/review packs as the task contract, falling back to hosted compilation when local pack artifacts are missing
  6. decantr_prepare_task_context -- resolves route-local Brownfield context, accepted local law, changed-file impact, visual evidence, and theme inventory before editing an existing app
  7. decantr_compile_execution_packs -- compiles the hosted pack bundle when the task needs a fresh remote contract from the essence document
  8. decantr_check_drift -- validates the generated code against the Essence spec before presenting it
  9. decantr_critique -- critiques a specific file, falling back to the hosted verifier when the local review pack is missing
  10. decantr_audit_project -- runs the stronger project-level audit once the implementation is in place
  11. decantr_get_evidence_bundle -- returns the local evidence bundle for the AI repair loop
  12. decantr_get_repair_prompt -- gives the assistant exact finding evidence, constraints to preserve, and commands to rerun

The AI now generates code with the right layout structure, correct components, and consistent styling, then gets a scoped evidence-backed repair loop instead of a generic guess.

License

MIT