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-cli-catalog

v0.1.0

Published

An MCP server that publishes CLI tools on your machine for discoverability by LLMs

Readme

mcp-cli-catalog

An MCP server that publishes the CLI tools on your machine. Coding agents already have shell access and are great at generating complex commands with pipes and filters. This just tells them what's available so they can use MCP tools more efficiently.

Why

  • LLM coding agents can effectively chain shell commands with pipes to filter and reshape complex data.
  • Declaring CLI tools as MCP tools makes them discoverable to the LLM.

How It Works

  • This server exposes your CLI tools as MCP tool definitions so the LLM knows what's available.
  • The MCP tools defined in the catalog only instruct the LLM to use the shell; they do not execute any tools themselves.
  • Shell access is required for the agent to actually run the commands.

Install

Add the server to your MCP config (e.g. for Claude Code):

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

Or with a a custom catalog path:

{
  "mcpServers": {
    "cli-catalog": {
      "command": "npx",
      "args": ["mcp-cli-catalog", "--config", "./tools.json"]
    }
  }
}

Configure Tools

Add a JSON catalog file (default: ~/.mcp-cli-catalog.json) with the CLI tools you want to make discoverable:

{
  // JSON Comments are allowed.
  "tools": [
    {
      "name": "knowledge-base-search",
      "description": "Search full text across the knowledge base",
      "usage": "knowledge-base-search 'pattern' | head"
    },
    {
      "name": "knowledge-base-get",
      "description": "Get a knowledge base file",
      "usage": "knowledge-base-get path/to/file.md | sed -n '100,200p'\nknowledge-base-get path/to/file.md | rg 'TODO'"
    }
  ]
}
  • name and description are required.
  • usage (optional) shows up as a hint in responses.
  • command (optional) is the exact string to run. If you skip it, the tool name is used.
  • Point to a different catalog with --config <path> or MCP_CLI_CATALOG_FILE=<path>.

Test

Test your server setup with the MCP Inspector:

npx @modelcontextprotocol/inspector npx mcp-cli-catalog

Or with a custom catalog:

npx @modelcontextprotocol/inspector npx mcp-cli-catalog --config ./tools.json

Development

  • npm run dev: run directly from src/index.js
  • npm run build: compile to dist/index.js and fix permissions
  • npm start: run the built server from dist/index.js

Alternative approaches

Cloudflare’s “Code Mode”1 and Anthropic’s code‑execution‑with‑MCP post2 explore a different way to solve MCP tooling challenges. Their approach provides MCP tools through an SDK to the LLM, which writes code to call and process those tools. This project takes a simpler path: build CLI tools and make them discoverable through the MCP tool catalog.


  1. Cloudflare, “Code Mode,” 2025.
  2. Anthropic, “Code execution with MCP,” 2025.