Mcp Cli

@wong2/mcp-cli

A CLI inspector for the Model Context Protocol

0 downloads
v1.13.0

Capabilities

tools

Installation

Quick Install

Install using the MCPSearch CLI (recommended)

mcp install @wong2/mcp-cli

Don't have the CLI? Install it first

Run with npx

Run directly without installing

npx -y @wong2/mcp-cli

Manual Configuration

Add to your MCP client configuration file

CClaude Code / Claude Desktop

Add to ~/.claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@wong2/mcp-cli"
      ]
    }
  }
}

CuCursor

Add to ~/.cursor/mcp.json

{
  "mcp": {
    "servers": {
      "mcp-cli": {
        "command": "npx",
        "args": [
          "-y",
          "@wong2/mcp-cli"
        ]
      }
    }
  }
}

VSVS Code / Continue.dev

Add to .vscode/mcp.json or Continue settings

{
  "mcpServers": {
    "mcp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@wong2/mcp-cli"
      ]
    }
  }
}

About

# 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 ```bash npx @wong2/mcp-cli ``` This will use the config file of Claude Desktop. ### Run with a config file ```bash npx @wong2/mcp-cli -c config.json ``` The config file has the same format as the Claude Desktop config file. ### Run servers from NPM ```bash npx @wong2/mcp-cli npx <package-name> <args> ``` ### Run locally developed server ```bash npx @wong2/mcp-cli node path/to/server/index.js args... ``` ### Connect to a running server over Streamable HTTP ```bash npx @wong2/mcp-cli --url http://localhost:8000/mcp ``` ### Connect to a running server over SSE ```bash npx @wong2/mcp-cli --sse http://localhost:8000/sse ``` ### Non-interactive mode Run a specific tool, resource, or prompt without interactive prompts: ```bash npx @wong2/mcp-cli [--config config.json] <command> <server-name>:<target> [--args '{}'] ``` Examples: ```bash # 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. ### Purge stored data (OAuth tokens, etc.) ```bash npx @wong2/mcp-cli purge ``` ## Related - [mcpservers.org](https://mcpservers.org) - A curated list of MCP servers

Reviews

No reviews yet. Be the first to review this package!

Compatible With

Claude CodeCursorWindsurfContinue.dev

Details

Version
1.13.0
License
Unknown
Category
memory
MCP Version
1.0
Published
12/5/2024
Updated
7/16/2025

Tags