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

context7-lite-mcp

v0.1.2

Published

Lightweight MCP wrapper for Context7 API - consolidates 2 tools into 1

Readme

context7-lite-mcp

Lightweight MCP wrapper for Context7 API - consolidates 2 tools into 1.

Overview

context7-lite-mcp provides up-to-date, version-specific documentation for libraries and frameworks through a single MCP tool. It reduces context usage by ~80% compared to the standard Context7 MCP implementation.

Features

  • Single Tool Interface: All Context7 operations through one context7 tool
  • Action-Based Dispatch: Use action parameter to select operation
  • Full Context7 Coverage: Support for both library resolution and documentation retrieval
  • Optimized for Claude Code: Minimal token overhead

Installation

npm install context7-lite-mcp

Usage

Configuration

Add to your MCP settings configuration:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "context7-lite-mcp"],
      "env": {
        "CONTEXT7_API_KEY": "your-api-key-here"
      }
    }
  }
}

Note: The CONTEXT7_API_KEY is optional. Without it, you'll have lower rate limits. Get your API key at context7.com/dashboard.

Available Actions

1. resolve_library_id

Search for libraries by name and get Context7-compatible library IDs.

Parameters:

  • libraryName (required): Name of the library to search for
  • query (optional): User's question or task - used to rank results by relevance

Example:

{
  "action": "resolve_library_id",
  "payload": {
    "libraryName": "next.js",
    "query": "how to setup routing"
  }
}

2. get_library_docs

Fetch up-to-date documentation for a library.

Parameters:

  • context7CompatibleLibraryID (required): Library ID from resolve_library_id (e.g., "/vercel/next.js")
  • topic (optional): Focus docs on specific topic (e.g., "routing", "hooks")
  • tokens (optional): Maximum tokens to return (default: 5000, min: 1000)

Example:

{
  "action": "get_library_docs",
  "payload": {
    "context7CompatibleLibraryID": "/vercel/next.js",
    "topic": "routing",
    "tokens": 5000
  }
}

Workflow

  1. First, use resolve_library_id to find the library and get its Context7-compatible ID
  2. Then, use get_library_docs with that ID to fetch the documentation

Token Savings

  • Standard Context7 MCP: ~2 tools × 500 tokens = 1,000 tokens
  • context7-lite: 1 tool × 200 tokens = 200 tokens
  • Savings: ~80% reduction in context usage

Architecture

Follows the superpowers-chrome pattern:

  • Single tool with action enum parameter
  • Switch/dispatch based on action
  • Direct API calls to Context7

License

MIT

Links