A CLI inspector for the Model Context Protocol - Run MCP servers from various sources - List Tools, Resources, Prompts - Call Tools, Read Resources, Read Prompts - OAuth support for SSE and Streamable HTTP servers This will use the config file of Claude Desktop. The config file has the same format as the Claude Desktop config file. Run a specific tool, resource, or prompt without interactive promp
Add this skill
npx mdskills install wong2/mcp-cliComprehensive CLI tool for inspecting and testing MCP servers with excellent usage examples
1# mcp-cli23A CLI inspector for the Model Context Protocol45https://github.com/user-attachments/assets/4cd113e9-f097-4c9d-b391-045c5f21318367## Features89- Run MCP servers from various sources10- List Tools, Resources, Prompts11- Call Tools, Read Resources, Read Prompts12- OAuth support for SSE and Streamable HTTP servers1314## Usage1516### Run without arguments1718```bash19npx @wong2/mcp-cli20```2122This will use the config file of Claude Desktop.2324### Run with a config file2526```bash27npx @wong2/mcp-cli -c config.json28```2930The config file has the same format as the Claude Desktop config file.3132### Run servers from NPM3334```bash35npx @wong2/mcp-cli npx <package-name> <args>36```3738### Run locally developed server3940```bash41npx @wong2/mcp-cli node path/to/server/index.js args...42```4344### Connect to a running server over Streamable HTTP4546```bash47npx @wong2/mcp-cli --url http://localhost:8000/mcp48```4950### Connect to a running server over SSE5152```bash53npx @wong2/mcp-cli --sse http://localhost:8000/sse54```5556### Non-interactive mode5758Run a specific tool, resource, or prompt without interactive prompts:5960```bash61npx @wong2/mcp-cli [--config config.json] <command> <server-name>:<target> [--args '{}']62```6364Examples:6566```bash67# Call a tool without arguments68npx @wong2/mcp-cli -c config.json call-tool filesystem:list_files6970# Call a tool with arguments71npx @wong2/mcp-cli -c config.json call-tool filesystem:read_file --args '{"path": "package.json"}'7273# Read a resource74npx @wong2/mcp-cli -c config.json read-resource filesystem:file://system/etc/hosts7576# Use a prompt77npx @wong2/mcp-cli -c config.json get-prompt filesystem:create_summary --args '{"text": "Hello world"}'78```7980This mode is useful for scripting and automation, as it bypasses all interactive prompts and executes the specified primitive directly.8182### Purge stored data (OAuth tokens, etc.)8384```bash85npx @wong2/mcp-cli purge86```8788## Related8990- [mcpservers.org](https://mcpservers.org) - A curated list of MCP servers91
Full transparency — inspect the skill content before installing.