mcpc
БесплатноБез исполняемых скриптовНе проверенUse the mcpc CLI to work with MCP (Model Context Protocol) servers from the shell - connect to a server as a persistent session, then list and call tools…
от apify★ 1 124 звезды на GitHubОб этом скилле
mcpc: MCP command-line client
mcpc maps every MCP operation to a shell command. For agents this is often more
efficient than function calling: discover the right tool on demand, then generate
shell commands (ideally with --json) instead of carrying tool definitions in context.
The examples below use mcpc as a command on PATH. If it is not installed globally
or otherwise available, use the published package through npx instead:
npx -y @apify/mcpc@latest --help
After checking the help, prefix the commands below with npx @apify/mcpc
(for example, npx @apify/mcpc connect ...).
Mental model
- Connect once to a server — this creates a persistent, named
@session. A background bridge process keeps the connection (and its state) alive. - Run commands against the
@session: list/call tools, read resources, get prompts, run async tasks. There is no one-shotmcpc <url> tools-list— connect first. - Default output is human-readable; add
--jsonfor machine-readable, MCP-spec shaped output that composes withjqand shell pipelines (code mode).
Everything is self-documenting — when unsure, ask the CLI:
mcpc --help # all commands + global options
mcpc help connect # help for one command
mcpc @apify tools-call foo --help # that tool's details + schema
First steps
mcpc # list sessions + auth profiles (start here)
mcpc connect mcp.apify.com @apify # connect, create the @apify session
mcpc @apify # server info, capabilities, tools overview
mcpc @apify tools-list # list tools
mcpc @apify tools-call <tool> q:="hi" # call a tool
Connecting
Server formats accepted by connect:
mcp.example.com— remote HTTP server (https://is added automatically)localhost:8080or127.0.0.1:8080— local HTTP server (http://is the default forlocalhost,127.0.0.1and[::1])~/.vscode/mcp.json:filesystem— a single entry from a config file (file:entry)~/.vscode/mcp.json— connect every entry in a config file- (no server) — auto-discover standard configs and connect all of them
mcpc connect mcp.apify.com @apify # remote server, explicit session name
mcpc connect mcp.apify.com # auto-name the session → @apify
mcpc connect ./.vscode/mcp.json:fs @fs # one config entry (stdio or http)
mcpc connect # discover standard configs + connect everything
@sessionis optional — omit it to auto-generate a name from the server (mcp.apify.com→@apify). A matching session (same server + auth) is reused.- A session name stays bound to its server:
connectwith an existing name and a different server is refused. Pick another name, ormcpc @name closefirst if the user wants it replaced. - Stdio (command-based) entries launch a local process on connect — only connect
to configs you trust. Bulk connects skip stdio entries unless you pass
--stdio. - A bare
mcpc connecttreats config files in the current directory as untrusted — a checked-in.mcp.jsoncould point${GITHUB_TOKEN}at an attacker's server. Entries that reference${VAR}are skipped (the output names the variables), and-His refused. Review the file before connecting it by name (mcpc connect ./.mcp.json), which expands${VAR}. - The MCP protocol version is negotiated automatically. Pass
--protocol-version <version>(e.g.--protocol-version 2025-11-25) to pin one exact version — the connection fails if the server does not support it. login/logoutonly accept an MCP server URL (a bare host or fullhttp(s)://URL) — not config files or auto-discovery.
Sessions
mcpc # list all sessions and their state
mcpc @apify # session details, capabilities, tools (also reports the
# negotiated MCP version and the transport carrying it)
mcpc restart @apify # restart (after server updates, or to recover an 'expired' session)
mcpc close @apify # tear the session down
Session states:
- 🟢 live — ready to use
- 🟡 connecting / reconnecting — transient; retry in a moment
- 🟡 disconnected — bridge alive but the server has gone quiet; retry to reconnect
- 🟡 crashed — bridge process died; auto-restarts on next use
- 🔴 unauthorized — auth failed; run
mcpc login <server>thenmcpc restart @session - 🔴 expired — server dropped the session; run
mcpc restart @session
Discovering and inspecting tools
mcpc @apify tools-list # compact list with inline param signatures
mcpc @apify tools-list --full # full JSON schemas
mcpc @apify tools-get <tool> # one tool's details + schema
mcpc @apify tools-call <tool> --help # shortcut for tools-get: that tool's details + schema
mc
Установить mcpc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(mcpc:*)Bash(npx @apify/mcpc:*)ReadGrepFAQ
Что делает скилл mcpc?
Use the mcpc CLI to work with MCP (Model Context Protocol) servers from the shell - connect to a server as a persistent session, then list and call tools, read resources, get prompts, and run async tasks. Use --json for scripting and code mode. Reach for this whenever interacting with MCP servers, calling MCP tools, or accessing MCP resources programmatically.
Как установить скилл mcpc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcpc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic