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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@leanspec/mcp

v0.2.10

Published

MCP server integration wrapper for LeanSpec

Readme

@leanspec/mcp

MCP server integration wrapper for LeanSpec

This package provides a simple entry point for using LeanSpec as an MCP (Model Context Protocol) server with AI assistants like Claude Desktop, Cline, and Zed.

Quick Start

Standard Configuration

Most MCP-compatible tools use this standard configuration format:

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

Supported Tools

Works with any tool supporting the Model Context Protocol, including:

AI Coding Assistants:

AI Chat Interfaces:

Terminal & CLI:

Development Platforms:

Configuration File Locations

Claude Desktop

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

VS Code

  • Add to your workspace or user settings.json
  • Use github.copilot.chat.mcp.servers for GitHub Copilot

Other Tools

Refer to your tool's documentation for the configuration file location. Most use the standard MCP config format above.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect to data sources and tools. LeanSpec's MCP server lets AI assistants read and manage your project specifications directly.

Available Tools

The LeanSpec MCP server provides these tools to AI assistants:

  • list - List all specifications with filtering
  • view - Read complete specification content
  • search - Search across specifications
  • files - List files in a specification
  • deps - Show dependency graphs
  • board - View Kanban-style project board
  • create - Create new specifications
  • update - Update specification metadata
  • archive - Archive completed specs
  • tokens - Count tokens for context management
  • stats - Get project statistics
  • validate - Validate specification quality
  • check - Check for sequence conflicts
  • backfill - Backfill metadata from git history

How It Works

This package is a lightweight wrapper that delegates to the lean-spec mcp command. When you use npx @leanspec/mcp, it:

  1. Automatically installs @leanspec/mcp and its lean-spec dependency
  2. Runs lean-spec mcp to start the MCP server
  3. Your IDE communicates with the server via stdio

No manual installation or setup required!

Requirements

  • Node.js 20 or higher
  • A LeanSpec project (specs directory with specifications)

Troubleshooting

Server not starting?

  • Ensure Node.js 20+ is installed: node --version
  • Check that you're in a directory with a specs/ folder
  • Restart your IDE after updating the config

Changes not taking effect?

  • Fully restart your IDE (not just reload)
  • Clear npx cache: npx clear-npx-cache

Want to see debug logs?

  • Check your IDE's MCP server logs
  • Claude Desktop: View → Developer Tools → Console
  • Cline: Check VS Code's Output panel

Documentation

For complete documentation, visit: https://lean-spec.dev

License

MIT