mcp-cli-scripts
Companion CLI scripts for MCP servers with file I/O, batch processing, and local caching.
- Provides one script per MCP tool with extended capabilities: batch input/output files, result caching, multiple output formats (JSON, CSV, table), and parallel processing
- Uses consistent argument patterns across all scripts (
--input,--output,--format,--profile,--verbose) for predictable developer experience - Scripts output structured JSON by default for easy parsing by Claude Code, with optional text or CSV formats
- Includes TypeScript templates, SCRIPTS.md documentation template, and correction rules for consistent script development
- Designed for terminal environments where file access and local result caching provide advantages over remote MCP calls
MCP CLI Scripts Pattern
Status: Production Ready Last Updated: 2026-01-09 Dependencies: tsx (dev dependency) Current Versions: tsx@4.21.0
Why CLI Scripts Alongside MCP Servers?
When building MCP servers, also create companion CLI scripts that provide the same (and often extended) functionality for use with Claude Code in terminal environments.
| Aspect | Remote MCP (Claude.ai) | CLI Scripts (Claude Code) |
|---|---|---|
| Context | Results flow through model context window | Results stay local, only relevant parts shared |
| File System | No access | Full read/write access |
| Batch Operations | One call at a time | Can process files of inputs |
| Caching | Stateless | Can cache results locally |
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K