mcp-cli is a command-line inspector (CLI inspector) for the Model Context Protocol (MCP).
Purpose: Used to test MCP servers, helping users run and inspect the tools, resources, and prompts provided by servers from different sources.
Main capabilities:
- Run MCP servers from multiple sources (when no arguments are given, use the Claude Desktop configuration file; a configuration file can be specified; can run from NPM; can run a locally developed server; can connect to a running server via Streamable HTTP or SSE).
- List Tools, Resources, and Prompts.
- Call Tools, read Resources, and read Prompts.
- Provide OAuth support for SSE and Streamable HTTP servers.
- Non-interactive mode: when running a specific tool, resource, or prompt, no interactive prompts are required, making it suitable for scripts and automation.
- Clear stored data (such as OAuth tokens, etc.).
Usage:
- Run without arguments: use the Claude Desktop configuration file.
- Run with a configuration file: the configuration file format is the same as the Claude Desktop configuration file.
- Run a server from NPM: if the server needs the environment variables of the current shell, add --pass-env.
- Run a locally developed server.
- Connect to a running server via Streamable HTTP.
- Connect to a running server via SSE.
- Non-interactive mode: run a specific tool, resource, or prompt, bypassing all interactive prompts and executing directly.
- Clear stored data (OAuth tokens, etc.).
Applicable scenarios:
- Development, testing, and debugging of MCP servers.
- Scenarios that require calling MCP tools, resources, or prompts via scripts or automation.
- SSE or Streamable HTTP server connections involving OAuth authentication.
Limitations: The material does not provide information about pricing, platforms, specific installation commands, or version requirements, and none is currently provided.