mcp-cli
A CLI inspector for the Model Context Protocol
https://github.com/user-attachments/assets/4cd113e9-f097-4c9d-b391-045c5f213183
Features
- Run MCP servers from various sources
- List Tools, Resources, Prompts
- Call Tools, Read Resources, Read Prompts
- OAuth support for SSE and Streamable HTTP servers
Usage
Run without arguments
npx @wong2/mcp-cliThis will use the config file of Claude Desktop.
Run with a config file
npx @wong2/mcp-cli -c config.jsonThe config file has the same format as the Claude Desktop config file.
Run servers from NPM
npx @wong2/mcp-cli npx <package-name> <args>Add --pass-env if the server needs environment variables from your current shell.
Run locally developed server
npx @wong2/mcp-cli node path/to/server/index.js args...Add --pass-env if the server needs environment variables from your current shell.
Connect to a running server over Streamable HTTP
npx @wong2/mcp-cli --url http://localhost:8000/mcpConnect to a running server over SSE
npx @wong2/mcp-cli --sse http://localhost:8000/sse





