CLI ToolsMay 11, 2026·2 min read

mcpc — Universal MCP CLI Client

A Swiss Army knife CLI for the Model Context Protocol: connect to MCP servers, manage sessions, list tools, and script tool calls via JSON output.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 5c710fc5-59c0-45c0-bef3-5781a479de09 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

A Swiss Army knife CLI for the Model Context Protocol: connect to MCP servers, manage sessions, list tools, and script tool calls via JSON output.

  • Best for: Developers and agents who want a single CLI surface for MCP (interactive + scripting) instead of bespoke integrations
  • Works with: Node.js CLI; HTTP/stdio MCP servers; shell scripting with jq/xargs (per README)
  • Setup time: 8 minutes

How to Use It Well

  • Setup time ~8 minutes (npm install + connect one server)
  • GitHub stars + forks (verified): see Source & Thanks
  • Supports persistent named sessions (e.g., @test) for repeated tool calls

Use mcpc as the thin waist: everything agent-side is a Bash tool, everything server-side is MCP. That makes it easier to standardize sessions, auth, logging, and scripting patterns across teams.

FAQ

Q: Why a CLI for MCP? A: Agents already have a universal interface—shell access. A CLI lets agents use MCP without custom function wiring.

Q: Is it interactive or scriptable? A: Both. It has an interactive shell mode and a JSON output mode for pipelines.

Q: How do I keep credentials safe? A: Use OAuth profiles as described in the README and run MCP proxying/sandboxing if you share a machine with multiple agents.

🙏

Source & Thanks

Source: https://github.com/apify/mcpc > License: Apache-2.0 > GitHub stars: 596 · forks: 56

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets