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

composter-mcp

v1.0.6

Published

MCP (Model Context Protocol) server for Composter - Let AI assistants access your React component vault

Readme

🤖 Composter MCP Server

Model Context Protocol server that lets AI assistants access your Composter component vault.

npm version license

Let Claude, Cursor, GitHub Copilot, and other MCP-compatible AI assistants search and read components from your personal Composter vault.


🚀 Quick Start

# 1) Install & login (once)
npm install -g composter-cli
composter login

# 2) Auto-configure your AI assistant
#    Pick one of: claude | cursor | vscode | windsurf
npx composter-mcp init cursor

# 3) Restart your AI assistant

That's it! Restart and Composter tools will appear.


📦 Installation

Auto-Configure (Recommended)

One command to set up everything:

npx composter-mcp init claude   # Claude Desktop
npx composter-mcp init cursor   # Cursor
npx composter-mcp init vscode   # VS Code (Copilot)
npx composter-mcp init windsurf # Windsurf

This automatically creates/updates the right config file for your AI assistant.

Manual Configuration

If you prefer manual setup, add to your IDE's MCP config:

{
  "mcpServers": {
    "composter": {
      "command": "npx",
      "args": ["composter-mcp"]
    }
  }
}

Config file locations:

  • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
  • Claude Desktop (Linux): ~/.config/claude/claude_desktop_config.json
  • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
  • Cursor: .cursor/mcp.json (in project)
  • VS Code: .vscode/mcp.json (in project)
  • Windsurf: ~/.codeium/windsurf/mcp_config.json

🛠️ Available Tools

Once configured, your AI assistant can use these tools:

| Tool | Description | |------|-------------| | search_components | Search your vault by component name or category | | list_categories | List all categories in your vault | | list_components | List all components in a specific category | | read_component | Read the full source code of a component |


💬 Example Prompts

After setup, you can ask your AI assistant:

  • "Search my Composter vault for button components"
  • "What categories do I have in Composter?"
  • "List all components in my ui category"
  • "Read the DataTable component from my ui category"
  • "Show me the code for my useLocalStorage hook"

🔧 Development Mode

For local development with localhost:3000 backend:

# Set environment variable
COMPOSTER_DEV=true npx composter-mcp

# Or set custom API URL
COMPOSTER_API_URL=http://localhost:3000/api npx composter-mcp

🐛 Troubleshooting

"No session found"

You need to login via the CLI first:

npm install -g composter-cli
composter login

"Session expired"

Your session has expired (30 days). Login again:

composter login

Tools not appearing in AI assistant

  1. Make sure you've restarted your AI assistant after config changes
  2. Check the config file path is correct for your OS
  3. Verify the MCP server starts: npx composter-mcp

Network errors

  • Check your internet connection
  • Verify the backend: https://composter.onrender.com/api/health
  • Try logging in again: composter login

🔐 Security

  • Uses JWT authentication (same as CLI)
  • Tokens stored locally at ~/.config/composter/session.json
  • All API calls over HTTPS
  • Read-only access to your vault

🔗 Links

| Resource | URL | |----------|-----| | 🌐 Web App | composter.vercel.app | | 📦 CLI | npmjs.com/package/composter-cli | | 💻 GitHub | github.com/binit2-1/Composter |


📄 License

MIT © binit2-1