mcp-cli
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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
This will use the config file of Claude Desktop.
Run with a config file
The config file has the same format as the Claude Desktop config file.
Run servers from NPM
Add --pass-env if the server needs environment variables from your current shell.
Run locally developed server
Add --pass-env if the server needs environment variables from your current shell.
Connect to a running server over Streamable HTTP
Connect to a running server over SSE
Non-interactive mode
Run a specific tool, resource, or prompt without interactive prompts:
Examples:
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.)
Related
- mcpservers.org - A curated list of MCP servers