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

@parlancelabs/mcp-server

v1.0.0

Published

MCP server for parlance — give AI agents and tools first-class access to your design-to-code contracts, glossaries and accessibility audits.

Readme

Parlance MCP Server

The single source of agreement between design and development.

Exposes Parlance design contracts and glossary as MCP tools for any AI coding assistant — including Claude Code, Cursor, VS Code Copilot, Windsurf, Cline, and more — so AI has full awareness of your design system contracts while generating code.

Installation

Published on npm — no clone or build required. Run it straight from the registry with npx:

npx @parlancelabs/mcp-server

Or install it globally:

npm install -g @parlancelabs/mcp-server

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | PARLANCE_API_KEY | Yes | — | Your Parlance API key | | PARLANCE_API_URL | No | https://api.parlancelabs.net | Parlance API base URL |

Configuration

Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "parlance": {
      "command": "npx",
      "args": ["-y", "@parlancelabs/mcp-server"],
      "env": {
        "PARLANCE_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor

Open Cursor Settings → MCP → Add Server:

{
  "mcpServers": {
    "parlance": {
      "command": "npx",
      "args": ["-y", "@parlancelabs/mcp-server"],
      "env": {
        "PARLANCE_API_KEY": "your-api-key"
      }
    }
  }
}

Or add to ~/.cursor/mcp.json.

VS Code Copilot / Windsurf / Cline

All three use the same .mcp.json format. Place the file in your project root or workspace settings directory:

{
  "mcpServers": {
    "parlance": {
      "command": "npx",
      "args": ["-y", "@parlancelabs/mcp-server"],
      "env": {
        "PARLANCE_API_KEY": "your-api-key"
      }
    }
  }
}

Tools Reference

Read Tools

list_projects

Returns all Parlance projects accessible with your API key.

Parameters: none

Example response:

[
  {
    "id": "proj_abc123",
    "name": "Design System 2.0",
    "description": "Core component library",
    "platforms": ["web", "ios"]
  }
]

get_contracts

Returns all component contracts for a project.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID |


get_contract_detail

Returns the full specification for a single contract.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | contractId | string | Contract ID |


get_glossary

Returns all design tokens / glossary terms for a project.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID |


validate_component

Reads a local component file and validates it against the matching Parlance contract. Uses fuzzy name matching.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | contractName | string | Contract name (fuzzy matched) | | filePath | string | Absolute path to component file |

Example response:

{
  "result": "fail",
  "contract": "Button",
  "violations": [
    { "type": "missing_state", "detail": "Interaction state \"disabled\" not detected" },
    { "type": "missing_a11y", "detail": "Accessibility pattern \"aria attributes\" not found" }
  ]
}

run_accessibility_audit

Runs a regex-based WCAG audit on a local component file. Checks 6 rules: img-alt, aria-click-role, aria-input-label, heading-order, keyboard-mouse-only, touch-target.

Parameters: | Name | Type | Description | |---|---|---| | filePath | string | Absolute path to component file |

Example response:

{
  "total": 2,
  "errors": 1,
  "warnings": 1,
  "issues": [
    {
      "rule": "img-alt",
      "severity": "error",
      "line": 12,
      "message": "<img> element is missing an alt attribute",
      "wcag_ref": "WCAG 1.1.1 Non-text Content (Level A)"
    }
  ]
}

Write Tools

create_contract

Creates a new component contract.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | name | string | Contract name | | description | string | Contract description | | category | atom | molecule | organism | template | Component category | | status | proposed | agreed | divergent | Status (default: proposed) |


update_contract

Updates an existing contract. All fields except projectId and contractId are optional.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | contractId | string | Contract ID | | name | string? | New name | | description | string? | New description | | category | enum? | New category | | status | enum? | New status |


delete_contract

Deletes a contract. Returns { deleted: true, contractId }.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | contractId | string | Contract ID |


create_glossary_term

Creates a new design token / glossary term.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | name | string | Token name | | raw_value | string | Token value | | category | string? | Token category |


update_glossary_term

Updates an existing glossary term.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | termId | string | Term ID | | name | string? | New name | | raw_value | string? | New value | | category | string? | New category |


delete_glossary_term

Deletes a glossary term. Returns { deleted: true, termId }.

Parameters: | Name | Type | Description | |---|---|---| | projectId | string | Parlance project ID | | termId | string | Term ID |


Resources

| URI | Description | |---|---| | parlance://projects | All projects as JSON | | parlance://glossary/{projectId} | Glossary for a project as JSON |

Troubleshooting

Server won't start

  • Ensure PARLANCE_API_KEY is set in the env block of .mcp.json
  • Ensure args is ["-y", "@parlancelabs/mcp-server"] and that npx can reach npm
  • Run npm run build if you haven't built yet

Tools return "Error: HTTP 401"

  • Your API key is invalid or expired — check your Parlance account

Tools return "Error: HTTP 404"

  • The project ID or contract ID doesn't exist — use list_projects and get_contracts to find valid IDs

Build fails

  • Run npm install first, then npm run build
  • Requires Node.js 18 or later

Development

npm run watch        # TypeScript watch mode
npm run inspector    # Open MCP inspector UI