mcp-cli
A CLI inspector for the Model Context Protocol
Updated
#cli
#npm
A CLI inspector for the Model Context Protocol
demo.mp4
- Run MCP servers from various sources
- List Tools, Resources, Prompts
- Call Tools, Read Resources, Read Prompts
- OAuth support for SSE and Streamable HTTP servers
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 <package-name> <args>
Add --pass-env if the server needs environment variables from your current shell.
npx @wong2/mcp-cli node path/to/server/index.js args...
Add --pass-env if the server needs environment variables from your current shell.
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] <command> <server-name>:<target> [--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
- mcpservers.org - A curated list of MCP servers
Server Information
Authorwong2
CategoryDevelopment
Features
NPM Package
Rate this server
0/5 stars
Related MCP servers
- xero-mcpA Model Context Protocol server allows Clients to interact with Xero
- win-cli-mcp-serverModel Context Protocol server for secure command-line interactions on Windows systems
- shopify-mcpMCP server for Shopify api, usable on mcp clients such as Anthropic's Claude and Cursor IDE
- mcp-playwrightPlaywright Model Context Protocol Server - Tool to automate Browsers and APIs in Claude Desktop, Cline, Cursor IDE and More 🔌
- mcp-neovim-serverControl Neovim using Model Context Protocol (MCP) and the official neovim/node-client JavaScript library
- keycloak-model-context-protocolMCP server implementation for Keycloak user management. Enables AI-powered administration of Keycloak users and realms through the Model Context Protocol (MCP). Seamlessly integrates with Claude Desktop and other MCP clients for automated user operations.