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

@mabysz/context-builder

v1.0.2

Published

**Context Builder** is a Model Context Protocol (MCP) server designed to help AI agents understand your codebase. It automates the process of gathering project metadata, identifying dependencies, fetching official documentation, and generating a comprehen

Readme

@mabysz/context-builder

Context Builder is a Model Context Protocol (MCP) server designed to help AI agents understand your codebase. It automates the process of gathering project metadata, identifying dependencies, fetching official documentation, and generating a comprehensive AGENTS.md context file.

This tool is essential for developers who want to give their AI assistants (like Claude, Cursor, or others) deep, accurate knowledge about the specific libraries and tools used in their project, without manual copy-pasting.

Purpose

The main goal of this MCP server is to bridge the gap between your code and your AI assistant's knowledge base. By generating an AGENTS.md file, you provide a standardized "map" of your project that includes:

  • Project Structure: Name, version, scripts, and package manager details.
  • Dependency Insights: Validated official documentation URLs for your specific dependencies.
  • Key Concepts: Critical information extracted directly from documentation to help the AI write better code.

Prerequisites

This server uses Google's Gemini 2.5 Flash model to intelligently find and summarize documentation. You must have a Gemini API key.

Usage with NPX

You can run this MCP server directly using npx. This is the recommended way to use it in your MCP client configuration.

Cloud / Generic MCP Configuration

Add the following to your MCP settings file (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "context-builder": {
      "command": "npx",
      "args": ["-y", "@mabysz/context-builder"],
      "env": {
        "GEMINI_API_KEY": "your_actual_api_key_here"
      }
    }
  }
}

Tools

This server provides the following tools to your AI assistant:

1. get_project_context

  • Description: Analyzes the package.json in your current directory.
  • What it does: Returns the project name, version, dependencies, devDependencies, scripts, and package manager (npm/pnpm/yarn).

2. fetch_docs

  • Description: Finds official documentation URLs for a list of package names.
  • What it does: Uses Google's Gemini AI to intelligently search and return the most relevant documentation URL for each package (e.g., finding the exact documentation site for zod or @modelcontextprotocol/sdk).

3. read_docs

  • Description: Reads and retrieves the content of a documentation page.
  • What it does: Fetches the HTML/Text content from a given URL so the AI can learn from it.

4. create_agent_context

  • Description: Writes the AGENTS.md file.
  • What it does: Saves the consolidated context information to a file named AGENTS.md in your project root.

Recommended Workflow

The most powerful way to use this server is through its Prompts or just type 'Help me create a AGENTS.md file' and let the AI do the rest.

generate-agent-context

This prompt orchestrates the entire workflow. When you select this prompt in your AI client, it will successfully guide the AI to:

  1. Read your project context.
  2. Identify key dependencies.
  3. Fetch and read their documentation.
  4. Generate and save the AGENTS.md file.

License: ISC