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
A CLI inspector for the Model Context Protocol
https://github.com/user-attachments/assets/4cd113e9-f097-4c9d-b391-045c5f213183
npx @wong2/mcp-cli
This will use the config file of Claude Desktop.
npx @wong2/mcp-cli -c config.json
The config file has the same format as the Claude Desktop config file.
npx @wong2/mcp-cli npx
npx @wong2/mcp-cli node path/to/server/index.js args...
npx @wong2/mcp-cli --url http://localhost:8000/mcp
npx @wong2/mcp-cli --sse http://localhost:8000/sse
Run a specific tool, resource, or prompt without interactive prompts:
npx @wong2/mcp-cli [--config config.json] : [--args '{}']
Examples:
# Call a tool without arguments
npx @wong2/mcp-cli -c config.json call-tool filesystem:list_files
# Call a tool with arguments
npx @wong2/mcp-cli -c config.json call-tool filesystem:read_file --args '{"path": "package.json"}'
# Read a resource
npx @wong2/mcp-cli -c config.json read-resource filesystem:file://system/etc/hosts
# Use a prompt
npx @wong2/mcp-cli -c config.json get-prompt filesystem:create_summary --args '{"text": "Hello world"}'
This mode is useful for scripting and automation, as it bypasses all interactive prompts and executes the specified primitive directly.
npx @wong2/mcp-cli purge
Install via CLI
npx mdskills install wong2/mcp-cliMCP CLI is a free, open-source AI agent skill. 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
Install MCP CLI with a single command:
npx mdskills install wong2/mcp-cliThis downloads the skill files into your project and your AI agent picks them up automatically.
MCP CLI works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.