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

@salmonui/mcp

v0.4.2

Published

Model Context Protocol server for Salmon UI: lets coding agents list components, search the docs, read component APIs and demos, and check @salmonui imports, from an offline index of the same version.

Readme

@salmonui/mcp

A Model Context Protocol server that lets coding agents (Claude Code, Cursor, Codex, VS Code and any other MCP client) use Salmon UI correctly: find the right package and entry, read component APIs, copy working demo code and check the imports they write.

Everything is answered from an index bundled in the package, built from the docs, the API reference and the demos of the same Salmon UI version. It works offline, sends nothing anywhere and has no runtime dependencies. Requires Node.js 22 or later.

Setup

Pin the version your app uses (@salmonui/[email protected]) so the answers match your @salmonui/* packages; @salmonui/mcp alone runs the latest release.

Claude Code

claude mcp add salmonui -- npx -y @salmonui/mcp

Add --scope project to share it with your team through .mcp.json.

Cursor

.cursor/mcp.json in the project (or ~/.cursor/mcp.json for every project):

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

Codex

codex mcp add salmonui -- npx -y @salmonui/mcp

or in ~/.codex/config.toml:

[mcp_servers.salmonui]
command = "npx"
args = ["-y", "@salmonui/mcp"]

VS Code (GitHub Copilot agent mode)

.vscode/mcp.json in the workspace:

{
  "servers": {
    "salmonui": { "type": "stdio", "command": "npx", "args": ["-y", "@salmonui/mcp"] }
  }
}

Other clients

Run npx -y @salmonui/mcp as a stdio server. On Windows, clients that do not resolve npx themselves need "command": "cmd", "args": ["/c", "npx", "-y", "@salmonui/mcp"].

Tools

| Tool | Arguments | Returns | | --- | --- | --- | | list_components | filter? | Every package and component family: import specifier, stylesheet, components, hooks, one-line description. | | search_docs | query, limit? (1-10, default 3) | The best docs pages with their URL and best matching sections in Markdown. | | get_component | name | A component, hook, function, type or whole family (DataGrid, useToast, date-picker, @salmonui/buttons/menu): import line, stylesheets, props with types, defaults and docs, events, docs links. | | get_example | id? or query? | The full source of a docs demo with its description, plus other matches. | | check_imports | code, stylesheets? | Problems in the @salmonui/* imports of a module: unknown entries or names, private /internal/* modules, removed packages with their replacement, missing @salmonui/core/styles.css or family stylesheets. |

All tools are read-only. The server also sends instructions that tell the agent to import @salmonui/core/styles.css once and to run check_imports on the code it writes.

Protocol

MCP over stdio (newline-delimited JSON-RPC 2.0). The server supports the stateless 2026-07-28 revision (server/discover, per-request _meta) and the handshake revisions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05 (initialize, notifications/initialized, ping), so current and older clients both connect. It exits when its stdin closes.

salmonui-mcp --version prints the Salmon UI version of the bundled index; SALMONUI_MCP_INDEX=<file> serves another index file.

Programmatic use

import { loadIndex, McpServer } from '@salmonui/mcp';

const server = new McpServer({ index: loadIndex() });
const line = server.handleLine('{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}');

Documentation: https://salmonui.dev

License: MIT