Claude Code model router
Mcpc
The most compatible MCP CLI client. Supports: tools, resources, prompts, completions, async tasks, skills, stdio and streamable HTTP (MCP 2026-07-28 and 2025-11-25), persistent sessions, OAuth 2.1 with DCR, CIMD, client credentials, and ID-JAG, OS keychain, --json for code mode, grep for tool discovery, proxy for AI sandboxes, x402, and more.
Install
npm install -g @apify/mcpcFound in the project README. Check it for setup steps after installing.
git clone https://github.com/apify/mcpc.gitFrom the README
mcpc — a universal MCP CLI client mcpc is a command-line client for the Model Context Protocol (MCP) that maps every MCP operation to an intuitive shell command. Use it to manually inspect and debug MCP servers, to script repeatable MCP workflows in plain shell, or to give AI agents the full MCP protocol through a single Bash() tool call, so they can interact with any MCP server and its latest capabilities using the most universal programming interface there is: the UNIX shell. Key features: - 🔧 Full MCP support - Tools, prompts, resources, async tasks, skills, notifications, and logging over stdio and Streamable HTTP. - 🔄 Persistent sessions - Keep connections to multiple servers alive in parallel, whether the server protocol is stateful or stateless. - 🗺️ Progressive tool discovery - Find relevant MCP tools on the fly to save tokens and increase accuracy. - 🔌 Code mode - JSON output composes with jq, xargs, and shell pipelines for MCP workflows as shell scripts. - 🔒 Secure - Full OAuth 2.1 support with CIMD and DCR, uses OS keychain for credentials storage. - 🤖 AI sandboxing - Proxy MCP server connections to protect credentials from AI-generated code. - 🪶 Lightweight - Minimal dependencies, works on Mac/Win/Linux, doesn't use LLMs on its own. - 💸 Agentic payments - Experimental support for the x402 protocol on Base. mcpc is the most MCP specification-compliant CLI client available: the only one that covers tools, resources, prompts, async tasks, and skills, plus the OAuth client-credentials and enterprise-managed authorization extensions, on the latest protocol version. Here's how it compares to other MCP CLI clients (see Related work for the full table, legend, and notes): Table of contents - Motivation - Install - Quickstart - Usage - Sessions -…
Details
- Repository
- apify/mcpc
- Website
- npmjs.com/package/@apify/mcpc
- Language
- TypeScript
- License
- Apache-2.0
- Last updated
- 31 October 2026
- Topics
- ai-agentsbashclaudeclicode-modecommand-linemcpmcp-clientmodel-context-protocolshell
FAQ
What is Mcpc?
The most compatible MCP CLI client. Supports: tools, resources, prompts, completions, async tasks, skills, stdio and streamable HTTP (MCP 2026-07-28 and 2025-11-25), persistent sessions, OAuth 2.1 with DCR, CIMD, client credentials, and ID-JAG, OS keychain, --json for code mode, grep for tool discovery, proxy for AI sandboxes, x402, and more. It is a model router for Claude Code, from apify/mcpc on GitHub.
How do I install Mcpc?
Run npm install -g @apify/mcpc, then follow the setup in the README.
Is Mcpc popular?
apify/mcpc has 1,083 GitHub stars and 106 forks. It was last updated on 31 October 2026.
More model routers & proxies
jev-router
652gargpratyush/jev-router
Routes each Claude Code task to the cheapest suitable model.
Wesight
966freestylefly/wesight
Open-source desktop AI agent workspace with one-click Claude Code, Codex, OpenClaw, Hermes Agent setup and custom LLM model routing.
claude-code-switch
666foreveryh/claude-code-switch
One-command model switcher for Claude Code.
Agentic Flow
836ruvnet/agentic-flow
Easily switch between alternative low-cost AI models in Claude Code/Agent SDK. For those comfortable using Claude agents and commands, it lets you take what you've created and deploy fully hosted agents for real business purposes. Use Claude Code to get the agent working, then deploy it in your favorite cloud.
claude-code-proxy
692raine/claude-code-proxy
Local proxy to use Claude Code with ChatGPT, Kimi, Cursor or Grok subscriptions.
CC Switch Web
524Laliet/cc-switch-web
Web-based version of CC Switch for managing Claude Code providers.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.