Stop Wrestling with JSON. Give Your AI the CLI Tools It Actually Understands.
Turn any MCP server (GitHub, Notion, Figma) into a native shell command in 30 seconds. Perfect for coding agents, terminal junkies, and automation scripts.
AI coding agents struggle with complex JSON tool calling—but they write shell commands perfectly. mcptocli instantly converts verbose MCP servers into clean, scriptable CLI tools with auto-generated flags, standard I/O, and tab completion.
Build better AI agents. Automate your workflow. Ditch the JSON wrappers.
Register any MCP server by name. One command, done forever.
mcp add time 'uvx mcp-server-time'added server "time"exposed as "mcp-time" (~/.local/share/mcptocli/bin/mcp-time)
now use it: mcp time tools mcp time shellEvery server describes its tools. Inspect any of them to get flags, types, and usage.
mcp time toolsTools (2):
convert-time Convert time between timezones. get-current-time Get current time in a specific timezone.
Inspect: mcp tools time <tool>Invoke: mcp time <tool> [args...]Call any tool like a normal shell command. Flags are generated from the schema.
mcp time get-current-time --timezone America/New_York2025-03-29T10:30:00-04:00Why mcptocli
Register an MCP server by name. It becomes a first-class shell command — with flags, help, and tab completion generated from the schema.
Local stdio servers, remote HTTP endpoints, OAuth-protected services — mcptocli handles the transport so you don’t have to.
Keep servers running for instant responses. Share a single server across terminals, Claude Desktop, and notebooks.
-o json gives you stable, parseable output on stdout. Diagnostics go to stderr. Exit codes are meaningful.