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

@jspm/local-mcp

v0.1.3

Published

A local-first MCP server for managing JSPM import maps in real projects.

Readme

@jspm/local-mcp

A local-first Model Context Protocol server for managing JSPM import maps inside a real project directory. Uses @jspm/generator to keep the full import map correct instead of hand-editing only the imports section.

Built for coding agents with filesystem access to your repo (Codex, Claude Code / Claude Desktop, Cursor, VS Code MCP).

Tools

Read-only

| Tool | Description | Inputs | |------|-------------|--------| | get_status | Returns the active project path, map target, environment conditions, and generator options. | none | | get_importmap | Returns the current import map as JSON with the list of installed top-level specifiers. Requires set_project first. | none |

Project setup

| Tool | Description | Inputs | |------|-------------|--------| | set_project | Sets the active project directory. | path: string | | set_target | Choose importmap file or HTML injection mode. | target: string, fileName?: string, esModuleShims?: boolean | | set_env | Switch between "production" and "development". | environment: "production"|"development", customConditions?: string[] |

Generator configuration

| Tool | Description | Inputs | |------|-------------|--------| | set_generator_options | Configure CommonJS, TypeScript, SystemJS, integrity, fetch retries, default provider, and more. | commonJS?, typeScript?, system?, integrity?, fetchRetries?, defaultProvider?, cache?, providers?, resolutions?, ignore?, reinstall? | | set_provider | Set default provider (e.g. "jspm.io", "jsdelivr", "unpkg") and scoped overrides. | defaultProvider?, overrides?, reinstall? | | remove_provider_override | Remove one or more scoped provider overrides. | specifiers: string[], reinstall? | | set_cache | Configure cache mode (true, false, or "offline"). | cache: boolean|"offline", reinstall? | | set_resolution | Add or update package resolution overrides. | resolutions: {specifier, target}[], reinstall? | | remove_resolution | Remove package resolution overrides. | specifiers: string[], reinstall? | | set_ignore | Replace the list of specifiers JSPM ignores during tracing. | specifiers: string[], reinstall? |

Package management

| Tool | Description | Inputs | |------|-------------|--------| | install_package | Install one or more packages via the configured provider. | packages: {packageName, version?}[] | | uninstall_package | Remove one or more packages from the import map. | packageName: string|string[] | | trace_file | Trace imports from local source files and add required mappings. | fileNames: string[] |

Typical Flow

1. set_project({ path: "/absolute/path/to/project" })
2. set_target({ target: "html", fileName: "index.html" })
3. install_package({ packages: [{ packageName: "react" }, { packageName: "react-dom" }] })
4. trace_file({ fileNames: ["src/main.js"] })

Install

npx -y @jspm/local-mcp

Or globally:

npm install -g @jspm/local-mcp
jspm-local-mcp

MCP Client Setup

All clients use the same pattern:

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

For VS Code / GitHub Copilot, use the "servers" key instead of "mcpServers".

If npx is unavailable, point directly to the installed executable:

{
  "command": "node",
  "args": ["/path/to/jspm-mcp/dist/cli.js"]
}

Local Development

npm install
npm run build
npm start

For auto-reload during development:

  • Terminal: npm run dev (watches src/ and rebuilds dist/ on save)
  • MCP client config: node --watch /path/to/jspm-mcp/dist/cli.js

The --watch flag restarts the server automatically when dist/ changes.

Publish

npm run build
npm publish --access public

prepublishOnly rebuilds dist before publish.

License

MIT