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):
Or with a a custom catalog path:
Configure Tools
Add a JSON catalog file (default: ~/.mcp-cli-catalog.json) with the CLI tools you want to make discoverable:
nameanddescriptionare required.usage(optional) shows up as a hint in responses.command(optional) is the exact string to run. If you skip it, the toolnameis used.Point to a different catalog with
--config <path>orMCP_CLI_CATALOG_FILE=<path>.
Test
Test your server setup with the MCP Inspector:
Or with a custom catalog:
Development
npm run dev: run directly fromsrc/index.jsnpm run build: compile todist/index.jsand fix permissionsnpm start: run the built server fromdist/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.
Cloudflare, “Code Mode,” 2025.
Anthropic, “Code execution with MCP,” 2025.
This server cannot be installed