Sponsored by Deepsite.site

Mcp Cli Catalog

Created By
abcpro1a month ago
An MCP server that publishes CLI tools on your machine for discoverability by LLMs
Content

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.

Server Config

{
  "mcpServers": {
    "cli-catalog": {
      "command": "npx",
      "args": [
        "mcp-cli-catalog"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Tavily Mcp