
Description
mcp-cli is a command-line inspector for the Model Context Protocol. It lets you run an MCP server from several sources, list the tools, resources and prompts it offers, and call a tool, read a resource or read a prompt, all from your terminal. Run with no arguments, it uses the Claude Desktop config file. You can also pass a config file in the same format, run a server published on npm, or run a server you are developing locally. For servers that need environment variables from your shell, a pass-env flag is available. It can connect to a running server over Streamable HTTP or SSE, and it supports OAuth for those two transports. A non-interactive mode runs a specific tool, resource or prompt without prompts, which suits scripts and automation. A command also clears stored data such as OAuth tokens. The project is open source and hosted on GitHub.…
Highlights
- List and call MCP tools, resources and prompts
- Run servers from a config file, npm or local code
- OAuth for SSE and Streamable HTTP servers
- Non-interactive mode for scripts
Ratings & Reviews
No ratings yet
Be the first to rate wong2/mcp-cli.
People also visit

KryptosAI/mcp-observatory
Regression testing for MCP servers: discovers configured servers

smart-mcp-proxy/mcpproxy-go
Local MCP proxy that routes multiple servers through one endpoint

particlefuture/MCPDiscovery
Automatically discover and configure MCP servers on your local machine
wong2/mcp-cli FAQ
What is mcp-cli?
A command-line inspector for the Model Context Protocol. You use it to test and try MCP servers from the terminal.
Can I use it with Claude Desktop's config?
Yes. Run it with no arguments to use the Claude Desktop config file, or pass a config file in the same format.
Can it run in scripts?
Yes. The non-interactive mode runs a specific tool, resource or prompt directly, without prompts, which the README says suits scripting and automation.
Does it support OAuth servers?
Yes, for SSE and Streamable HTTP servers. A command can clear stored OAuth tokens and other saved data.
What are the best wong2/mcp-cli alternatives?
Popular alternatives to wong2/mcp-cli include KryptosAI/mcp-observatory, mcp-cli and VeriTeknik/pluggedin-mcp-proxy. See all wong2/mcp-cli alternatives



















