mcp-cli-catalog
An MCP server that publishes CLI tools on your machine for discoverability by LLMs
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'"
}
]
}
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:
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 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.
Похожие серверы
MCP Audio Tweaker
Batch audio processing and optimization using FFmpeg. Modify sample rate, bitrate, volume, channels, and apply effects.
Plex MCP Server
Search for movies and manage playlists on your Plex Media Server using the Plex API.
Vibe Math MCP
A high-performance Model Context Protocol (MCP) server for math-ing whilst vibing with LLMs. Built with Polars, Pandas, NumPy, SciPy, and SymPy for optimal calculation speed and comprehensive mathematical capabilities from basic arithmetic to advanced calculus and linear algebra.
wodeapp
AI-powered no-code app builder with 17 MCP tools — create projects, generate pages from natural language, AI text/image generation (GPT, Claude, Gemini, 14+ models), page CRUD, workflow execution, publish & version control. SSE transport, API key auth.
xcomet-mcp-server
Translation quality evaluation using xCOMET models. Provides quality scoring (0-1), error detection with severity levels, and optimized batch processing with 25x speedup.
Loxone MCP Server
An MCP server for Loxone home automation systems, allowing AI assistants to control lights, blinds, sensors, and weather.
Adwords MCP
An MCP server that serves ads to developers in clients like Cursor and Claude.
MCP-Airflow-API
MCP-Airflow-API is an MCP server that leverages the Model Context Protocol (MCP) to transform Apache Airflow REST API operations into natural language tools. This project hides the complexity of API structures and enables intuitive management of Airflow clusters through natural language commands.
ClawPay MCP
Non-custodial x402 payment layer for AI agents. Agents sign transactions locally on Base — no custodial infrastructure, no API keys, no KYC.
MCP Epic Free Games
Provides access to information about free games on the Epic Games Store.