mcpField
M
Mcp Cli Catalog

Mcp Cli Catalog

Local
github.com/abcpro1Developer Tools1Updated 50w ago

About Mcp Cli Catalog

Mcp Cli Catalog is an MCP server that makes locally available CLI tools discoverable to coding agents. Its catalog describes commands but does not execute them; the agent needs shell access to run them.

Key features

  1. 01Publish CLI tools as MCP definitions
  2. 02Configure tools in a JSON catalog
  3. 03Provide usage hints and command names

Use cases

  1. 01Help an agent discover available local CLIs
  2. 02Guide shell use with command examples

MCP support

The server exposes configured CLI entries as MCP tool definitions. These definitions direct the agent to use the shell; they do not execute commands.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"cli-catalog": {
"command": "npx",
"args": [
"-y",
"mcp-cli-catalog"
]
}
}
}
Run commandnpx -y mcp-cli-catalog

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmcp-cli-catalog

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.