mcpc is a command-line client for the Model Context Protocol, giving shell commands access to MCP servers' tools, resources, prompts, skills, and other operations. Developers and AI agents use it to inspect, debug, and script MCP workflows through standard shell pipelines, with the catalogue add-ons supporting its use in agent workflows.
Borrowing it
Nothing to install: this file belongs to apify/mcpc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/apify/mcpc/main/AGENTS.mdgit clone --depth 1 https://github.com/apify/mcpcWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/apify/mcpc/agents-md)<a href="https://agentmods.dev/instructions/apify/mcpc/agents-md"><img src="https://agentmods.dev/badge/instructions/apify/mcpc/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/apify/mcpc/agents-md"><img src="https://agentmods.dev/badge/instructions/apify/mcpc/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.14249 | $0.14249 |
| Opus 5.5 | $0.05700 | $0.05700 |
| Sonnet 5.5 | $0.02850 | $0.02850 |
| Haiku 4.5 | $0.01425 | $0.01425 |
Grade A, and why
mcpc AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **Tooling**: in cloud sessions `api.github.com` and `github.com` are blocked for `curl`, so fetch the two GitHub pages with the built-in WebFetch tool. Do not use the `apify/web-fetch` MCP tool: every call and every re How it starts
The opening of the file, as written. The whole thing — 881 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
mcpc is a universal command-line client for the Model Context Protocol (MCP),
which maps MCP to intuitive CLI commands for shell access, scripts, and AI coding agents.
mcpc can connect to any MCP server over Streamable HTTP or stdio transports,
securely login via OAuth credentials and store credentials,
and keep long-term sessions to multiple servers in parallel.
It supports all major MCP features, including tools, resources, prompts, asynchronous tasks, and notifications.
mcpc is handy for manual testing of MCP servers, scripting,
and AI coding agents to use MCP in "code mode",
for better accuracy and lower tokens compared to traditional tool function calling.
After all, UNIX-compatible shell script is THE most universal coding language, for both people and LLMs.
Key capabilities:
- Universal MCP client - Works with any MCP server over Streamable HTTP or stdio
- Persistent sessions - Keep multiple server connections alive simultaneously
- Zero setup - Connect to remote servers instantly with just a URL
- Full protocol support - Tools, resources, prompts, dynamic discovery, and async notifications
--jsonoutput - Easy integration withjq, scripts, and other CLI tools- AI-friendly - Designed for code generation and automated workflows
- Secure - OS keychain integration for credentials, encrypted auth storage
Build and Development Commands
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run tests
pnpm test
# Test locally after building
pnpm link --global
mcpc --help
# Run linter/formatter (if configured)
pnpm run lint
pnpm run format
Quick Start Examples
# List all active sessions and saved authentication profiles
mcpc
# Login to OAuth-enabled MCP server and save authentication for future use
mcpc login mcp.apify.com
# Create a persistent session
mcpc connect mcp.apify.com @test
mcpc @test # show session info
mcpc @test tools-list # list available tools
mcpc @test tools-call search-actors query:="web crawler"
# Use JSON mode for scripting
mcpc --json @test tools-list
# Use a local server package referenced by MCP config file
mcpc connect ~/.vscode/mcp.json:filesystem @fs
mcpc @fs tools-list
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed e6f3f3a79d88
- 24d ago Changed · -2 tokens per session 31f3ce22ae0a
- 28d ago First seen · 881 lines · 14,251 tokens per session scan A 88effa4d53ac
mcpc AGENTS.md is an instructions file published in the GitHub repository apify/mcpc (1,089 stars, last pushed yesterday), licensed Apache-2.0. It adds 14,249 tokens to every session, about $0.0570 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.
mcpc AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcpc AGENTS.mdapify/mcpc | Instructions file | 1.1k | yesterday | Apache-2.0 | A | 14,249 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |