AI Skill Hub 推荐使用:MCP客户端 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
MCP客户端 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP客户端 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/apify/mcpc
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp---": {
"command": "npx",
"args": ["-y", "mcpc"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP客户端 执行以下任务... Claude: [自动调用 MCP客户端 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp___": {
"command": "npx",
"args": ["-y", "mcpc"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
mcpc @apify tools-list --full
mcpc --json @apify skills-list | jq '.[].name'
Recognized index entry types (per SEP-2640): `skill-md` (concrete skill), `mcp-resource-template`
(parameterized namespace), and `archive` (`.tar.gz`/`.zip` bundle — fetch the URL via `resources-read`).
Entries with an unrecognized `type` are silently skipped.
Skills appear under capabilities in `mcpc @session` output when a server advertises the extension
under either `capabilities.extensions["io.modelcontextprotocol/skills"]` (per spec) or
`capabilities.experimental["io.modelcontextprotocol/skills"]` (the SDK-preserved escape hatch some
SDKs still use). Skill content is treated as untrusted input — `mcpc` only reads and prints it; it
never executes hooks, scripts, or other frontmatter-declared behavior.
#### List change notifications
When connected via a [session](#sessions), `mcpc` automatically handles `list_changed`
notifications for tools, resources, and prompts.
The bridge process tracks when each notification type was last received.
The timestamps are available in JSON output of `mcpc @session --json` under the `_mcpc.notifications`
field - see [Server instructions](#server-instructions).
#### Server logs
`mcpc` supports server logging settings (`logging/setLevel`) and log messages (`notifications/message`).
Log messages are printed to bridge log or stderr, subject to [verbosity level](#verbose-mode).
You can instruct MCP servers to adjust their [logging level](https://modelcontextprotocol.io/specification/latest/server/utilities/logging)
using the `logging-set-level` command:
bash
| **Feature** | **Status** |
|---|---|
| 📖 [**Instructions**](#server-instructions) | ✅ Supported |
| 🔧 [**Tools**](#tools) | ✅ Supported |
| 💬 [**Prompts**](#prompts) | ✅ Supported |
| 📦 [**Resources**](#resources) | ✅ Supported |
| 🧠 [**Skills**](#skills) | 🧪 Experimental (SEP-2640) |
| 📝 [**Logging**](#server-logs) | ✅ Supported (deprecated by MCP) |
| 🔔 [**Notifications**](#list-change-notifications) | ✅ Supported |
| 📄 [**Pagination**](#pagination) | ✅ Supported |
| 🏓 [**Ping**](#ping) | ✅ Supported |
| ⏳ [**Async tasks**](#async-tasks) | ✅ Supported |
| 📁 **Roots** | ❌ Not planned (deprecated by MCP) |
| ❓ **Elicitation** | 🚧 Planned |
| 🔤 **Completion** | 🚧 Planned |
| 🤖 **Sampling** | ❌ Not applicable (no LLM access) |
MCP servers can provide instructions describing their capabilities and usage. These are displayed when you connect to a server or run the help command:
```bash
mcpc @apify mcpc @apify help
mcpc x402 sign <base64-payment-required>
Requires a JavaScript runtime — install the latest Node.js or Bun if you don't have one yet.
```bash npm install -g @apify/mcpc
mcpc stores a single wallet in ~/.mcpc/wallets.json (file permissions 0600). You need to create or import a wallet before using x402 payments.
```bash
```bash
Usage: mcpc [<@session>] [<command>] [options]
Universal command-line client for the Model Context Protocol (MCP).
Commands:
connect [<server>] [@session] Connect to an MCP server and start a new named @session
close <@session> Close a session
restart <@session> Restart a session (losing all state)
login <server> Interactively login to a server using OAuth and save profile
logout <server> Delete an OAuth profile for a server
clean [resources...] Clean up mcpc data (sessions, profiles, logs, all)
grep <pattern> Search tools and instructions across all active sessions
x402 [subcommand] [args...] Configure an x402 payment wallet (EXPERIMENTAL)
help [command] [subcommand] Show help for a specific command
Options:
--json Output in JSON format for scripting
--verbose Enable debug logging
--profile <name> OAuth profile for the server ("default" if not provided)
--timeout <seconds> Request timeout in seconds (default: 300)
--max-chars <n> Truncate output to n characters (ignored in --json mode)
--insecure Skip TLS certificate verification (for self-signed certs)
-v, --version Output the version number
-h, --help Display help
MCP session commands (after connecting):
<@session> Show MCP server info, capabilities, and tools overview
<@session> grep <pattern> Search tools and instructions
<@session> tools-list List all server tools
<@session> tools-get <name> Get tool details and schema
<@session> tools-call <name> [arg:=val ... | <json> | <stdin]
<@session> prompts-list
<@session> prompts-get <name> [arg:=val ... | <json> | <stdin]
<@session> resources-list
<@session> resources-read <uri>
<@session> resources-subscribe <uri>
<@session> resources-unsubscribe <uri>
<@session> resources-templates-list
<@session> skills-list
<@session> skills-get <name> [--raw]
<@session> tasks-list
<@session> tasks-get <taskId>
<@session> tasks-result <taskId>
<@session> tasks-cancel <taskId>
<@session> logging-set-level <level>
<@session> ping
<@session> logs [-n N] [--follow] [--since 1h]
Run "mcpc" without arguments to show active sessions and OAuth profiles.
Run "mcpc --json" to get the same data as `{ sessions: [...], profiles: [...] }`.
mcpc connect ./.vscode/mcp.json:filesystem @fs mcpc @fs tools-list ```
mcpc connect ~/.vscode/mcp.json:filesystem @fs mcpc @fs tools-list mcpc @fs tools-call list_directory path:=/
See [MCP feature support](#mcp-feature-support) for details about all supported MCP features and commands.
#### Command arguments
The `tools-call` and `prompts-get` commands accept arguments as positional parameters after the tool/prompt name:
bash
mcpc connect mcp.apify.com @secure-relay --proxy 8081 --proxy-bearer-token secret123
You can configure mcpc using a config file, environment variables, or command-line flags.
Precedence (highest to lowest):
--config option)mcpc supports the "standard" MCP server JSON config file, compatible with Claude Desktop, VS Code, and other MCP clients. Use the file:entry syntax to reference a server from a config file:
```bash
mcpc connect .vscode/mcp.json:apify @my-apify mcpc @my-apify tools-list
`mcpc` also finds these files for you: run `mcpc connect` with no arguments to auto-discover config
files in standard locations and connect every server, or pass a file without an entry to connect all
of its servers. See [Server formats](#server-formats).
**Example MCP config JSON file:**
json { "mcpServers": { "apify": { "url": "https://mcp.apify.com", "headers": { "Authorization": "Bearer ${APIFY_TOKEN}" } }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"], "env": { "DEBUG": "mcp:*" } }, "local-package": { "command": "node", "args": ["/path/to/server.js"] } } }
**Server configuration properties:**
For **Streamable HTTP servers:**
- `url` (required) - MCP server endpoint URL
- `headers` (optional) - HTTP headers to include with requests
- `timeout` (optional) - Request timeout in seconds
For **stdio servers:**
- `command` (required) - Command to execute (e.g., `node`, `npx`, `python`)
- `args` (optional) - Array of command arguments
- `env` (optional) - Environment variables for the process
> **Note:** Stdio servers inherit only a minimal env whitelist from the shell
> (`PATH`, `HOME`, `SHELL`, …). Other vars — `NODE_EXTRA_CA_CERTS`, `HTTPS_PROXY`,
> `SSL_CERT_FILE`, etc. — must be forwarded explicitly via the `env` block using
> `${VAR_NAME}`. Anything the server writes to stderr is captured to
> `~/.mcpc/logs/bridge-<session>.log` with a `[server stderr]` prefix, and the
> tail is appended to the error message if `mcpc connect` fails, so you can see
> why a stdio server failed to start.
**Environment variable substitution:**
Config files support environment variable substitution using `${VAR_NAME}` syntax:
json { "mcpServers": { "secure-server": { "url": "https://mcp.apify.com", "headers": { "Authorization": "Bearer ${APIFY_TOKEN}", "X-User-ID": "${USER_ID}" } } } } ```
MCPC_HOME_DIR - Directory for session and authentication profiles data (default is ~/.mcpc)MCPC_VERBOSE - Enable verbose logging (set to 1, true, or yes, case-insensitive)MCPC_JSON - Enable JSON output (set to 1, true, or yes, case-insensitive)HTTPS_PROXY / https_proxy / HTTP_PROXY / http_proxy - Proxy URL for outbound connections (e.g. http://proxy.example.com:8080); HTTPS_PROXY takes precedenceNO_PROXY / no_proxy - Comma-separated list of hostnames/IPs to bypass the proxy (e.g. localhost,127.0.0.1)mcpc clean all # Delete all sessions, profiles, logs, and sockets ```
mcpc is a command-line client for the Model Context Protocol (MCP) that maps MCP operations to intuitive commands for interactive shell use, scripting, and AI agents.
mcpc is your new Swiss Army knife for MCP. It's great for manual inspection and debugging of MCP servers, as well as for agents to leverage all modern MCP capabilities through the most universal coding interface: the UNIX shell.
Key features:
jq, xargs, and shell pipelines for MCP workflows as shell scripts.
```
mcpc connect mcp.apify.com @relay --proxy 0.0.0.0:8080
mcpc connect mcp.apify.com @relay --proxy 192.168.1.100:8080
When listing sessions, proxy info is displayed prominently:
bash mcpc
```
mcpc @apify tools-call expensive-tool query:="hello"
| Tool | Lang | Stars | Contrib / Commits | Active | Tools | Resources | Prompts | Tasks | Code mode | Sessions | OAuth | Stdio | HTTP | Tool search | x402 | LLM |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| **[apify/mcpc](https://github.com/apify/mcpc)** | TS | ~590 | 8 / ~640 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | — |
| [steipete/mcporter](https://github.com/steipete/mcporter) | TS | ~4.4k | 29 / ~650 | ✅ | ✅ | — | — | — | ✅ | ✅ | ✅ | ✅ | ✅ | — | — | — |
| [knowsuchagency/mcp2cli](https://github.com/knowsuchagency/mcp2cli) | Python | ~2.1k | 11 / ~91 | ✅ | ✅ | ✅ | ✅ | — | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | — | — |
| [IBM/mcp-cli](https://github.com/IBM/mcp-cli) | Python | ~2.0k | 24 / ~790 | ✅ | ✅ | ✅ | ✅ | — | ✅ | ✅ | ✅ | ✅ | ✅ | — | — | ✅ |
| [f/mcptools](https://github.com/f/mcptools) | Go | ~1.6k | 15 / ~175 | ⚠️ | ✅ | ✅ | ✅ | — | ✅ | — | — | ✅ | ✅ | — | — | — |
| [philschmid/mcp-cli](https://github.com/philschmid/mcp-cli) | TS | ~1.1k | 3 / ~30 | ⚠️ | ✅ | — | — | — | ✅ | ✅ | — | ✅ | ✅ | ✅ | — | — |
| [adhikasp/mcp-client-cli](https://github.com/adhikasp/mcp-client-cli) | Python | ~670 | 6 / ~110 | ⚠️ | ✅ | ✅ | ✅ | — | — | — | — | ✅ | — | — | — | ✅ |
| [thellimist/clihub](https://github.com/thellimist/clihub) | Go | ~670 | 1 / ~60 | ✅ | ✅ | — | — | — | — | — | ✅ | ✅ | ✅ | ✅ | — | — |
| [wong2/mcp-cli](https://github.com/wong2/mcp-cli) | JS | ~430 | 4 / ~63 | ⚠️ | ✅ | ✅ | ✅ | — | — | — | ✅ | — | ✅ | — | — | — |
| [mcpshim/mcpshim](https://github.com/mcpshim/mcpshim) | Go | ~58 | 1 / ~13 | ✅ | ✅ | — | — | — | ✅ | ✅ | ✅ | — | ✅ | ✅ | — | — |
| [evantahler/mcpx](https://github.com/evantahler/mcpx) | TS | ~32 | 2 / ~100 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | — | ✅ | ✅ | ✅ | ✅ | — | — |
| [EstebanForge/mcp-cli-ent](https://github.com/EstebanForge/mcp-cli-ent) | Go | ~15 | 3 / ~46 | ✅ | ✅ | — | — | — | ✅ | ✅ | — | ✅ | ✅ | ✅ | — | — |
Legend: ✅ = supported, ⚠️ = stale (no commits in 3+ months), Contrib / Commits = contributors / total commits, Tasks = async tasks, x402 = x402 payment protocol support, LLM = requires/uses an LLM.
Notes:
"Cannot connect to bridge"
mcpc @<session-name> tools-list to restart the bridgeps aux | grep -e 'mcpc-bridge' -e '[m]cpc/dist/bridge'ls ~/.mcpc/bridges/"Session not found"
mcpcmcpc @<session-name> close and mcpc connect <server> @<session-name>"Authentication failed"
mcpcmcpc login <server> [--profile <name>]--header "Authorization: Bearer ${TOKEN}" again功能齐全的MCP客户端
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,MCP客户端 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | mcpc |
| 原始描述 | 开源MCP工具:A universal CLI client for MCP. mcpc supports persistent sessions, stdio/HTTP, O。⭐683 · TypeScript |
| Topics | mcpclitypescript |
| GitHub | https://github.com/apify/mcpc |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-06-11 · 更新时间:2026-06-11 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端