mcp-cli-scripts

Installation
Summary

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
SKILL.md

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
Related skills
Installs
317
GitHub Stars
776
First Seen
Jan 20, 2026