mcp-cli-catalog
An MCP server that publishes CLI tools on your machine for discoverability by LLMs
Documentation
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 ` or `MCP_CLI_CATALOG_FILE=`.
Test
Test your server setup with the MCP Inspector:
npx @modelcontextprotocol/inspector npx mcp-cli-catalogOr with a custom catalog:
npx @modelcontextprotocol/inspector npx mcp-cli-catalog --config ./tools.jsonDevelopment
- `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.
Frequently asked questions
What is mcp-cli-catalog?
mcp-cli-catalog is An MCP server that publishes CLI tools on your machine for discoverability by LLMs
How do I install mcp-cli-catalog?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-cli-catalog open source?
Yes — it is hosted on GitHub at https://github.com/abcpro1/mcp-cli-catalog and has 1 stars.
Related MCP tools
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
The go-to web for your AI coding agent — local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.
AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP