CLI tool for testing MCP servers
Add to Claude Desktop config.json
{
"mcpServers": {
"wong2-mcp-cli": {
"command": "node",
"args": [
"~/.mcp/mcp-cli/index.js"
]
}
}
} Get the source and run locally
git clone https://github.com/wong2/mcp-cli.git ~/.mcp/mcp-cli
cd ~/.mcp/mcp-cli 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 <package-name> <args>
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] <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
MCP server that exercises all the features of the MCP protocol.
A high-level framework for building MCP servers in Python
Local-first system capturing screen/audio with timestamped indexing, SQL/embedding storage, semantic search, LLM-powered history analysis, and event-triggered actions - enables building context-aware AI agents through a NextJS plugin ecosystem.
Extract and convert YouTube video information.
Interacting with Obsidian via REST API
Connect AI agents to 600+ integrations with a single interface - OAuth, scaling, and monitoring included