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

mcp-component-docs

v0.1.0

Published

MCP server — scan a React/TypeScript component library and generate accurate prop documentation via the TypeScript compiler

Readme

@mcp-devtools/component-docs

MCP server — generate accurate React component prop documentation using the TypeScript compiler. Resolves inherited props, imported types, and forwardRef patterns correctly.

Install

npm install -g @mcp-devtools/component-docs

Add to Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "component-docs": {
      "command": "mcp-component-docs"
    }
  }
}

Restart Claude Desktop after editing the config.

Tools

scan_components

Scan a directory of React .tsx files and generate a full prop documentation catalog. Uses the TypeScript compiler to resolve the complete prop set — including props from extended interfaces, imported types, and forwardRef patterns.

path: string              — Path to a directory of .tsx files. E.g. './src/components'
max_components?: number   — Maximum components to include. Default: 50

Returns a table of every prop with its type, required/optional status, and JSDoc description. Works best when a tsconfig.json is present.


document_component

Generate detailed prop documentation for a single component file.

path: string  — Path to a .tsx file. E.g. './src/components/Button/Button.tsx'

Returns the component description, complete prop table with types and JSDoc, and a required/optional summary.

Example prompts

"What props does the Button component accept?"

"Scan ./src/components and document all components"

"Show me all components that accept an onChange prop"

"What's the full prop interface for Modal including inherited props?"

"Which props are required in the DataTable component?"

Development

npm install
npm run build
npm run dev

License

MIT


map_component_dependencies

Build a cross-component dependency graph by scanning JSX usage within each component file.

path: string              — Path to a directory of .tsx component files
max_components?: number   — Maximum components to include. Default: 100

Returns components grouped by role:

  • Top-level — not reused by other components (likely pages or entry points)
  • Composite — both uses other components and is used by others
  • Leaf — no internal dependencies (primitives like Button, Icon)
  • Isolated — no dependency edges detected

Also lists the most reused components ranked by usage count.

Example prompts (dependency graph)

"Map the component dependencies in src/components"

"Which components does my Modal depend on?"

"What are the most reused components in my UI library?"