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

@adobe/leonardo-mcp

v0.1.0

Published

MCP server for @adobe/leonardo-contrast-colors — generate themes, check contrast, convert colors

Readme

@adobe/leonardo-mcp

npm version license Pull requests welcome

An MCP (Model Context Protocol) server that exposes @adobe/leonardo-contrast-colors as tools. Use it from Cursor, Claude Desktop, or any MCP client to generate contrast-based themes, check WCAG contrast, convert colors, and create palettes without writing code.

Quick start

Run once (no install):

npx @adobe/leonardo-mcp

Install and use as a binary:

npm i @adobe/leonardo-mcp
leonardo-mcp

The server runs over stdio. Configure your MCP client to start this command; see Configuration below.

Tools

generate-theme

Generate a contrast-based color theme. Returns theme.contrastColors-style JSON ready for design tokens or CSS variables.

| Parameter | Type | Required | Description | | ----------------- | ------ | -------- | ------------------------------------------------------------------------- | | colors | array | yes | List of color definitions (name, colorKeys, ratios, optional colorspace). | | backgroundColor | object | yes | Background color definition (same shape as a color in colors). | | lightness | number | yes | 0–100; background lightness. | | contrast | number | no | Multiplier for all ratios (default 1). | | saturation | number | no | 0–100 (default 100). | | output | string | no | Output format: HEX, RGB, HSL, LCH, etc. (default HEX). | | formula | string | no | wcag2 (default) or wcag3 (APCA). |

Example input:

{
  "colors": [{"name": "blue", "colorKeys": ["#5CDBFF", "#0000FF"], "ratios": [3, 4.5]}],
  "backgroundColor": {"name": "gray", "colorKeys": ["#cacaca"], "ratios": [2, 3, 4.5, 8]},
  "lightness": 97
}

check-contrast

Check contrast between a foreground and background color. Returns ratio and WCAG 2 AA/AAA (and large text) pass/fail, or APCA Lc when method is wcag3.

| Parameter | Type | Required | Description | | ------------ | ------ | -------- | ----------------------------- | | foreground | string | yes | CSS color (e.g. #000000). | | background | string | yes | CSS color (e.g. #ffffff). | | method | string | no | wcag2 (default) or wcag3. |

convert-color

Convert a color value to another format (HEX, RGB, HSL, LCH, OKLCH, etc.).

| Parameter | Type | Required | Description | | --------- | ------ | -------- | ------------------------------------------------------------------------------------------------------ | | color | string | yes | Any valid CSS color string. | | format | string | yes | Target format: HEX, RGB, HSL, HSV, HSLuv, LAB, LCH, OKLAB, OKLCH, CAM02, CAM02p. |

create-palette

Create an interpolated color scale from color keys (no contrast targeting).

| Parameter | Type | Required | Description | | --------------------- | ------- | -------- | ---------------------------------------------------------------------------------- | | colorKeys | array | yes | Array of CSS color strings. | | colorspace | string | no | Interpolation space (default LAB). Same options as interpolation in the library. | | steps | number | yes | Number of swatches (min 2). | | smooth | boolean | no | Bezier smoothing (default false). | | shift | number | no | Shift factor (default 1). | | fullScale | boolean | no | Use full scale (default true). | | distributeLightness | string | no | linear (default) or polynomial. | | sortColor | boolean | no | Sort by lightness (default true). |

Configuration

Cursor

Add to .cursor/mcp.json (or Cursor settings → MCP):

Using the published package (recommended):

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

From repo (development):

{
  "mcpServers": {
    "leonardo": {
      "command": "node",
      "args": ["packages/mcp/src/cli.js"]
    }
  }
}

See the repo’s example when working inside the Leonardo monorepo.

Claude Desktop

In claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

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

Related

  • @adobe/leonardo-contrast-colors — Core library; use directly in Node or the browser.
  • Leonardo web app — Interactive theme and scale builder.
  • Agent Skillskills/leonardo-colors/ in this repo for Cursor/Codex; install with npx skills add https://github.com/adobe/leonardo.

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Development

From the repo root (with pnpm):

pnpm --filter @adobe/leonardo-mcp test

Or via moon:

moon run mcp:test

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.